Skip to content

Commit 93f41d8

Browse files
refactor: [UEPR-17] Changed library name
1 parent 21a8bd6 commit 93f41d8

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

webpack.config.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ const common = {
1212

1313
const nodeBuilder = new ScratchWebpackConfigBuilder(common)
1414
.setTarget('node')
15+
.merge({
16+
output: {
17+
library: {
18+
name: 'VirtualMachine'
19+
}
20+
}
21+
})
1522
.addModuleRule({
1623
test: /\.mp3$/,
1724
type: 'asset'
@@ -24,6 +31,11 @@ const webBuilder = new ScratchWebpackConfigBuilder(common)
2431
fallback: {
2532
Buffer: require.resolve('buffer/')
2633
}
34+
},
35+
output: {
36+
library: {
37+
name: 'VirtualMachine'
38+
}
2739
}
2840
})
2941
.addModuleRule({
@@ -56,7 +68,10 @@ const playgroundBuilder = webBuilder.clone()
5668
'video-sensing-extension-debug': './src/extensions/scratch3_video_sensing/debug'
5769
},
5870
output: {
59-
path: path.resolve(__dirname, 'playground')
71+
path: path.resolve(__dirname, 'playground'),
72+
library: {
73+
name: 'VirtualMachine'
74+
}
6075
}
6176
})
6277
.addModuleRule({

0 commit comments

Comments
 (0)