build!: tell webpack to output UMD in all cases

BREAKING CHANGE: this could affect compatibility with library consumers
This commit is contained in:
Christopher Willis-Ford 2024-03-04 11:06:07 -08:00
parent 058685f41e
commit 0f3a847689

View file

@ -8,6 +8,7 @@ const base = {
devtool: 'cheap-module-source-map',
output: {
library: 'VirtualMachine',
libraryTarget: 'umd',
filename: '[name].js'
},
module: {
@ -43,7 +44,6 @@ module.exports = [
'scratch-vm.min': './src/index.js'
},
output: {
libraryTarget: 'umd',
path: path.resolve('dist', 'web')
},
module: {
@ -65,7 +65,6 @@ module.exports = [
'scratch-vm': './src/index.js'
},
output: {
libraryTarget: 'commonjs2',
path: path.resolve('dist', 'node')
},
externals: {