Closed wellyshen closed 6 years ago
Hi guys, I upgraded to webpack v4 with babel 7. When I use the babelrc: false of babel-loader's option I encounter the following error and it only occurs in development:
babelrc: false
development
Here's the error snippet of my webpack config:
// ... { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel', options: { cacheDirectory: isDev, babelrc: false, // <== Turn it off will cause the error presets: [ ['@babel/preset-env', { modules: false, useBuiltIns: 'usage' }], '@babel/preset-react', '@babel/preset-stage-0', '@babel/preset-flow' ], plugins: [ 'react-hot-loader/babel', 'loadable-components/babel', 'lodash' ], env: { production: { plugins: ['transform-remove-console'] } } } }, // ...
Any suggestion for it?
Reopen on https://github.com/FormidableLabs/webpack-dashboard/issues/241
Hi guys, I upgraded to webpack v4 with babel 7. When I use the
babelrc: false
of babel-loader's option I encounter the following error and it only occurs indevelopment
:Here's the error snippet of my webpack config:
Any suggestion for it?