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

optimizeImports() seemingly creates invalid source maps #18

Closed
troncoso opened this issue Oct 13, 2021 · 1 comment · Fixed by #54
Closed

optimizeImports() seemingly creates invalid source maps #18

troncoso opened this issue Oct 13, 2021 · 1 comment · Fixed by #54
Labels
bug Something isn't working

Comments

@troncoso
Copy link

I originally posted this on stack overflow thinking I was doing something wrong: https://stackoverflow.com/questions/69548571/svelte-carbon-component-import-breaks-debugging

Bug according to the first answer, it looks like the optimizeImports() plugin is producing bad source maps. I've created a repo that reproduces the issue here:

https://github.com/troncoso/carbon-svelte-bug

As the README says, if you remove the call to optimizeImports(), then breakpoints work correctly. The stack overflow answer has in depth information on what is believed to be wrong

@metonym metonym added the bug Something isn't working label Oct 13, 2021
@metonym
Copy link
Collaborator

metonym commented Mar 25, 2024

Released in v0.11.0, I rewrote the preprocessor from scratch. It now includes high-res source maps (via magic-string).

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 a pull request may close this issue.

2 participants