chore: remove included proposal plugins (#11433)
This commit is contained in:
parent
1c0970131e
commit
0aa5a47196
@ -8,6 +8,7 @@ module.exports = function(api) {
|
|||||||
const envOptsNoTargets = {
|
const envOptsNoTargets = {
|
||||||
loose: true,
|
loose: true,
|
||||||
modules: false,
|
modules: false,
|
||||||
|
shippedProposals: true,
|
||||||
exclude: ["transform-typeof-symbol"],
|
exclude: ["transform-typeof-symbol"],
|
||||||
};
|
};
|
||||||
const envOpts = Object.assign({}, envOptsNoTargets);
|
const envOpts = Object.assign({}, envOptsNoTargets);
|
||||||
@ -100,14 +101,10 @@ module.exports = function(api) {
|
|||||||
"@babel/plugin-transform-flow-strip-types",
|
"@babel/plugin-transform-flow-strip-types",
|
||||||
["@babel/proposal-class-properties", { loose: true }],
|
["@babel/proposal-class-properties", { loose: true }],
|
||||||
"@babel/proposal-export-namespace-from",
|
"@babel/proposal-export-namespace-from",
|
||||||
"@babel/proposal-numeric-separator",
|
|
||||||
[
|
[
|
||||||
"@babel/proposal-object-rest-spread",
|
"@babel/proposal-object-rest-spread",
|
||||||
{ useBuiltIns: true, loose: true },
|
{ useBuiltIns: true, loose: true },
|
||||||
],
|
],
|
||||||
["@babel/plugin-proposal-optional-chaining", { loose: true }],
|
|
||||||
["@babel/plugin-proposal-nullish-coalescing-operator", { loose: true }],
|
|
||||||
|
|
||||||
compileDynamicImport ? dynamicImportUrlToPath : null,
|
compileDynamicImport ? dynamicImportUrlToPath : null,
|
||||||
compileDynamicImport ? "@babel/plugin-proposal-dynamic-import" : null,
|
compileDynamicImport ? "@babel/plugin-proposal-dynamic-import" : null,
|
||||||
|
|
||||||
|
|||||||
@ -16,10 +16,7 @@
|
|||||||
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
||||||
"@babel/plugin-proposal-dynamic-import": "^7.8.3",
|
"@babel/plugin-proposal-dynamic-import": "^7.8.3",
|
||||||
"@babel/plugin-proposal-export-namespace-from": "^7.8.3",
|
"@babel/plugin-proposal-export-namespace-from": "^7.8.3",
|
||||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
|
|
||||||
"@babel/plugin-proposal-numeric-separator": "^7.8.3",
|
|
||||||
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
|
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
|
||||||
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
|
|
||||||
"@babel/plugin-transform-flow-strip-types": "^7.9.0",
|
"@babel/plugin-transform-flow-strip-types": "^7.9.0",
|
||||||
"@babel/plugin-transform-for-of": "^7.9.0",
|
"@babel/plugin-transform-for-of": "^7.9.0",
|
||||||
"@babel/plugin-transform-modules-commonjs": "^7.9.0",
|
"@babel/plugin-transform-modules-commonjs": "^7.9.0",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user