From d110998767cf100cf01e8d1f992f822598c8b4af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Thu, 16 Apr 2020 12:03:31 -0400 Subject: [PATCH] chore: remove included proposal plugins --- babel.config.js | 5 +---- package.json | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/babel.config.js b/babel.config.js index 33d6e23ffb04..b66ad8e143e3 100644 --- a/babel.config.js +++ b/babel.config.js @@ -8,6 +8,7 @@ module.exports = function(api) { const envOptsNoTargets = { loose: true, modules: false, + shippedProposals: true, exclude: ["transform-typeof-symbol"], }; const envOpts = Object.assign({}, envOptsNoTargets); @@ -100,14 +101,10 @@ module.exports = function(api) { "@babel/plugin-transform-flow-strip-types", ["@babel/proposal-class-properties", { loose: true }], "@babel/proposal-export-namespace-from", - "@babel/proposal-numeric-separator", [ "@babel/proposal-object-rest-spread", { useBuiltIns: true, loose: true }, ], - ["@babel/plugin-proposal-optional-chaining", { loose: true }], - ["@babel/plugin-proposal-nullish-coalescing-operator", { loose: true }], - compileDynamicImport ? dynamicImportUrlToPath : null, compileDynamicImport ? "@babel/plugin-proposal-dynamic-import" : null, diff --git a/package.json b/package.json index 69d0003309be..584a31b9778e 100644 --- a/package.json +++ b/package.json @@ -16,10 +16,7 @@ "@babel/plugin-proposal-class-properties": "^7.8.3", "@babel/plugin-proposal-dynamic-import": "^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-optional-chaining": "^7.9.0", "@babel/plugin-transform-flow-strip-types": "^7.9.0", "@babel/plugin-transform-for-of": "^7.9.0", "@babel/plugin-transform-modules-commonjs": "^7.9.0",