tridactyl/scripts/esbuild.js

12 lines
361 B
JavaScript
Raw Permalink Normal View History

const esbuild = require('esbuild')
for (let f of ["content", "background", "help", "newtab", "reader", "commandline_frame", "qrCodeGenerator"]) {
esbuild.build({
entryPoints: [`src/${f}.ts`],
bundle: true,
2021-04-10 22:58:02 +02:00
sourcemap: true,
target: "firefox68",
2021-04-12 13:53:59 +02:00
outfile: `buildtemp/${f}.js`,
}).catch(() => process.exit(1))
}