Skip to content

Commit

Permalink
chore(deps): upgrade dependency expose-loader to v1.x
Browse files Browse the repository at this point in the history
for webpack 5 compatibility
  • Loading branch information
cwillisf committed Feb 28, 2024
1 parent 815fcc2 commit c97b476
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 14 deletions.
83 changes: 77 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"docdash": "1.2.0",
"eslint": "8.57.0",
"eslint-config-scratch": "9.0.8",
"expose-loader": "0.7.5",
"expose-loader": "1.0.3",
"file-loader": "2.0.0",
"format-message-cli": "6.2.4",
"husky": "8.0.3",
Expand Down
14 changes: 7 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = [
rules: base.module.rules.concat([
{
test: require.resolve('./src/index.js'),
loader: 'expose-loader?VirtualMachine'
loader: 'expose-loader?exposes=VirtualMachine'
}
])
}
Expand Down Expand Up @@ -97,31 +97,31 @@ module.exports = [
rules: base.module.rules.concat([
{
test: require.resolve('./src/index.js'),
loader: 'expose-loader?VirtualMachine'
loader: 'expose-loader?exposes=VirtualMachine'
},
{
test: require.resolve('./src/extensions/scratch3_video_sensing/debug.js'),
loader: 'expose-loader?Scratch3VideoSensingDebug'
loader: 'expose-loader?exposes=Scratch3VideoSensingDebug'
},
{
test: require.resolve('stats.js/build/stats.min.js'),
loader: 'script-loader'
},
{
test: require.resolve('scratch-blocks/dist/vertical.js'),
loader: 'expose-loader?Blockly'
loader: 'expose-loader?exposes=Blockly'
},
{
test: require.resolve('scratch-audio/src/index.js'),
loader: 'expose-loader?AudioEngine'
loader: 'expose-loader?exposes=AudioEngine'
},
{
test: require.resolve('scratch-storage/src/index.js'),
loader: 'expose-loader?ScratchStorage'
loader: 'expose-loader?exposes=ScratchStorage'
},
{
test: require.resolve('scratch-render/src/index.js'),
loader: 'expose-loader?ScratchRender'
loader: 'expose-loader?exposes=ScratchRender'
}
])
},
Expand Down

0 comments on commit c97b476

Please sign in to comment.