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"],
|
2023-04-09 23:45:45 +00:00
|
|
|
external: ["node:stream"],
|
2022-07-29 10:37:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
esbuild.buildSync({
|
|
|
|
entryPoints: ["src/main/bootloader.ts"],
|
|
|
|
outfile: "dist/bootloader.js",
|
2023-04-03 17:29:20 +00:00
|
|
|
format: "iife",
|
2022-07-29 10:37:20 +00:00
|
|
|
bundle: true,
|
|
|
|
legalComments: "external",
|
|
|
|
// minify: true
|
|
|
|
define: {
|
|
|
|
global: "self",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
esbuild.buildSync({
|
|
|
|
entryPoints: ["src/main/bridge.ts"],
|
|
|
|
outfile: "dist/bridge.js",
|
2023-04-03 17:29:20 +00:00
|
|
|
format: "iife",
|
2022-07-29 10:37:20 +00:00
|
|
|
bundle: true,
|
|
|
|
legalComments: "external",
|
|
|
|
// minify: true
|
|
|
|
define: {
|
|
|
|
global: "self",
|
|
|
|
},
|
2023-04-03 17:29:20 +00:00
|
|
|
}); /*
|
2022-08-22 05:19:34 +00:00
|
|
|
esbuild.buildSync({
|
|
|
|
entryPoints: ["src/main/crypto.ts"],
|
|
|
|
outfile: "dist/crypto.js",
|
|
|
|
format: "iife",
|
|
|
|
bundle: true,
|
|
|
|
legalComments: "external",
|
|
|
|
// minify: true
|
|
|
|
define: {
|
|
|
|
global: "window",
|
|
|
|
},
|
|
|
|
inject: ["./polyfill.js"],
|
|
|
|
});
|
|
|
|
esbuild.buildSync({
|
|
|
|
entryPoints: ["src/main/cryptoLoader.ts"],
|
|
|
|
outfile: "dist/cryptoLoader.js",
|
|
|
|
format: "iife",
|
|
|
|
bundle: true,
|
|
|
|
legalComments: "external",
|
|
|
|
// minify: true
|
|
|
|
define: {
|
|
|
|
global: "window",
|
|
|
|
}
|
|
|
|
});
|
2023-04-03 17:29:20 +00:00
|
|
|
*/
|