-
-
Notifications
You must be signed in to change notification settings - Fork 159
chore: revert Vite workaround #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I don't see vitejs/vite#17484 in the Vite changelog, so perhaps you'll need to wait for Vite 6 for this |
It's there, just referenced by its PR though (released in 5.3.4) |
I can't access
Haven't yet figured out why |
I figured out why. It's because of Possible fixes:
I think ideally we'd do both 1 and 2. |
Hmm, I thought we could identify transformed URLs via the |
Can you explain more about the issue? How is
It should only do that if there's an
Yeah, it's just a random string: https://github.com/JonasKruckenberg/imagetools/blob/074f9f7a2a69e8a480270f44e820587026773bbc/packages/vite/src/utils.ts#L5 |
No, it doesn't. svelte.dev/apps/svelte.dev/vite.config.ts Line 28 in 671baf0
|
We should replace this line: https://github.com/sveltejs/kit/blob/b74d79691bb85a25cb560fb1d15edc632c7ac0b4/packages/enhanced-img/src/index.js#L68 And instead use |
It looks like it's using the standard |
This all works with the new Rollup-powered tutorial. We might run into more issues with imagetools stuff later, but I think we know how to fix it now so I'll merge this and close the associated issue |
This is supposed to fix #64, but it doesn't work yet. For some reason now the
webp
images don't show up anymore. I have no idea what one change has to do with another, just that we can't merge this in its current form. Maybe @Rich-Harris remembers what else was needed for the workaround, and so maybe I didn't revert everything correctly.