Open lifeiscontent opened 8 months ago
@lifeiscontent Not 100% sure, but this may be related to #8803 if you're describing behavior in development, and there may be fixes there that help you.
@ianserlin yeah, that might be it, I'm actually not sure what exactly the fix should look like but the behaviors I'm seeing from upgrading to vite is as follows:
@brophdawg11 can we get some eyes on this? the remix vite plugin has been around for awhile now, and I'm still unsure if this is working, specifically when adding @vitejs/plugin-legacy
to a remix + vite project.
Reproduction
per the docs: https://vitejs.dev/config/build-options#build-modulepreload
System Info
Used Package Manager
pnpm
Expected Behavior
when using vite + remix it automatically injects
vite/modulepreload-polyfill
into its dynamic inputs from rollupOptionsActual Behavior
remix doesn't seem to be handling this scenario outlined in the docs, and from what I can tell in Sentry.io our app stability has gone down significantly since switching to vite across different browsers, possible due to this not being implemented.