Skip to content

Commit

Permalink
Make sure rewire is not using a .babelrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
JvJefke committed Nov 15, 2017
1 parent fc97872 commit 61fa5ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/moduleEnv.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down
4 changes: 4 additions & 0 deletions testLib/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["es2015"],
"plugins": ["transform-class-properties"]
}

0 comments on commit 61fa5ec

Please sign in to comment.