Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db140b9

Browse files
author
Johannes
committed
- Fixed error with client-side bundlers when a module was ending with a comment
1 parent ef0bdee commit db140b9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
##Changelog
22

3+
###v1.0.3
4+
- Fixed error with client-side bundlers when a module was ending with a comment
5+
36
###v1.0.2
47
- Improved strict mode detection
58

lib/bundlers/injectRewire.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function injectRewire(src, settersAndGettersSrc) {
3636
(detectStrictMode(src)? ' "use strict"; ': ' ') +
3737

3838
settersAndGettersSrc + "\n" +
39-
src +
39+
src + "\n" +
4040

4141
" })();";
4242

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "rewire",
3-
"version" : "1.0.2",
3+
"version" : "1.0.3",
44
"description" : "Dependency injection for node.js applications",
55
"keywords" : [
66
"dependency",

0 commit comments

Comments
 (0)