Skip to content

Commit

Permalink
Merge pull request #123 from JvJefke/bugfix/class-constructor
Browse files Browse the repository at this point in the history
Do not use .babelrc file when using babel
  • Loading branch information
jhnns committed Nov 20, 2017
2 parents 2f6d7af + 333bd1a commit e6ee96f
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
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
@@ -0,0 +1,4 @@
{
"presets": ["es2015"],
"plugins": ["transform-class-properties"]
}

0 comments on commit e6ee96f

Please sign in to comment.