I have a laravel project using ag-grid with a button that has its funtions in a seperate .js file. Done as documentation dictates (for vue.js):
https://blog.ag-grid.com/cell-renderers-in-ag-grid-every-different-flavour/#vuejs
This works in Pre laravel 9, using webpack instead of vite.
The issue is that vite build is compiling without that js file, so the ag grid button is not showing. Running vite dev will not compile away the js file, and it will work as intended.
How do i get vite to not ignore the file when compiling the build?