const esbuild = require('esbuild') for (let f of ["content", "background", "help", "newtab", "reader", "commandline_frame", "qrCodeGenerator"]) { esbuild.build({ entryPoints: [`src/${f}.ts`], bundle: true, sourcemap: true, target: "firefox68", outfile: `buildtemp/${f}.js`, }).catch(() => process.exit(1)) }