-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
transformer: incorrect sourcemap for multiline imports #9055
Comments
It seems it's not only for multiline ones. The sourcemap is incorrect for |
It looks like some mapping for |
Ah, I see. I probably have to call |
- Closes #9055 I think this particular issue of `ImportDeclaration` is not caught on Rolldown because chunk level `import/export` rendering is not done by oxc codegen.
Fixed in #9064. |
The specifier part isn't mapped correctly.
![Image](https://private-user-images.githubusercontent.com/49056869/412299161-f3772c94-c409-4626-ac46-84d726d347fc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTI3MDcsIm5iZiI6MTczOTU1MjQwNywicGF0aCI6Ii80OTA1Njg2OS80MTIyOTkxNjEtZjM3NzJjOTQtYzQwOS00NjI2LWFjNDYtODRkNzI2ZDM0N2ZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE3MDAwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBkYTZkZWQyZTRkOWM0YzA1NDA1MjJhNDlmOTA0Y2ZlOTQ3NDFlZjE5NjA5ZjkzNGViYmE3MjM0NzQ2ZjI5YmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.LCN3ZY9C0zpZS2NrlPCrn_vUEHZI5gPM91Eqqqpjid8)
visualizer
reproduction using transform function exposed from rolldown: https://stackblitz.com/edit/github-xv4yss-hhyuz3j3?file=build.mjs
I used rolldown
2e368ff
which uses OXC 0.49.0.This does not reproduce with rolldown
06372d4
which uses OXC 0.48.2 (visualizer).I found this when upgrading rolldown in rolldown-vite.
The text was updated successfully, but these errors were encountered: