date-fns / date-fns

⏳ Modern JavaScript date utility library ⌛️
https://date-fns.org
MIT License
33.97k stars 1.75k forks source link

CDN minified version incompatible with jQuery #3798

Open rsisson opened 1 month ago

rsisson commented 1 month ago

I am working in a legacy environment with jQuery and when I use the minified CDN version of date-fns, it overrides the $ global variable that various other scripts are expecting. The un-minified build does not have this issue, so I think it is just an issue with your build settings. You can search for $=function(N,V,w) in https://cdn.jsdelivr.net/npm/date-fns@3.6.0/cdn.min.js

kossnocorp commented 1 month ago

Thank you for reporting that! I completely missed that. I'll make sure to fix it in an upcoming release.