Skip to content

Commit

Permalink
Merge pull request #3969 from webpack/bugfix/issue-3964
Browse files Browse the repository at this point in the history
fix for #3964 and tests
  • Loading branch information
sokra committed Jan 15, 2017
2 parents 4658067 + 9bb46d4 commit 9fd55e5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -22,7 +22,7 @@
"tapable": "~0.2.5",
"uglify-js": "^2.7.5",
"watchpack": "^1.2.0",
"webpack-sources": "^0.1.0",
"webpack-sources": "^0.1.4",
"yargs": "^6.0.0"
},
"license": "MIT",
Expand Down
4 changes: 4 additions & 0 deletions test/cases/parsing/issue-3964/index.js
@@ -0,0 +1,4 @@
it("should be possible to export default an imported name", function() {
var x = require("./module");
x.should.be.eql({ default: 1234 });
});
2 changes: 2 additions & 0 deletions test/cases/parsing/issue-3964/module.js
@@ -0,0 +1,2 @@
import X from "./x"
export default X
1 change: 1 addition & 0 deletions test/cases/parsing/issue-3964/x.js
@@ -0,0 +1 @@
export default 1234;

0 comments on commit 9fd55e5

Please sign in to comment.