Open ctrlmaniac opened 7 years ago
I probably can, can you please explain why? Thx
So I can use it in a node environment without having to shim it, or use an other package to make it compatible!
It's now a common practice for jquery plugins to use this IIFE instead of the one provided by the jquery team on their blog, to make jquery plugins node-compatibles. You can check on the npm's blog!!
Jquery itself it's built inside this IIFE, so I guess that it's time to change and upgrade.
The core functionality won't change and you will still be able to use it like before (src in a script tag). But with this IIFE I can use it (in a simpler way - requiring it) with Browserify or Webpack without shimming it!
So to sum up:
I hope these are enough reasons!!
Please, can you change the old jquery IIFE to the one provided by umdjs?
I dont' know coffeescript, otherwise I'd pull a request.