You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: extractSourceMap falsely matches on sourceMappingURL inside template literal #15950
WARNING in ⚠ Failed to parse source map from '<REDACTED>/bazel-out/linux_amd64_gnu-fastbuild/bin/node_modules/.aspect_rules_js/@angular+platform-browser@226932862_1032586265/node_modules/@angular/platform-browser/fesm2022/${resolvedSourceMapUrl}' file: Rspack FS Error: IO error: failed to open file `<REDACTED>/bazel-out/linux_amd64_gnu-fastbuild/bin/node_modules/.aspect_rules_js/@angular+platform-browser@226932862_1032586265/node_modules/@angular/platform-browser/fesm2022/${resolvedSourceMapUrl}`: No such file or directory (os error 2)
We're running rspack through a complex Bazel pipeline in our internal monorepo that isn't easy to reproduce. However, running rspack with extractSourceMap enabled on the Angular code I linked above should reproduce the issue. If that doesn't work or a better minimum reproducibility case is desired, let me know.
I'd like to work on this. I'll reduce the Angular case to a standalone fixture and add regression coverage that distinguishes template-literal text from actual source-map comments.
Activity
Tiancheng-Xu commentedon Oct 6, 2026
I'd like to work on this. I'll reduce the Angular case to a standalone fixture and add regression coverage that distinguishes template-literal text from actual source-map comments.
chenjiahan commentedon Oct 6, 2026
@Tiancheng-Xu thank you!
Tiancheng-Xu commentedon Oct 6, 2026
I've implemented the source-map comment filtering fix and regression coverage in my fork: https://github.com/Tiancheng-Xu/rspack/tree/fix/source-map-template-literal
The upstream PR is #15969. It's awaiting review and approval for the fork's CI workflows.
jadenPete commentedon Oct 8, 2026
Thank you! I look forward to this being merged.