jquery-ui icon indicating copy to clipboard operation
jquery-ui copied to clipboard

Issues using jQuery UI with Vite

Open liamkeily opened this issue 2 years ago • 2 comments

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

liamkeily avatar Oct 25 '22 11:10 liamkeily

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.

mgol avatar Oct 26 '22 14:10 mgol

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.

mgol avatar Oct 26 '22 20:10 mgol