Skip to content

Commit

Permalink
Add browser: dc.js to package.json for Browserify
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sdunster committed Dec 10, 2015
1 parent c121634 commit 60a673d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@
"dc.js.map"
]
}
]
],
"browser": "dc.js"
}

0 comments on commit 60a673d

Please sign in to comment.