From 511b61c6c521fc37a672247125c66a91d29b230c Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 23 Feb 2018 18:24:46 -0500 Subject: [PATCH] fix preset requires --- lib/pipeline/pipeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index b250a915..5dad76b0 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -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) } } ]