Skip to content

Commit e5e3bd2

Browse files
Update @babel/* dependencies (#16933)
1 parent a1b4ba0 commit e5e3bd2

File tree

6 files changed

+720
-827
lines changed

6 files changed

+720
-827
lines changed

.yarnrc.yml

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -23,61 +23,6 @@ nmMode: hardlinks-local
2323
nodeLinker: node-modules
2424

2525
packageExtensions:
26-
# @babel/preset-env depends on all these packages using the condition:
27-
# protocol, which does not properly propagate peer dependency requirements.
28-
# We know that we have the correct Babel version in the monorepo, so let's
29-
# just remove the peerDependency requirement to silence the warning.
30-
"@babel/plugin-proposal-private-property-in-object@*":
31-
peerDependencies:
32-
"@babel/core": null
33-
"@babel/plugin-syntax-async-generators@*":
34-
peerDependencies:
35-
"@babel/core": null
36-
"@babel/plugin-syntax-class-properties@*":
37-
peerDependencies:
38-
"@babel/core": null
39-
"@babel/plugin-syntax-class-static-block@*":
40-
peerDependencies:
41-
"@babel/core": null
42-
"@babel/plugin-syntax-dynamic-import@*":
43-
peerDependencies:
44-
"@babel/core": null
45-
"@babel/plugin-syntax-export-namespace-from@*":
46-
peerDependencies:
47-
"@babel/core": null
48-
"@babel/plugin-syntax-import-meta@*":
49-
peerDependencies:
50-
"@babel/core": null
51-
"@babel/plugin-syntax-json-strings@*":
52-
peerDependencies:
53-
"@babel/core": null
54-
"@babel/plugin-syntax-logical-assignment-operators@*":
55-
peerDependencies:
56-
"@babel/core": null
57-
"@babel/plugin-syntax-nullish-coalescing-operator@*":
58-
peerDependencies:
59-
"@babel/core": null
60-
"@babel/plugin-syntax-numeric-separator@*":
61-
peerDependencies:
62-
"@babel/core": null
63-
"@babel/plugin-syntax-object-rest-spread@*":
64-
peerDependencies:
65-
"@babel/core": null
66-
"@babel/plugin-syntax-optional-catch-binding@*":
67-
peerDependencies:
68-
"@babel/core": null
69-
"@babel/plugin-syntax-optional-chaining@*":
70-
peerDependencies:
71-
"@babel/core": null
72-
"@babel/plugin-syntax-private-property-in-object@*":
73-
peerDependencies:
74-
"@babel/core": null
75-
"@babel/plugin-syntax-top-level-await@*":
76-
peerDependencies:
77-
"@babel/core": null
78-
"@babel/plugin-syntax-unicode-sets-regex@*":
79-
peerDependencies:
80-
"@babel/core": null
8126
psl@*:
8227
dependencies:
8328
punycode: ^2.3.0

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ module.exports = function (api) {
187187

188188
convertESM ? "@babel/transform-export-namespace-from" : null,
189189
env !== "standalone"
190-
? ["@babel/plugin-proposal-json-modules", { uncheckedRequire: true }]
190+
? ["@babel/plugin-transform-json-modules", { uncheckedRequire: true }]
191191
: null,
192192

193193
require("./scripts/babel-plugin-bit-decorator/plugin.cjs"),

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
2222
"packageManager": "yarn@4.3.1",
2323
"devDependencies": {
2424
"$repo-utils": "link:./scripts/repo-utils",
25-
"@babel/cli": "8.0.0-alpha.12",
26-
"@babel/core": "8.0.0-alpha.12",
25+
"@babel/cli": "8.0.0-alpha.13",
26+
"@babel/core": "8.0.0-alpha.13",
2727
"@babel/eslint-parser": "workspace:^",
2828
"@babel/eslint-plugin-development": "workspace:^",
2929
"@babel/eslint-plugin-development-internal": "workspace:^",
30-
"@babel/plugin-proposal-json-modules": "8.0.0-alpha.12",
31-
"@babel/plugin-transform-dynamic-import": "8.0.0-alpha.12",
32-
"@babel/plugin-transform-export-namespace-from": "8.0.0-alpha.12",
33-
"@babel/plugin-transform-modules-commonjs": "8.0.0-alpha.12",
34-
"@babel/plugin-transform-object-rest-spread": "8.0.0-alpha.12",
35-
"@babel/plugin-transform-runtime": "8.0.0-alpha.12",
36-
"@babel/preset-env": "8.0.0-alpha.12",
37-
"@babel/preset-typescript": "8.0.0-alpha.12",
38-
"@babel/runtime": "8.0.0-alpha.12",
30+
"@babel/plugin-transform-dynamic-import": "8.0.0-alpha.13",
31+
"@babel/plugin-transform-export-namespace-from": "8.0.0-alpha.13",
32+
"@babel/plugin-transform-json-modules": "8.0.0-alpha.13",
33+
"@babel/plugin-transform-modules-commonjs": "8.0.0-alpha.13",
34+
"@babel/plugin-transform-object-rest-spread": "8.0.0-alpha.13",
35+
"@babel/plugin-transform-runtime": "8.0.0-alpha.13",
36+
"@babel/preset-env": "8.0.0-alpha.13",
37+
"@babel/preset-typescript": "8.0.0-alpha.13",
38+
"@babel/runtime": "8.0.0-alpha.13",
3939
"@cspotcode/source-map-support": "^0.8.1",
4040
"@eslint/js": "^9.12.0",
4141
"@rollup/plugin-babel": "^6.0.4",

scripts/integration-tests/e2e-babel-old-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ sed -i 's/nodeGte12(/nodeGte12.skip(/g' eslint/babel-eslint-tests/test/integrati
6464
sed -i 's/describe(/describe.skip(/g' eslint/babel-eslint-tests/test/integration/config-files.js
6565

6666
# We only support transforming import attributes in new @babel/core versions
67-
sed -i 's#\["@babel/plugin-proposal-json-modules", { uncheckedRequire: true }\]#null#g' babel.config.js
67+
sed -i 's#\["@babel/plugin-transform-json-modules", { uncheckedRequire: true }\]#null#g' babel.config.js
6868
sed -i 's#with { type: "json" }##g' packages/babel-preset-env/src/normalize-options.ts
6969

7070
# Update deps, build and test

scripts/integration-tests/e2e-babel.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ startLocalRegistry "$PWD"/scripts/integration-tests/verdaccio-config.yml
2828
node "$PWD"/scripts/integration-tests/utils/bump-babel-dependencies.js
2929
export YARN_ENABLE_IMMUTABLE_INSTALLS=false
3030

31-
# This packages has been renamed
32-
sed -i 's/proposal-json-modules/transform-json-modules/g' package.json
33-
sed -i 's/proposal-json-modules/transform-json-modules/g' babel.config.js
34-
3531
if [ "$BABEL_8_BREAKING" = true ] ; then
3632
# This option is removed in Babel 8
3733
sed -i 's/allowDeclareFields: true,\?/\/* allowDeclareFields: true *\//g' babel.config.js

0 commit comments

Comments
 (0)