*switch to iife
This commit is contained in:
parent
6f5e0765d6
commit
cba2a126ae
2
build.js
2
build.js
|
@ -3,7 +3,7 @@ import esbuild from "esbuild";
|
||||||
esbuild.buildSync({
|
esbuild.buildSync({
|
||||||
entryPoints: ["src/index.ts"],
|
entryPoints: ["src/index.ts"],
|
||||||
outfile: "dist/index.js",
|
outfile: "dist/index.js",
|
||||||
format: "esm",
|
format: "iife",
|
||||||
bundle: true,
|
bundle: true,
|
||||||
legalComments: "external",
|
legalComments: "external",
|
||||||
// minify: true
|
// minify: true
|
||||||
|
|
Loading…
Reference in New Issue