Skip to content

Commit

Permalink
Fix #3055.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jan 20, 2017
1 parent b41a5fe commit a9dadca
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions rollup.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ rollup.rollup({
entry: "index.js",
external: Object.keys(dependencies)
}).then(function(bundle) {
var code = bundle.generate({
format: "cjs"
}).code.replace(
/^exports\.event = (.*);$/m,
"Object.defineProperty(exports, \"event\", {get: function() { return $1; }});"
);
var code = bundle.generate({format: "cjs"}).code + "Object.defineProperty(exports, \"event\", {get: function() { return d3Selection.event; }});\n";
return new Promise(function(resolve, reject) {
fs.writeFile("build/d3.node.js", code, "utf8", function(error) {
if (error) return reject(error);
Expand Down

0 comments on commit a9dadca

Please sign in to comment.