Skip to content

Commit bc8a898

Browse files
committed
Use @babel/plugin-transform-runtime
1 parent 0ceae6f commit bc8a898

File tree

6 files changed

+24
-21
lines changed

6 files changed

+24
-21
lines changed

.babelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
}],
66
"@babel/react"
77
],
8+
"plugins": [
9+
"@babel/transform-runtime"
10+
],
811
"env": {
912
"production-esm": {
1013
"presets": [
@@ -13,6 +16,9 @@
1316
"loose": true
1417
}],
1518
"@babel/react"
19+
],
20+
"plugins": [
21+
["@babel/transform-runtime", { "useESModules": true }]
1622
]
1723
}
1824
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"devDependencies": {
4040
"@babel/cli": "^7.9.0",
4141
"@babel/core": "^7.9.0",
42+
"@babel/plugin-transform-runtime": "^7.9.0",
4243
"@babel/preset-env": "^7.9.0",
4344
"@babel/preset-react": "^7.9.0",
4445
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.0",

test/.babelrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@
44
"modules": false
55
}],
66
"@babel/react"
7-
],
8-
"plugins": [
9-
"@babel/transform-runtime"
107
]
118
}

test/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
},
2323
"devDependencies": {
2424
"@babel/core": "^7.9.0",
25-
"@babel/plugin-transform-runtime": "^7.9.0",
2625
"@babel/preset-env": "^7.9.0",
2726
"@babel/preset-react": "^7.9.0",
2827
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.0-0",

test/yarn.lock

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,22 +1041,6 @@ __metadata:
10411041
languageName: node
10421042
linkType: hard
10431043

1044-
"@babel/plugin-transform-runtime@npm:^7.9.0":
1045-
version: 7.15.0
1046-
resolution: "@babel/plugin-transform-runtime@npm:7.15.0"
1047-
dependencies:
1048-
"@babel/helper-module-imports": ^7.14.5
1049-
"@babel/helper-plugin-utils": ^7.14.5
1050-
babel-plugin-polyfill-corejs2: ^0.2.2
1051-
babel-plugin-polyfill-corejs3: ^0.2.2
1052-
babel-plugin-polyfill-regenerator: ^0.2.2
1053-
semver: ^6.3.0
1054-
peerDependencies:
1055-
"@babel/core": ^7.0.0-0
1056-
checksum: 5717e0e6d2f77ef71996b22440e5e68ae4f9e7f4ae85e2dc6e3b99155840a0fdc71a62db1979f19be646a34fef022db506a1036a6e4bf5e89d53a6d94713cc74
1057-
languageName: node
1058-
linkType: hard
1059-
10601044
"@babel/plugin-transform-shorthand-properties@npm:^7.14.5":
10611045
version: 7.14.5
10621046
resolution: "@babel/plugin-transform-shorthand-properties@npm:7.14.5"
@@ -5410,7 +5394,6 @@ fsevents@~2.3.2:
54105394
resolution: "react-async-button-test-page@workspace:."
54115395
dependencies:
54125396
"@babel/core": ^7.9.0
5413-
"@babel/plugin-transform-runtime": ^7.9.0
54145397
"@babel/preset-env": ^7.9.0
54155398
"@babel/preset-react": ^7.9.0
54165399
"@pmmmwh/react-refresh-webpack-plugin": ^0.5.0-0

yarn.lock

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,22 @@ __metadata:
11011101
languageName: node
11021102
linkType: hard
11031103

1104+
"@babel/plugin-transform-runtime@npm:^7.9.0":
1105+
version: 7.15.0
1106+
resolution: "@babel/plugin-transform-runtime@npm:7.15.0"
1107+
dependencies:
1108+
"@babel/helper-module-imports": ^7.14.5
1109+
"@babel/helper-plugin-utils": ^7.14.5
1110+
babel-plugin-polyfill-corejs2: ^0.2.2
1111+
babel-plugin-polyfill-corejs3: ^0.2.2
1112+
babel-plugin-polyfill-regenerator: ^0.2.2
1113+
semver: ^6.3.0
1114+
peerDependencies:
1115+
"@babel/core": ^7.0.0-0
1116+
checksum: 5717e0e6d2f77ef71996b22440e5e68ae4f9e7f4ae85e2dc6e3b99155840a0fdc71a62db1979f19be646a34fef022db506a1036a6e4bf5e89d53a6d94713cc74
1117+
languageName: node
1118+
linkType: hard
1119+
11041120
"@babel/plugin-transform-shorthand-properties@npm:^7.14.5":
11051121
version: 7.14.5
11061122
resolution: "@babel/plugin-transform-shorthand-properties@npm:7.14.5"
@@ -1828,6 +1844,7 @@ __metadata:
18281844
dependencies:
18291845
"@babel/cli": ^7.9.0
18301846
"@babel/core": ^7.9.0
1847+
"@babel/plugin-transform-runtime": ^7.9.0
18311848
"@babel/preset-env": ^7.9.0
18321849
"@babel/preset-react": ^7.9.0
18331850
"@wojtekmaj/enzyme-adapter-react-17": ^0.6.0

0 commit comments

Comments
 (0)