diff options
author | jeroenvalcke <valcke_jeroen@hotmail.com> | 2017-11-15 22:58:11 +0300 |
---|---|---|
committer | jeroenvalcke <valcke_jeroen@hotmail.com> | 2017-11-15 22:58:11 +0300 |
commit | 61fa5ec8661c1bcaa92efcc651a411211d90ec69 (patch) | |
tree | e3c0775156cc2e28c2f3bc119597a10d1472b74a /lib | |
parent | fc9787244c3e0a56f6e6b5c481778a8ebe751c38 (diff) |
Make sure rewire is not using a .babelrc file
Diffstat (limited to 'lib')
-rw-r--r-- | lib/moduleEnv.js | 3 |
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); }; |