-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Assets entries in the manifest do not preserve the original file extension #8764
Comments
@jessarcher @innocenzi @lubomirblazekcz ping for visibility. I imagine you are ok with this change. PR welcome if someone wants to take over, it would be good to launch v3 with this solved |
To clarify, I believe it's this change is currently preventing Vite Ruby from trying to recover the original extension, making #6649 a breaking change for many Vite Ruby projects. |
Yes, I also had issues with my current manifest generation, I had to change my implementation. Additionally, is it possible to add an |
Definitely okay with the change over here. I will try to find some time to dig into it. I'm hoping the original extension is still available in the chunk at this point so we can just change the hard-coding of |
I have a fix for the extension, currently looking into the |
Added a Map to preserve |
Describe the bug
#6649 added assets to the manifest, but the entries are invalid for Sass/Less/Stylus stylesheets, as it's erasing the original extension from the manifest entry names and
src
.For example, for
style.scss
the entry is:In contrast, Vite does preserve
.ts
extensions:For any backend integration to map files correctly, it's desirable to preserve the extension for assets as well:
Background 📜
This is the behavior that
vite-plugin-ruby
implements, but it no longer works with Vite 3.I believe this change is currently preventing Vite Ruby from trying to recover the original extension, making #6649 a breaking change for many Vite Ruby projects.
If the manifest preserves the extensions, this would greatly simplify all backend integrations, including Vite Ruby.
Reproduction
Run
npm run build
or see the manifest, notice that both the entry name and thesrc
are incorrect.Additionally, this failing test run demonstrates the issue.
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: