jquery-ui
jquery-ui copied to clipboard
Issues using jQuery UI with Vite
Vite is now the default frontend tooling for projects like Laravel and VueJS
A number of people are having issues with using jQuery UI and Vite together https://github.com/vitejs/vite/discussions/9415#discussioncomment-3959724
Thanks for the report. Since the issue is already in 1.12, given limited team resources it's not likely to be fixed by the UI team; see the project status at https://blog.jqueryui.com/2021/10/jquery-maintainers-update-and-transition-jquery-ui-as-part-of-overall-modernization-efforts/. PRs are welcome if they're not too complex.
I think the main issue here is that Vite.js doesn't support AMD but only ECMAScript Modules (ESM) or CommonJS ones. Due to the maintenance mode of jQuery UI, we don't have plans to migrate the module system used.
That said, importing the whole jQuery UI should work, only individual modules should have issues.