Closed dutzi closed 7 years ago
I see what you're going for, would like to keep the IIFE wrapper though, and add some better export support, like in https://github.com/JakeSidSmith/react-reorder/pull/68/files. This way people can add as a script tag, import with AMD, etc.
Would you like to make these changes, or shall I open another PR?
Sure, I'll give it a try.
I made the change you asked for (I hope it's ok, I'm not too familiar with AMD/CommonJS import mechanisms).
But I ran into the following eslint error which I couldn't solve:
/Users/dutzi/Documents/wix/react-fastclick-fork/lib/index.js
247:33 error 'React' is already declared in the upper scope no-shadow
@dutzi For the AMD imports I just give them a different name within that scope e.g.
define(['react'], function (ReactAMD) {
Ok, so I kept it as is (no bind) and just renamed React as ReactAMD.
Looks good. Gonna merge this in a bit, and make some other small changes, then I'll get a release out. :)
Cool :)
@dutzi published v3. :)
Yey!
See #41