*Switch to iife
This commit is contained in:
parent
ce3fbcad0b
commit
44ed118571
4
build.js
4
build.js
|
@ -3,12 +3,12 @@ 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
|
||||||
define: {
|
define: {
|
||||||
global: "self",
|
global: "self",
|
||||||
},
|
},
|
||||||
inject:['process.js']
|
inject: ["process.js"],
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue