Fix: Rename vite.config.js to .mjs in all packages
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m20s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m20s
This ensures that Vite treats the configuration files as ESM, allowing them to natively import 'laravel-vite-plugin' (which is ESM-only). This resolves the build error where esbuild was converting imports to require() calls in CJS packages, causing the build to fail.
This commit is contained in:
Reference in New Issue
Block a user