Skip to content

Commit

Permalink
Merge pull request #122 from JvJefke/bugfix/babel-plugin-resolve
Browse files Browse the repository at this point in the history
Fix for #121 "pluginUnknown" error
  • Loading branch information
jhnns committed Nov 15, 2017
2 parents cce2de8 + e5ce1ab commit c6d8982
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 c6d8982

Please sign in to comment.