Add sourcemaps

This commit is contained in:
Oliver Blanthorn 2021-04-10 22:58:02 +02:00
parent f84fe6f91e
commit f75f81f49e
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -4,6 +4,7 @@ for (let f of ["content", "background", "help", "newtab", "commandline_frame"])
esbuild.build({ esbuild.build({
entryPoints: [`src/${f}.ts`], entryPoints: [`src/${f}.ts`],
bundle: true, bundle: true,
sourcemap: true,
target: "firefox68", target: "firefox68",
outfile: `build/${f}.js`, outfile: `build/${f}.js`,
}).catch(() => process.exit(1)) }).catch(() => process.exit(1))