Skip to content

Commit bec7098

Browse files
committed
fix component support
1 parent 37a9152 commit bec7098

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)