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

[v4] Sourcemaps not enabled in postcss plugin #13694

Open
wesbos opened this issue May 16, 2024 · 2 comments
Open

[v4] Sourcemaps not enabled in postcss plugin #13694

wesbos opened this issue May 16, 2024 · 2 comments
Labels

Comments

@wesbos
Copy link
Contributor

wesbos commented May 16, 2024

The postcss plugin doesn't write soucemaps when doing the lightning CSS conversion.

I think this is where it needs to happen but trying to patch it with pnpm does not give me sourcemaps, so Im wondering if there is a larger issue

@wesbos
Copy link
Contributor Author

wesbos commented May 16, 2024

Looks like you need to explicitly pass the sourcemap from lightning CSS to postcss. Here is a good example: https://github.com/onigoetz/postcss-lightningcss/blob/main/src/index.js#L23-L66

@thecrypticace
Copy link
Contributor

thecrypticace commented May 17, 2024

Sourcemaps are still a WIP. We don't track them at all at the moment in v4 but we have a PR for it. I think PostCSS source map support is going to be rather complicated because we're not utilizing the PostCSS AST and will require further research.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants