Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added UMD support #12

Merged
merged 2 commits into from
Jul 18, 2016
Merged

Added UMD support #12

merged 2 commits into from
Jul 18, 2016

Conversation

tannerhodges
Copy link
Contributor

Went to use this with noUiSlider and realized that require('wnumb') was returning an empty object, so I copied the UMD patten from noUiSlider.

Hope this is a quick fix for anyone else out there using Browserify.

@tannerhodges
Copy link
Contributor Author

Whoops! Just realized I had the wrong global namespace in there—just pushed a quick fix.

@fourstacks
Copy link

@tannerhodges thanks for the fix! Fingers crossed it gets merge soon

@ghost
Copy link

ghost commented Jul 11, 2016

This is still open from Jan 22. This is definitely worth having. What's the outcome?

@leongersen
Copy link
Owner

I honestly forgot to progress on this. I'll get it done this weekend.

@leongersen leongersen merged commit 039aacb into leongersen:master Jul 18, 2016
@kazrudys
Copy link

kazrudys commented Jul 18, 2016

Hi,
v1.0.4 seems to be causing us problems when WebPacked (1.13.1). We're getting

wNumb is not a function

and it appears
require('wnumb')
is returning undefined.

I've reverted to v1.0.2 and that appears to work fine.

@leongersen
Copy link
Owner

That's a case-sensitivity issue. You'll need require('wNumb').

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants