This commit is contained in:
Tobias Koppers 2016-09-07 09:59:12 +02:00
parent c51c59cee1
commit 6d1f3e3fa3
3 changed files with 13 additions and 0 deletions

View File

@ -47,6 +47,8 @@ HarmonyExportSpecifierDependency.Template.prototype.apply = function(dep, source
} else {
content = "/* harmony export (binding) */ __webpack_require__.d(exports, " + JSON.stringify(used) + ", function() { return " + dep.id + "; });\n";
}
if(dep.position > 0)
content = "\n" + content;
source.insert(dep.position, content);
};

View File

@ -0,0 +1,5 @@
export const a = {
x: 1
}, b = {
x: 2
}

View File

@ -0,0 +1,6 @@
import { a, b } from "./a";
it("should export a const value without semicolon", function() {
a.should.be.eql({x: 1});
b.should.be.eql({x: 2});
});