mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
Merge pull request #1 from MiroslavDionisiev/UEPR-17
[UEPR-17] Changed library name
This commit is contained in:
commit
6f2feaf90e
1 changed files with 17 additions and 2 deletions
|
@ -12,6 +12,13 @@ const common = {
|
|||
|
||||
const nodeBuilder = new ScratchWebpackConfigBuilder(common)
|
||||
.setTarget('node')
|
||||
.merge({
|
||||
output: {
|
||||
library: {
|
||||
name: 'VirtualMachine'
|
||||
}
|
||||
}
|
||||
})
|
||||
.addModuleRule({
|
||||
test: /\.mp3$/,
|
||||
type: 'asset'
|
||||
|
@ -24,6 +31,11 @@ const webBuilder = new ScratchWebpackConfigBuilder(common)
|
|||
fallback: {
|
||||
Buffer: require.resolve('buffer/')
|
||||
}
|
||||
},
|
||||
output: {
|
||||
library: {
|
||||
name: 'VirtualMachine'
|
||||
}
|
||||
}
|
||||
})
|
||||
.addModuleRule({
|
||||
|
@ -56,7 +68,10 @@ const playgroundBuilder = webBuilder.clone()
|
|||
'video-sensing-extension-debug': './src/extensions/scratch3_video_sensing/debug'
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'playground')
|
||||
path: path.resolve(__dirname, 'playground'),
|
||||
library: {
|
||||
name: 'VirtualMachine'
|
||||
}
|
||||
}
|
||||
})
|
||||
.addModuleRule({
|
||||
|
@ -92,7 +107,7 @@ const playgroundBuilder = webBuilder.clone()
|
|||
}
|
||||
})
|
||||
.addModuleRule({
|
||||
test: require.resolve('scratch-render/src/index.js'),
|
||||
test: require.resolve('scratch-render'),
|
||||
loader: 'expose-loader',
|
||||
options: {
|
||||
exposes: 'ScratchRender'
|
||||
|
|
Loading…
Reference in a new issue