Closed sapphi-red closed 9 months ago
Thank you so much for dropping by our Laravel world to help us out with the upgrade, @sapphi-red.
We've got a working branch where we have already made the type module changes, thankfully.
I'm going to close this one as we I'm creating a single PR to house all our Vite 5 upgrade work to make it easier for review etc.
Thanks again. We really appreciate the Vite team ❤️
No problem! 😃
Vite 5 uses Rollup 4 and Rollup 4 now requires "moduleResolution": "NodeNext" or "moduleResolution": "bundler".
I set
"type": "module"
inpackage.json
to make it work, but I can renamesrc/index.ts
tosrc/index.mts
instead of that. Setting"type": "module"
will fixinertia-helpers
to be interpreted as CJS too.