Skip to content

Conversation

bollwyvl
Copy link
Contributor

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.

I don't know how to add testing require.js behavior to the test suite... there is some old doc 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!

@ghost ghost merged commit f425c27 into dagrejs:master Oct 25, 2014
@ghost
Copy link

ghost commented Oct 25, 2014

Cool. I agree - tests for the requirejs path would be helpful to ensure this remains stable. Thanks for the patch!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Work with require.js in browser
1 participant