Skip to content

Commit 0f3a847

Browse files
committed
build!: tell webpack to output UMD in all cases
BREAKING CHANGE: this could affect compatibility with library consumers
1 parent 058685f commit 0f3a847

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const base = {
88
devtool: 'cheap-module-source-map',
99
output: {
1010
library: 'VirtualMachine',
11+
libraryTarget: 'umd',
1112
filename: '[name].js'
1213
},
1314
module: {
@@ -43,7 +44,6 @@ module.exports = [
4344
'scratch-vm.min': './src/index.js'
4445
},
4546
output: {
46-
libraryTarget: 'umd',
4747
path: path.resolve('dist', 'web')
4848
},
4949
module: {
@@ -65,7 +65,6 @@ module.exports = [
6565
'scratch-vm': './src/index.js'
6666
},
6767
output: {
68-
libraryTarget: 'commonjs2',
6968
path: path.resolve('dist', 'node')
7069
},
7170
externals: {

0 commit comments

Comments
 (0)