Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeroenvalcke <valcke_jeroen@hotmail.com>2017-11-13 19:48:25 +0300
committerjeroenvalcke <valcke_jeroen@hotmail.com>2017-11-13 19:48:25 +0300
commite5ce1ab76853a367e1af36215dcf9b10db521d1f (patch)
tree2ad97d5477eefba394fc49cf9fd26493a76fdda5
parent0a77533c6b7a41606975303be2327c250cd77d19 (diff)
Require resolve babel plugin so it searches the plugin from the cwd()
-rw-r--r--lib/moduleEnv.js2
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;