Skip to content

Commit d729f7c

Browse files
committed
Merge branch 'fix-component-support' of https://github.com/danmilon/d3 into fix-component-support
2 parents 87dd8a5 + bec7098 commit d729f7c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

component.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "d3",
33
"version": "3.1.4",
4-
"main": "./d3.js"
4+
"main": "index-browserify.js",
5+
"scripts": ["index-browserify.js", "d3.js"]
56
}

index-browserify.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
require("./d3");
2-
module.exports = d3;
2+
module.exports = d3;
3+
4+
// unset global variable
5+
(function () { delete this.d3; })();

0 commit comments

Comments
 (0)