mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-23 19:30:34 -04:00
chore(deps): upgrade to @babel@^7 for webpack 5 compatibility
BREAKING CHANGE: this slightly changes our browser compatibility list
This commit is contained in:
parent
c2fa2fedd5
commit
eb56880131
3 changed files with 2225 additions and 1186 deletions
21
.babelrc
21
.babelrc
|
@ -1,9 +1,20 @@
|
|||
// .babelrc is an alias for .babelrc.json and uses JSON5 syntax
|
||||
{
|
||||
"plugins": [
|
||||
"transform-async-to-generator",
|
||||
"transform-object-rest-spread",
|
||||
"transform-require-context",
|
||||
"syntax-dynamic-import"
|
||||
"@babel/plugin-transform-async-to-generator",
|
||||
"@babel/plugin-transform-object-rest-spread",
|
||||
"@babel/plugin-syntax-dynamic-import",
|
||||
"transform-require-context"
|
||||
],
|
||||
"presets": ["es2015", "react"],
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
// This papers over the fact that our current code is inconsistent
|
||||
// For example, we sometimes use `import` with a file that exports with `module.exports`
|
||||
"modules": "commonjs"
|
||||
}
|
||||
],
|
||||
"@babel/preset-react"
|
||||
]
|
||||
}
|
||||
|
|
3374
package-lock.json
generated
3374
package-lock.json
generated
File diff suppressed because it is too large
Load diff
16
package.json
16
package.json
|
@ -59,6 +59,13 @@
|
|||
"scratch-storage": "2.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "7.23.4",
|
||||
"@babel/core": "7.23.7",
|
||||
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
||||
"@babel/plugin-transform-async-to-generator": "7.23.3",
|
||||
"@babel/plugin-transform-object-rest-spread": "7.23.4",
|
||||
"@babel/preset-env": "7.23.8",
|
||||
"@babel/preset-react": "7.23.3",
|
||||
"@formatjs/intl-datetimeformat": "6.4.3",
|
||||
"@formatjs/intl-locale": "3.0.11",
|
||||
"@formatjs/intl-numberformat": "8.3.3",
|
||||
|
@ -66,16 +73,9 @@
|
|||
"@formatjs/intl-relativetimeformat": "11.1.8",
|
||||
"async": "3.2.2",
|
||||
"autoprefixer": "10.4.2",
|
||||
"babel-cli": "6.26.0",
|
||||
"babel-core": "6.26.3",
|
||||
"babel-eslint": "10.1.0",
|
||||
"babel-loader": "7.1.5",
|
||||
"babel-plugin-syntax-dynamic-import": "^6.18.0",
|
||||
"babel-plugin-transform-async-to-generator": "6.24.1",
|
||||
"babel-plugin-transform-object-rest-spread": "6.26.0",
|
||||
"babel-loader": "8.3.0",
|
||||
"babel-plugin-transform-require-context": "0.1.1",
|
||||
"babel-preset-es2015": "6.24.1",
|
||||
"babel-preset-react": "6.24.1",
|
||||
"bowser": "1.9.4",
|
||||
"canvas": "2.9.0",
|
||||
"chromedriver": "117.0.3",
|
||||
|
|
Loading…
Add table
Reference in a new issue