Skip to content

Commit

Permalink
chore: remove included proposal plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Apr 16, 2020
1 parent 6b8f6ab commit 6f176c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions babel.config.js
Expand Up @@ -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);
Expand Down Expand Up @@ -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,

Expand Down
3 changes: 0 additions & 3 deletions package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 6f176c8

Please sign in to comment.