Skip to content

fix(turbopack): keep the original sourcemap after source transform #5

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

Merged
merged 1 commit into from
May 28, 2025

Conversation

xusd320
Copy link

@xusd320 xusd320 commented May 27, 2025

Why

The original sourcemap be lost after source transform. For example, axyz.sass file processed by sass-loader, return a xyz.sass.css, the output css chunk only contains the sourcemap of xyz.sass.css produced by lightningcss, xyz.sass associated sourcemap been lost.

How

Extend with the original sourcemap, see:
https://github.com/parcel-bundler/lightningcss/blob/f2dc67c4d3fe92f26693c02366db1e60cae0db27/napi/src/lib.rs#L776

PR to Upstream

vercel#79700

@xusd320 xusd320 requested review from elrrrrrrr and fireairforce May 27, 2025 15:31
@xusd320 xusd320 force-pushed the fix/css-sourcemap-after-transform branch from 0ea664f to c5de6fd Compare May 27, 2025 15:32
@xusd320 xusd320 requested a review from killagu May 27, 2025 16:10
@xusd320
Copy link
Author

xusd320 commented May 28, 2025

PR to upstream: vercel#79700

@xusd320 xusd320 force-pushed the fix/css-sourcemap-after-transform branch from c5de6fd to 987f9f5 Compare May 28, 2025 01:58
@xusd320 xusd320 merged commit 673bf79 into utoo-patch-v15.3.2 May 28, 2025
11 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants