kernel-swarm/build.js

15 lines
262 B
JavaScript
Raw Normal View History

2022-07-21 17:03:18 +00:00
import esbuild from "esbuild";
esbuild.buildSync({
entryPoints: ["src/index.ts"],
outfile: "dist/index.js",
2023-02-01 12:49:00 +00:00
format: "iife",
2022-07-21 17:03:18 +00:00
bundle: true,
legalComments: "external",
// minify: true
define: {
global: "self",
},
2023-02-01 12:49:00 +00:00
inject: ["process.js"],
2022-07-21 17:03:18 +00:00
});