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

Fix binary asset support in keepAssets #2235

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Fix binary asset support in keepAssets #2235

merged 1 commit into from
Jan 23, 2025

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Jan 22, 2025

The changes in #2156 broke formatting of binary kept assets, because rollup's default load hook will corrupt them.

This provides our own load hook again. But it's still OK to put this plugin after another plugin with a custom load hook, in which case we will take over starting at the transform stage instead. In that case, it's up to the other plugin's load hook to produce valid UTF8.

@ef4 ef4 added the bug Something isn't working label Jan 22, 2025
The changes in #2156 broke formatting of binary kept assets, because rollup's default load hook will corrupt them.

This provides our own load hook again. But it's still OK to put this plugin after another plugin with a custom load hook, in which case we will take over starting at the `transform` stage instead. In that case, it's up to the other plugin's load hook to produce valid UTF8.
@ef4 ef4 force-pushed the binary-keep-assets branch from ce177e4 to ce7e688 Compare January 22, 2025 22:05
@ef4 ef4 merged commit a4178fb into main Jan 23, 2025
211 checks passed
@ef4 ef4 deleted the binary-keep-assets branch January 23, 2025 05:44
@github-actions github-actions bot mentioned this pull request Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant