mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-08 22:11:59 -05:00
refactor: [UEPR-17] Changed library name
This commit is contained in:
parent
21a8bd6982
commit
93f41d8cb0
1 changed files with 16 additions and 1 deletions
|
@ -12,6 +12,13 @@ const common = {
|
||||||
|
|
||||||
const nodeBuilder = new ScratchWebpackConfigBuilder(common)
|
const nodeBuilder = new ScratchWebpackConfigBuilder(common)
|
||||||
.setTarget('node')
|
.setTarget('node')
|
||||||
|
.merge({
|
||||||
|
output: {
|
||||||
|
library: {
|
||||||
|
name: 'VirtualMachine'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
.addModuleRule({
|
.addModuleRule({
|
||||||
test: /\.mp3$/,
|
test: /\.mp3$/,
|
||||||
type: 'asset'
|
type: 'asset'
|
||||||
|
@ -24,6 +31,11 @@ const webBuilder = new ScratchWebpackConfigBuilder(common)
|
||||||
fallback: {
|
fallback: {
|
||||||
Buffer: require.resolve('buffer/')
|
Buffer: require.resolve('buffer/')
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
library: {
|
||||||
|
name: 'VirtualMachine'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.addModuleRule({
|
.addModuleRule({
|
||||||
|
@ -56,7 +68,10 @@ const playgroundBuilder = webBuilder.clone()
|
||||||
'video-sensing-extension-debug': './src/extensions/scratch3_video_sensing/debug'
|
'video-sensing-extension-debug': './src/extensions/scratch3_video_sensing/debug'
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'playground')
|
path: path.resolve(__dirname, 'playground'),
|
||||||
|
library: {
|
||||||
|
name: 'VirtualMachine'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.addModuleRule({
|
.addModuleRule({
|
||||||
|
|
Loading…
Reference in a new issue