mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Remove Flow type stripping support from preset.
https://github.com/meteor/babel/pull/28#issuecomment-577310170
This commit is contained in:
2
index.js
2
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"),
|
||||
]
|
||||
|
||||
@@ -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
17
package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user