This repository has been archived on 2023-12-17. You can view files and clone it, but cannot push or open issues or pull requests.
2022-07-29 10:37:20 +00:00
|
|
|
import esbuild from "esbuild";
|
|
|
|
|
|
|
|
esbuild.buildSync({
|
|
|
|
entryPoints: ["src/main/background.ts"],
|
|
|
|
outfile: "dist/background.js",
|
|
|
|
format: "iife",
|
|
|
|
bundle: true,
|
|
|
|
legalComments: "external",
|
|
|
|
// minify: true
|
|
|
|
define: {
|
|
|
|
global: "self",
|
|
|
|
},
|
2022-08-13 08:18:10 +00:00
|
|
|
inject: ["./polyfill.js"],
|
2022-07-29 10:37:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
esbuild.buildSync({
|
|
|
|
entryPoints: ["src/main/bootloader.ts"],
|
|
|
|
outfile: "dist/bootloader.js",
|
|
|
|
format: "esm",
|
|
|
|
bundle: true,
|
|
|
|
legalComments: "external",
|
|
|
|
// minify: true
|
|
|
|
define: {
|
|
|
|
global: "self",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
esbuild.buildSync({
|
|
|
|
entryPoints: ["src/main/bridge.ts"],
|
|
|
|
outfile: "dist/bridge.js",
|
|
|
|
format: "esm",
|
|
|
|
bundle: true,
|
|
|
|
legalComments: "external",
|
|
|
|
// minify: true
|
|
|
|
define: {
|
|
|
|
global: "self",
|
|
|
|
},
|
|
|
|
});
|