Skip to content

Commit

Permalink
feat(build): Add browser and module versions
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-ribeiro committed Feb 12, 2022
1 parent 69bfc44 commit fe3da53
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ build({
bundle: true,
}).catch(exit);

// build({
// entryPoints: ["./src/index.ts"],
// outfile: "./dist/index.browser.js",
// logLevel: "info",
// format: "iife",
// globalName: "events",
// platform: "browser",
// minify: true,
// }).catch(exit);
build({
entryPoints: ["./src/index.ts"],
outfile: "./dist/index.browser.js",
logLevel: "info",
format: "iife",
globalName: "events",
platform: "browser",
minify: true,
}).catch(exit);

// build({
// entryPoints: ["./src/index.ts"],
// outfile: "./dist/index.mjs",
// logLevel: "info",
// format: "esm",
// platform: "browser",
// minify: true,
// }).catch(exit);
build({
entryPoints: ["./src/index.ts"],
outfile: "./dist/index.mjs",
logLevel: "info",
format: "esm",
platform: "browser",
minify: true,
}).catch(exit);

build({
entryPoints: ["./src/react/index.ts"],
Expand Down

0 comments on commit fe3da53

Please sign in to comment.