Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Commit ccc6661

Browse files
committed
[fixed] a very long standing issue (it basically existed from the very beginning) by ignoring ".babelrc" files and enabling the ES2015 module syntax transpilation; tree shaking will be available again when both webpack 2.3 and webpack-hot-loader 3.0 come out
1 parent 5396dbb commit ccc6661

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/webpack.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const isProduction = 'production' === process.env.NODE_ENV;
5050
* babelFEOptions.presets.push('my-custom-preset');
5151
*/
5252
export const babelBEOptions = {
53+
babelrc: false,
5354
presets: ['es2016', 'es2017', 'stage-2', 'react'],
5455
plugins: [
5556
['transform-es2015-modules-commonjs', {loose: true}]
@@ -71,8 +72,13 @@ export const babelBEOptions = {
7172
*/
7273
export const babelFEOptions = {
7374
cacheDirectory: true,
75+
babelrc: false,
7476
presets: [
75-
['es2015', {loose: true, modules: false}],
77+
['es2015', {
78+
// temporarily disabled until `webpack` 2.3 and `webpack-hot-loader` 3.0 are available
79+
// modules: false,
80+
loose: true
81+
}],
7682
'es2016', 'es2017', 'stage-2', 'react'
7783
],
7884
plugins: ['transform-runtime']

0 commit comments

Comments
 (0)