kernel-ipfs/build.js

15 lines
263 B
JavaScript
Raw Normal View History

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",
},
inject: ["polyfill.js"],
2022-08-05 13:25:55 +00:00
});