diff options
author | Johannes Ewald <mail@johannesewald.de> | 2017-11-15 17:35:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 17:35:21 +0300 |
commit | c6d8982fcda2912ab1f7171b53e6800c6796a151 (patch) | |
tree | 2ad97d5477eefba394fc49cf9fd26493a76fdda5 | |
parent | cce2de832c99e1f1491c9766bc6a2f1b4d0a3bd2 (diff) | |
parent | e5ce1ab76853a367e1af36215dcf9b10db521d1f (diff) |
Merge pull request #122 from JvJefke/bugfix/babel-plugin-resolve
Fix for #121 "pluginUnknown" error
-rw-r--r-- | lib/moduleEnv.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/moduleEnv.js b/lib/moduleEnv.js index 789ea2f..febc792 100644 --- a/lib/moduleEnv.js +++ b/lib/moduleEnv.js @@ -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; |