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
path: root/lib
diff options
context:
space:
mode:
authorjeroenvalcke <valcke_jeroen@hotmail.com>2017-11-15 22:58:11 +0300
committerjeroenvalcke <valcke_jeroen@hotmail.com>2017-11-15 22:58:11 +0300
commit61fa5ec8661c1bcaa92efcc651a411211d90ec69 (patch)
treee3c0775156cc2e28c2f3bc119597a10d1472b74a /lib
parentfc9787244c3e0a56f6e6b5c481778a8ebe751c38 (diff)
Make sure rewire is not using a .babelrc file
Diffstat (limited to 'lib')
-rw-r--r--lib/moduleEnv.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/moduleEnv.js b/lib/moduleEnv.js
index febc792..a9f410a 100644
--- a/lib/moduleEnv.js
+++ b/lib/moduleEnv.js
@@ -78,7 +78,8 @@ function jsExtension(module, filename) {
content = babelCore.transform(content, {
plugins: [require.resolve("babel-plugin-transform-es2015-block-scoping")],
retainLines: true,
- filename: filename
+ filename: filename,
+ babelrc: false
}).code;
_compile.call(module, content, filename);
};