fix preset requires
This commit is contained in:
parent
8d255137d9
commit
511b61c6c5
|
@ -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)
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue