fix preset requires

This commit is contained in:
Iuri Matias 2018-02-23 18:24:46 -05:00
parent 8d255137d9
commit 511b61c6c5
1 changed files with 2 additions and 2 deletions

View File

@ -207,8 +207,8 @@ class Pipeline {
loader: "babel-loader",
exclude: /(node_modules|bower_components)/,
options: {
presets: ['es2016', 'es2017', 'react'],
plugins: ["babel-plugin-webpack-aliases"]
presets: ['babel-preset-es2016', 'babel-preset-es2017', 'babel-preset-react'].map(require.resolve),
plugins: ["babel-plugin-webpack-aliases"].map(require.resolve)
}
}
]