(WIP) Switch the rest of the build setup to esbuild - done

This commit is contained in:
Aria Minaei 2021-06-18 21:11:45 +02:00
parent 7c2e12c233
commit b2d1f15446

View file

@ -5,12 +5,15 @@ for (const which of ['core', 'studio']) {
const pathToPackage = path.join(__dirname, '../', which)
const esbuildConfig = {
entryPoints: [path.join(pathToPackage, 'src/index.ts')],
target: ['firefox88'],
target: ['firefox88', 'chrome90'],
loader: {'.png': 'file'},
outfile: path.join(pathToPackage, 'dist/index.js'),
bundle: true,
sourcemap: true,
define: definedGlobals,
}
if (which === 'core') {
esbuildConfig.target = ['firefox57', 'chrome58']
}
require('esbuild').build(esbuildConfig)
}