kernel-swarm/build.js

15 lines
277 B
JavaScript

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