When Laravel switched its default asset bundler from Laravel Mix, a bundler built with Webpack to the Vite asset bundler. I've noticed multiple users have had reported issues getting jQuery to work with Laravel and Vite.
For that reason, I decided to write a post on how to use jQuery with Laravel and Vite to help any user who might have issues getting it to work.
My hope is that this post will clean up any confusion they might have and solves their issues.
For that reason, I decided to write a post on how to use jQuery with Laravel and Vite to help any user who might have issues getting it to work.
My hope is that this post will clean up any confusion they might have and solves their issues.