mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-01 17:11:21 -04:00
build!: tell webpack to output UMD in all cases
BREAKING CHANGE: this could affect compatibility with library consumers
This commit is contained in:
parent
058685f41e
commit
0f3a847689
1 changed files with 1 additions and 2 deletions
|
@ -8,6 +8,7 @@ const base = {
|
||||||
devtool: 'cheap-module-source-map',
|
devtool: 'cheap-module-source-map',
|
||||||
output: {
|
output: {
|
||||||
library: 'VirtualMachine',
|
library: 'VirtualMachine',
|
||||||
|
libraryTarget: 'umd',
|
||||||
filename: '[name].js'
|
filename: '[name].js'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
|
@ -43,7 +44,6 @@ module.exports = [
|
||||||
'scratch-vm.min': './src/index.js'
|
'scratch-vm.min': './src/index.js'
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
libraryTarget: 'umd',
|
|
||||||
path: path.resolve('dist', 'web')
|
path: path.resolve('dist', 'web')
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
|
@ -65,7 +65,6 @@ module.exports = [
|
||||||
'scratch-vm': './src/index.js'
|
'scratch-vm': './src/index.js'
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
libraryTarget: 'commonjs2',
|
|
||||||
path: path.resolve('dist', 'node')
|
path: path.resolve('dist', 'node')
|
||||||
},
|
},
|
||||||
externals: {
|
externals: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue