Skip to content
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

Retain same manifest outputted names with Vite v6 #66

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

jnoordsij
Copy link
Contributor

Fixes #65

By setting originalFileName on emitFile calls, the output I produced with my Laravel MWE (https://github.com/jnoordsij/laravel-laravel/compare/webfont-dl-mwe) is identical with Vite v5 and Vite v6. This is inspired by vitejs/vite#18820, where Vite "internally" does the same thing to mark the asset as "implicit entrypoint".

It seems somewhat odd when comparing to the notes Rollup docs provide on this (see https://rollupjs.org/plugin-development/#this-emitfile), but doesn't seem harmful from what I can see.

@0xb4lint 0xb4lint merged commit 3a9bbaa into feat-agency:master Dec 6, 2024
2 checks passed
@0xb4lint
Copy link
Member

0xb4lint commented Dec 6, 2024

Looks lovely! Thank you!
I'll release it in a minute! 😉

@jnoordsij jnoordsij deleted the fix-asset-filename branch December 6, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Behavioral change with Vite v6
2 participants