mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-03-13 17:04:39 -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',
|
||||
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: {
|
||||
|
|
Loading…
Reference in a new issue