Commit 6bb83272 authored by Luis Fernando Alvarez D's avatar Luis Fernando Alvarez D Committed by Tim Neutkens

Exclude transform-typeof-symbol (#6812)

Related to [create-react-app#5278](https://github.com/facebook/create-react-app/pull/5278#issue-220142150)
parent f81e5f4c
...@@ -58,6 +58,7 @@ module.exports = (api: any, options: NextBabelPresetOptions = {}): BabelPreset = ...@@ -58,6 +58,7 @@ module.exports = (api: any, options: NextBabelPresetOptions = {}): BabelPreset =
// In the test environment `modules` is often needed to be set to true, babel figures that out by itself using the `'auto'` option // In the test environment `modules` is often needed to be set to true, babel figures that out by itself using the `'auto'` option
// In production/development this option is set to `false` so that webpack can handle import/export with tree-shaking // In production/development this option is set to `false` so that webpack can handle import/export with tree-shaking
modules: 'auto', modules: 'auto',
exclude: ['transform-typeof-symbol'],
...options['preset-env'] ...options['preset-env']
} }
return { return {
......
...@@ -7,7 +7,8 @@ const babelOpts = { ...@@ -7,7 +7,8 @@ const babelOpts = {
modules: 'commonjs', modules: 'commonjs',
'targets': { 'targets': {
'browsers': ['IE 11'] 'browsers': ['IE 11']
} },
exclude: ['transform-typeof-symbol']
}] }]
], ],
plugins: [ plugins: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment