diff --git a/index.js b/index.js index 9ee578fa9e..83daf33329 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,6 @@ module.exports = function (api, options) { return { plugins: [ - require("@babel/plugin-syntax-flow"), ...require("./proposals.js").plugins, require("@babel/plugin-transform-arrow-functions"), require("@babel/plugin-transform-block-scoped-functions"), @@ -29,7 +28,6 @@ module.exports = function (api, options) { require("@babel/plugin-transform-typeof-symbol"), require("@babel/plugin-transform-unicode-regex"), require("@babel/plugin-transform-property-literals"), - require("@babel/plugin-transform-flow-strip-types"), require("@babel/plugin-transform-exponentiation-operator"), require("@babel/plugin-transform-regenerator"), ] diff --git a/modern.js b/modern.js index b708ceb824..95126a7288 100644 --- a/modern.js +++ b/modern.js @@ -1,13 +1,11 @@ exports.getPreset = function (api, options) { return { plugins: [ - require("@babel/plugin-syntax-flow"), ...require("./proposals.js").plugins, require("@babel/plugin-transform-literals"), require("@babel/plugin-transform-template-literals"), require("@babel/plugin-transform-parameters"), // require("@babel/plugin-transform-unicode-regex"), - require("@babel/plugin-transform-flow-strip-types"), require("@babel/plugin-transform-exponentiation-operator"), ] }; diff --git a/package-lock.json b/package-lock.json index 5ab2a05fce..37d6a4c568 100644 --- a/package-lock.json +++ b/package-lock.json @@ -330,14 +330,6 @@ "@babel/helper-plugin-utils": "^7.8.3" } }, - "@babel/plugin-syntax-flow": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.8.3.tgz", - "integrity": "sha512-innAx3bUbA0KSYj2E2MNFSn9hiCeowOFLxlsuhXzw8hMQnzkDomUr9QCD7E9VF60NmnG1sNTuuv6Qf4f8INYsg==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.3" - } - }, "@babel/plugin-syntax-nullish-coalescing-operator": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", @@ -445,15 +437,6 @@ "@babel/helper-plugin-utils": "^7.8.3" } }, - "@babel/plugin-transform-flow-strip-types": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.9.0.tgz", - "integrity": "sha512-7Qfg0lKQhEHs93FChxVLAvhBshOPQDtJUTVHr/ZwQNRccCm4O9D79r9tVSoV8iNwjP1YgfD+e/fgHcPkN1qEQg==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-syntax-flow": "^7.8.3" - } - }, "@babel/plugin-transform-for-of": { "version": "7.9.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.9.0.tgz", diff --git a/package.json b/package.json index 48738a5b28..bff7afb621 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "@babel/plugin-proposal-optional-chaining": "^7.9.0", "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-flow": "^7.8.3", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", @@ -31,7 +30,6 @@ "@babel/plugin-transform-computed-properties": "^7.8.3", "@babel/plugin-transform-destructuring": "^7.8.8", "@babel/plugin-transform-exponentiation-operator": "^7.8.3", - "@babel/plugin-transform-flow-strip-types": "^7.9.0", "@babel/plugin-transform-for-of": "^7.9.0", "@babel/plugin-transform-literals": "^7.8.3", "@babel/plugin-transform-object-super": "^7.8.3",