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

SourceMap: utf16-based location mapping #4

Open
hyf0 opened this issue Oct 10, 2023 · 0 comments
Open

SourceMap: utf16-based location mapping #4

hyf0 opened this issue Oct 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hyf0
Copy link
Member

hyf0 commented Oct 10, 2023

This issue will cause emitting wrong source map if the source contains any utf16 char.


https://github.com/rolldown-rs/string_wizard/blob/d9cb1e80b1590241bf9b34183ae396c545a70843/src/source_map/mappings.rs#L77

chunk.start() is calculated based on utf8, due to the encoding of rust String.

@hyf0 hyf0 added the bug Something isn't working label Oct 10, 2023
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

No branches or pull requests

1 participant