chore(deps): upgrade dependency expose-loader to v1.x

for webpack 5 compatibility
This commit is contained in:
Christopher Willis-Ford 2024-02-28 10:12:09 -08:00
parent 815fcc273f
commit c97b47679e
3 changed files with 85 additions and 14 deletions

83
package-lock.json generated
View file

@ -45,7 +45,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",
@ -7325,15 +7325,86 @@
}
},
"node_modules/expose-loader": {
"version": "0.7.5",
"resolved": "https://registry.npmjs.org/expose-loader/-/expose-loader-0.7.5.tgz",
"integrity": "sha512-iPowgKUZkTPX5PznYsmifVj9Bob0w2wTHVkt/eYNPSzyebkUgIedmskf/kcfEIWpiWjg3JRjnW+a17XypySMuw==",
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/expose-loader/-/expose-loader-1.0.3.tgz",
"integrity": "sha512-gP6hs3vYeWIqyoVfsApGQcgCEpbcI1xe+celwI31zeDhXz2q03ycBC1+75IlQUGaYvj6rAloFIe/NIBnEElLsQ==",
"dev": true,
"dependencies": {
"loader-utils": "^2.0.0",
"schema-utils": "^3.0.0"
},
"engines": {
"node": ">= 4.3 < 5.0.0 || >= 5.10"
"node": ">= 10.13.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
},
"peerDependencies": {
"webpack": "^2.0.0 || ^3.0.0 || ^4.0.0"
"webpack": "^4.0.0 || ^5.0.0"
}
},
"node_modules/expose-loader/node_modules/ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
"integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
"dev": true,
"dependencies": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/epoberezkin"
}
},
"node_modules/expose-loader/node_modules/ajv-keywords": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
"integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
"dev": true,
"peerDependencies": {
"ajv": "^6.9.1"
}
},
"node_modules/expose-loader/node_modules/json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
"dev": true
},
"node_modules/expose-loader/node_modules/loader-utils": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz",
"integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==",
"dev": true,
"dependencies": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
},
"engines": {
"node": ">=8.9.0"
}
},
"node_modules/expose-loader/node_modules/schema-utils": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz",
"integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==",
"dev": true,
"dependencies": {
"@types/json-schema": "^7.0.8",
"ajv": "^6.12.5",
"ajv-keywords": "^3.5.2"
},
"engines": {
"node": ">= 10.13.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
}
},
"node_modules/express": {

View file

@ -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",

View file

@ -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'
}
])
}
@ -97,11 +97,11 @@ 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'),
@ -109,19 +109,19 @@ module.exports = [
},
{
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'
}
])
},