*Switch to iife

This commit is contained in:
Derrick Hammer 2023-02-01 07:49:00 -05:00
parent ce3fbcad0b
commit 44ed118571
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -3,12 +3,12 @@ import esbuild from "esbuild";
esbuild.buildSync({
entryPoints: ["src/index.ts"],
outfile: "dist/index.js",
format: "esm",
format: "iife",
bundle: true,
legalComments: "external",
// minify: true
define: {
global: "self",
},
inject:['process.js']
inject: ["process.js"],
});