Skip to content

Commit 60a673d

Browse files
committed
Add browser: dc.js to package.json for Browserify
This will make Browserify skip bundling the scripts intended to run on CommonJS platforms and instead make it bundle dc.js directly. This fixes problems where Browserify is unable to find jsdom because it is not listed in the dependencies (and is not required on browser anyway). Resolves #1005.
1 parent c121634 commit 60a673d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,6 @@
7373
"dc.js.map"
7474
]
7575
}
76-
]
76+
],
77+
"browser": "dc.js"
7778
}

0 commit comments

Comments
 (0)