Skip to content

Added UMD support#12

Merged
leongersen merged 2 commits into
leongersen:masterfrom
tannerhodges:master
Jul 18, 2016
Merged

Added UMD support#12
leongersen merged 2 commits into
leongersen:masterfrom
tannerhodges:master

Conversation

@tannerhodges

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@fourstacks

Copy link
Copy Markdown

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

@ghost

ghost commented Jul 11, 2016

Copy link
Copy Markdown

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

@leongersen

Copy link
Copy Markdown
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

kazrudys commented Jul 18, 2016

Copy link
Copy Markdown

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
Copy Markdown
Owner

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

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.

4 participants