cpettitt/dagre-d3 — pull request #103 by bollwyvl (2014-10-24 04:02:52+00:00)
Title: fix #50: browserify -s

This apparently fixes #50 by using `browserify index.js -s dagreD3` instead of `browserify browser.js`. Looks like the tests pass!

Since the IPython notebook was mentioned, and is what I wanted it for, I've made a [notebook with an embedded build](http://nbviewer.ipython.org/gist/bollwyvl/6b1945104c8fdaedd82c/dagre-d3%20vs%20require.js%20in%20the%20IPython%20Notebook.ipynb).

I don't know how to add testing require.js behavior to the test suite... there is some [old doc](http://karma-runner.github.io/0.8/plus/RequireJS.html) about using r.js with karma, but I have never worked with it before. It could be that we can just trust browserify, which is usually smarter than me, but I would kind of like to know that this was being looked after.

There are some warnings on the browsersify doc related to how this might affect downstream builds that are explicitly looking for `require`... I also don't know how to test that until it breaks someone's stuff.

Hopefully this helps!