Open ericnewton76 opened 6 years ago
UMD factory like https://gist.github.com/simonsmith/4353587
Simple to wrap. Correctly attaches colorbox functionality to jQuery instance that will be handed to other functions calling require('jquery'), without needing to use (requirejs) config.shim
The following I believe is an example of this: https://github.com/Sioweb/colorbox/blob/master/jquery.colorbox.js
That would be great and also make it to be usable with stuff like Vite.
UMD factory like https://gist.github.com/simonsmith/4353587
Simple to wrap. Correctly attaches colorbox functionality to jQuery instance that will be handed to other functions calling require('jquery'), without needing to use (requirejs) config.shim