diff options
author | Johannes Ewald <mail@johannesewald.de> | 2017-11-20 15:32:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 15:32:38 +0300 |
commit | e6ee96ff10f2ff81703a69cff9cfcd2cb1aab2f9 (patch) | |
tree | 6259f3d002e52023914c53bb1591e7572a954be1 | |
parent | 2f6d7af3b57aaa55655019054365cc241fd9881a (diff) | |
parent | 333bd1a0c6e64776a3e7a98ab218b0d95f996498 (diff) |
Merge pull request #123 from JvJefke/bugfix/class-constructor
Do not use .babelrc file when using babel
-rw-r--r-- | lib/moduleEnv.js | 3 | ||||
-rw-r--r-- | testLib/.babelrc | 4 |
2 files changed, 6 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); }; diff --git a/testLib/.babelrc b/testLib/.babelrc new file mode 100644 index 0000000..aeba5dc --- /dev/null +++ b/testLib/.babelrc @@ -0,0 +1,4 @@ +{ + "presets": ["es2015"], + "plugins": ["transform-class-properties"] +} |