Skip to content

Commit

Permalink
Require resolve babel plugin so it searches the plugin from the cwd()
Browse files Browse the repository at this point in the history
  • Loading branch information
JvJefke committed Nov 13, 2017
1 parent 0a77533 commit e5ce1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moduleEnv.js
Expand Up @@ -76,7 +76,7 @@ function jsExtension(module, filename) {

module._compile = function (content, filename) {
content = babelCore.transform(content, {
plugins: ["transform-es2015-block-scoping"],
plugins: [require.resolve("babel-plugin-transform-es2015-block-scoping")],
retainLines: true,
filename: filename
}).code;
Expand Down

0 comments on commit e5ce1ab

Please sign in to comment.