Skip to content

Commit

Permalink
Fixed issue related to babel/babel-loader#149
Browse files Browse the repository at this point in the history
  • Loading branch information
tijme committed Apr 6, 2020
1 parent 1ef14be commit 5cd9b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5cd9b99

Please sign in to comment.