Exclude transform-typeof-symbol (#6812)

Related to [create-react-app#5278](https://github.com/facebook/create-react-app/pull/5278#issue-220142150)
This commit is contained in:
Luis Fernando Alvarez D 2019-03-29 19:54:05 -05:00 committed by Tim Neutkens
parent f81e5f4cad
commit 6bb83272a3
2 changed files with 3 additions and 1 deletions

View file

@ -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 production/development this option is set to `false` so that webpack can handle import/export with tree-shaking
modules: 'auto',
exclude: ['transform-typeof-symbol'],
...options['preset-env']
}
return {

View file

@ -7,7 +7,8 @@ const babelOpts = {
modules: 'commonjs',
'targets': {
'browsers': ['IE 11']
}
},
exclude: ['transform-typeof-symbol']
}]
],
plugins: [