Skip to content

Commit 19a451c

Browse files
committed
Remove unneeded Babel plugins
1 parent 2c6e9d6 commit 19a451c

File tree

6 files changed

+2
-15
lines changed

6 files changed

+2
-15
lines changed

babel_config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,5 @@ export default {
2323
"transform-regenerator"
2424
],
2525
}]
26-
],
27-
plugins: [
28-
// Shipped in Firefox 57, Chrome 63
29-
"@babel/plugin-proposal-async-generator-functions",
30-
// Shipped in Firefox 55, Chrome 60
31-
"@babel/plugin-proposal-object-rest-spread"
3226
]
3327
};

fluent-react/babel.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ module.exports = {
33
"presets": [
44
"@babel/preset-react",
55
["@babel/preset-env", {
6-
"targets": "node >= 8.9.0"
6+
"targets": "node >= 10.0.0"
77
}]
88
],
99
"plugins": [
1010
["babel-plugin-transform-rename-import", {
1111
"original": "fluent",
1212
"replacement": "fluent/compat"
13-
}],
14-
"@babel/plugin-proposal-async-generator-functions"
13+
}]
1514
],
1615
};

fluent-react/compat_config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export default {
99
babel({
1010
...babelConfig,
1111
plugins: [
12-
...babelConfig.plugins,
1312
["babel-plugin-transform-rename-import", {
1413
replacements: [
1514
{

fluent-react/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"react": "^0.14.9 || ^15.0.0 || ^16.0.0"
5656
},
5757
"devDependencies": {
58-
"@babel/plugin-proposal-async-generator-functions": "^7.2.0",
5958
"@babel/preset-env": "^7.5.5",
6059
"@babel/preset-react": "7.0.0",
6160
"babel-jest": "^24.8.0",

mocha_setup.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ require("@babel/register")({
88
&& !/node_modules\/@fluent/.test(path)
99
],
1010
plugins: [
11-
"@babel/plugin-proposal-async-generator-functions",
12-
"@babel/plugin-proposal-object-rest-spread",
1311
"@babel/plugin-transform-modules-commonjs"
1412
]
1513
});

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
},
88
"devDependencies": {
99
"@babel/core": "^7.4.3",
10-
"@babel/plugin-proposal-async-generator-functions": "^7.2.0",
11-
"@babel/plugin-proposal-object-rest-spread": "^7.4.3",
1210
"@babel/plugin-transform-modules-commonjs": "^7.4.3",
1311
"@babel/polyfill": "^7.4.3",
1412
"@babel/preset-env": "^7.4.3",

0 commit comments

Comments
 (0)