diff options
author | jeroenvalcke <valcke_jeroen@hotmail.com> | 2017-11-13 19:48:25 +0300 |
---|---|---|
committer | jeroenvalcke <valcke_jeroen@hotmail.com> | 2017-11-13 19:48:25 +0300 |
commit | e5ce1ab76853a367e1af36215dcf9b10db521d1f (patch) | |
tree | 2ad97d5477eefba394fc49cf9fd26493a76fdda5 /lib | |
parent | 0a77533c6b7a41606975303be2327c250cd77d19 (diff) |
Require resolve babel plugin so it searches the plugin from the cwd()
Diffstat (limited to 'lib')
-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; |