Skip to content

Conversation

@tbranyen
Copy link

I'm using this library with Browserify and found that it was unable to
detect d3 correctly. This adds in the necessary require call to find
the d3 dependency.

I also changed the UMD signature to not expect that define and
require are globals in the sense of the runtime, but instead are
global within the encapsulating function scope (which may be the same as
the runtime's). This will ensure d3.chart works as expected when
bundled.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

welp looks like tabs

I'm using this library with Browserify and found that it was unable to
detect d3 correctly.  This adds in the necessary `require` call to find
the d3 dependency.

I also changed the UMD signature to not expect that `define` and
`require` are globals in the sense of the runtime, but instead are
global within the encapsulating function scope (which may be the same as
the runtime's).  This will ensure d3.chart works as expected when
bundled.
@jugglinmike
Copy link
Member

Thanks, Tim! I want to look into an automated test for this change before it lands. That might be a little tricky, since it will involve some infrastructural work, but I don't think it will be too bad. I'll keep you posted!

@jugglinmike jugglinmike mentioned this pull request Jul 5, 2015
@tbranyen
Copy link
Author

Hope you don't mind, closing in favor of: #113

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.

2 participants