diff options
author | jeroenvalcke <valcke_jeroen@hotmail.com> | 2017-11-15 20:23:46 +0300 |
---|---|---|
committer | jeroenvalcke <valcke_jeroen@hotmail.com> | 2017-11-15 20:23:46 +0300 |
commit | 65c7d3345da20a9388ae881db69e9f9b62cfa63d (patch) | |
tree | 1fa05fdbf1f3aa758f6f7cfd77fd91254bb2bdbe | |
parent | 35d43982c8f11717761562fcc29b087b2dbd89f9 (diff) | |
parent | 2f6d7af3b57aaa55655019054365cc241fd9881a (diff) |
Merge remote-tracking branch 'upstream/master' into bugfix/class-constructor
-rw-r--r-- | CHANGELOG.md | 3 | ||||
-rw-r--r-- | lib/moduleEnv.js | 2 | ||||
-rw-r--r-- | package.json | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a856b08..7476971 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ Changelog --------- +### 3.0.1 +- Fix Unknown Plugin "transform-es2015-block-scoping" [#121](https://github.com/jhnns/rewire/issues/121) [#122](https://github.com/jhnns/rewire/pull/122) + ### 3.0.0 - **Breaking:** Remove support for node versions below 4 - Add support for `const` [#79](https://github.com/jhnns/rewire/issues/79) [#95](https://github.com/jhnns/rewire/issues/95) [#117](https://github.com/jhnns/rewire/pull/117) [#118](https://github.com/jhnns/rewire/pull/118) diff --git a/lib/moduleEnv.js b/lib/moduleEnv.js index 789ea2f..febc792 100644 --- a/lib/moduleEnv.js +++ b/lib/moduleEnv.js @@ -76,7 +76,7 @@ function jsExtension(module, filename) { module._compile = function (content, filename) { content = babelCore.transform(content, { - plugins: ["transform-es2015-block-scoping"], + plugins: [require.resolve("babel-plugin-transform-es2015-block-scoping")], retainLines: true, filename: filename }).code; diff --git a/package.json b/package.json index 3ba775e..0d3e1c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rewire", - "version": "3.0.0", + "version": "3.0.1", "description": "Easy dependency injection for node.js unit testing", "keywords": [ "dependency", |