Disable Symbol typeof transform (#5278)

This commit is contained in:
Dan Abramov
2018-10-03 20:04:33 +01:00
committed by GitHub
parent b3947e15a6
commit 449a812b1a
2 changed files with 6 additions and 0 deletions

View File

@@ -82,6 +82,8 @@ module.exports = function(api, opts, env) {
useBuiltIns: false,
// Do not transform modules to CJS
modules: false,
// Exclude transforms that make all code slower
exclude: ['transform-typeof-symbol'],
},
],
[

View File

@@ -76,6 +76,8 @@ module.exports = function(api, opts) {
},
// Do not transform modules to CJS
modules: false,
// Exclude transforms that make all code slower
exclude: ['transform-typeof-symbol'],
},
],
(isEnvProduction || isEnvDevelopment) && [
@@ -95,6 +97,8 @@ module.exports = function(api, opts) {
useBuiltIns: false,
// Do not transform modules to CJS
modules: false,
// Exclude transforms that make all code slower
exclude: ['transform-typeof-symbol'],
},
],
].filter(Boolean),