From 5cd9b99673cfb52272bfce2d47b04fc02d189510 Mon Sep 17 00:00:00 2001 From: Tijme Gommers Date: Mon, 6 Apr 2020 18:41:11 +0200 Subject: [PATCH] Fixed issue related to https://github.com/babel/babel-loader/issues/149 --- src/compiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler.js b/src/compiler.js index 4072043..8cae2d2 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -6,8 +6,8 @@ const path = require('path') const parentDir = path.dirname(module.parent.parent.filename) const babelConfig = { - presets: ["env"], - plugins: ['transform-object-rest-spread'] + presets: [require.resolve('babel-preset-env')], + plugins: [require.resolve('babel-plugin-transform-object-rest-spread')] } function moduleExists(name) {