Remove Flow type stripping support from preset.

https://github.com/meteor/babel/pull/28#issuecomment-577310170
This commit is contained in:
Ben Newman
2020-03-24 11:34:49 -04:00
parent f65c392fbe
commit ddedc242e9
4 changed files with 0 additions and 23 deletions

View File

@@ -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"),
]

View File

@@ -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"),
]
};

17
package-lock.json generated
View File

@@ -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",

View File

@@ -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",