2022-08-05 13:25:55 +00:00
|
|
|
import esbuild from "esbuild";
|
|
|
|
|
|
|
|
esbuild.buildSync({
|
|
|
|
entryPoints: ["src/index.ts"],
|
|
|
|
outfile: "dist/index.js",
|
2023-04-04 10:30:49 +00:00
|
|
|
format: "iife",
|
2022-08-05 13:25:55 +00:00
|
|
|
bundle: true,
|
|
|
|
legalComments: "external",
|
|
|
|
// minify: true
|
|
|
|
define: {
|
|
|
|
global: "self",
|
2023-03-17 09:36:02 +00:00
|
|
|
},
|
2023-04-09 03:35:03 +00:00
|
|
|
inject: ["polyfill.js"],
|
2022-08-05 13:25:55 +00:00
|
|
|
});
|