Skip to content

Commit 9fd55e5

Browse files
authored
Merge pull request webpack#3969 from webpack/bugfix/issue-3964
fix for webpack#3964 and tests
2 parents 4658067 + 9bb46d4 commit 9fd55e5

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"tapable": "~0.2.5",
2323
"uglify-js": "^2.7.5",
2424
"watchpack": "^1.2.0",
25-
"webpack-sources": "^0.1.0",
25+
"webpack-sources": "^0.1.4",
2626
"yargs": "^6.0.0"
2727
},
2828
"license": "MIT",
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
it("should be possible to export default an imported name", function() {
2+
var x = require("./module");
3+
x.should.be.eql({ default: 1234 });
4+
});
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import X from "./x"
2+
export default X

test/cases/parsing/issue-3964/x.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 1234;

0 commit comments

Comments
 (0)