16 lines
314 B
JavaScript
16 lines
314 B
JavaScript
import esbuild from "esbuild";
|
|
|
|
esbuild.buildSync({
|
|
entryPoints: ["src-module/index.ts"],
|
|
outfile: "dist-module/index.js",
|
|
format: "esm",
|
|
bundle: true,
|
|
legalComments: "external",
|
|
// minify: true
|
|
inject: ["./polyfill.js"],
|
|
tsconfig: "tsconfig.module.json",
|
|
define: {
|
|
global: "self",
|
|
},
|
|
});
|