Skip to content

fix(module-runner): handle non-ascii characters in base64 sourcemaps - #21985

Merged
sapphi-red merged 10 commits into
vitejs:mainfrom
WhiteKiwi:fix/utf8-decoding-issue
Mar 25, 2026
Merged

sapphi-red merged 10 commits into
vitejs:mainfrom
WhiteKiwi:fix/utf8-decoding-issue

Conversation

@WhiteKiwi

Copy link
Copy Markdown
Contributor

Fix UTF-8 decoding issue caused by using atob for base64 decoding.
Use Buffer.from(..., 'base64').toString('utf-8') when available to ensure correct decoding.

Closes #21984

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat: ssr p2-edge-case Bug, but has workaround or limited in scope (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect UTF-8 decoding when using atob in Node.js

7 participants