Closed sapphi-red closed 11 months ago
Thanks again for your help here, @sapphi-red.
We've got a working branch where I think we have the types already sorted, but I'll double check against that tool once we have our final state.
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 ❤️
The types condition was wrongly declared. https://arethetypeswrong.github.io/?p=laravel-vite-plugin%400.8.1
This PR fixes that by
.
exporttypes
condition must be the first property. Instead of changing the order, I simply removed the condition because TypeScript will also look up the adjacent type file. See https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FallbackCondition.md for more details.