mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 20:51:12 +08:00
Disable Symbol typeof transform (#5278)
This commit is contained in:
@@ -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'],
|
||||
},
|
||||
],
|
||||
[
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user