mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
chore(deps): add buffer polyfill for webpack 4/5 compat
This commit is contained in:
parent
ace0c48473
commit
74d8280748
3 changed files with 54 additions and 7 deletions
53
package-lock.json
generated
53
package-lock.json
generated
|
@ -44,6 +44,7 @@
|
||||||
"babel-loader": "8.3.0",
|
"babel-loader": "8.3.0",
|
||||||
"babel-plugin-transform-require-context": "0.1.1",
|
"babel-plugin-transform-require-context": "0.1.1",
|
||||||
"bowser": "1.9.4",
|
"bowser": "1.9.4",
|
||||||
|
"buffer": "6.0.3",
|
||||||
"canvas": "2.11.2",
|
"canvas": "2.11.2",
|
||||||
"classnames": "2.5.1",
|
"classnames": "2.5.1",
|
||||||
"cookie": "0.4.1",
|
"cookie": "0.4.1",
|
||||||
|
@ -6178,9 +6179,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/buffer": {
|
"node_modules/buffer": {
|
||||||
"version": "5.7.1",
|
"version": "6.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
|
"resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
|
||||||
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
|
"integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -6198,7 +6199,7 @@
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"base64-js": "^1.3.1",
|
"base64-js": "^1.3.1",
|
||||||
"ieee754": "^1.1.13"
|
"ieee754": "^1.2.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/buffer-alloc": {
|
"node_modules/buffer-alloc": {
|
||||||
|
@ -26851,6 +26852,50 @@
|
||||||
"through": "^2.3.8"
|
"through": "^2.3.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/unbzip2-stream/node_modules/base64-js": {
|
||||||
|
"version": "1.5.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
|
||||||
|
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
|
||||||
|
"dev": true,
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"type": "github",
|
||||||
|
"url": "https://github.com/sponsors/feross"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "patreon",
|
||||||
|
"url": "https://www.patreon.com/feross"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "consulting",
|
||||||
|
"url": "https://feross.org/support"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"node_modules/unbzip2-stream/node_modules/buffer": {
|
||||||
|
"version": "5.7.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
|
||||||
|
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
|
||||||
|
"dev": true,
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"type": "github",
|
||||||
|
"url": "https://github.com/sponsors/feross"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "patreon",
|
||||||
|
"url": "https://www.patreon.com/feross"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "consulting",
|
||||||
|
"url": "https://feross.org/support"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"dependencies": {
|
||||||
|
"base64-js": "^1.3.1",
|
||||||
|
"ieee754": "^1.1.13"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/undici-types": {
|
"node_modules/undici-types": {
|
||||||
"version": "5.26.5",
|
"version": "5.26.5",
|
||||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
|
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "7.23.9",
|
"@babel/cli": "7.23.9",
|
||||||
"@babel/core": "7.23.9",
|
"@babel/core": "7.23.9",
|
||||||
|
"@babel/eslint-parser": "7.11.0",
|
||||||
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
||||||
"@babel/plugin-transform-async-to-generator": "7.23.3",
|
"@babel/plugin-transform-async-to-generator": "7.23.3",
|
||||||
"@babel/plugin-transform-object-rest-spread": "7.23.4",
|
"@babel/plugin-transform-object-rest-spread": "7.23.4",
|
||||||
|
@ -75,10 +76,10 @@
|
||||||
"@types/jest": "29.5.12",
|
"@types/jest": "29.5.12",
|
||||||
"async": "3.2.5",
|
"async": "3.2.5",
|
||||||
"autoprefixer": "10.4.17",
|
"autoprefixer": "10.4.17",
|
||||||
"@babel/eslint-parser": "7.11.0",
|
|
||||||
"babel-loader": "8.3.0",
|
"babel-loader": "8.3.0",
|
||||||
"babel-plugin-transform-require-context": "0.1.1",
|
"babel-plugin-transform-require-context": "0.1.1",
|
||||||
"bowser": "1.9.4",
|
"bowser": "1.9.4",
|
||||||
|
"buffer": "6.0.3",
|
||||||
"canvas": "2.11.2",
|
"canvas": "2.11.2",
|
||||||
"classnames": "2.5.1",
|
"classnames": "2.5.1",
|
||||||
"cookie": "0.4.1",
|
"cookie": "0.4.1",
|
||||||
|
|
|
@ -107,8 +107,9 @@ module.exports = {
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
fallback: {
|
fallback: {
|
||||||
// jszip uses Node's `stream` module, which is no longer polyfilled by default in Webpack 5
|
// Node modules are no longer polyfilled by default in Webpack 5, so we need to add these here
|
||||||
stream: require.resolve('stream-browserify')
|
buffer: require.resolve('buffer/'),
|
||||||
|
stream: require.resolve('stream-browserify') // jszip
|
||||||
},
|
},
|
||||||
symlinks: false // Fix local development with `npm link` packages
|
symlinks: false // Fix local development with `npm link` packages
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue