Skip to content

[heft-swc] Fix source maps #5220

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

Conversation

dmichon-msft
Copy link
Contributor

Summary

Fixes an issue where the source maps emitted by heft-isolated-typescript-transpile-plugin were not discoverable by tools.

Details

The //# sourceMappingURL=... comment was not conformant to the spec for such comments.
Also fixed parsing of the outDir schema field so that it allows standard relative paths (e.g. "./lib" or "lib" and does not require paths to start with a slash.

How it was tested

Added a build test project and ran it under debugger, verifying that VS Code could discover the breakpoints in the original ExampleTest.test.ts file.

Impacted documentation

None.

@dmichon-msft dmichon-msft enabled auto-merge (squash) May 5, 2025 23:58
@dmichon-msft dmichon-msft merged commit 05b6c7d into microsoft:main May 6, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage May 6, 2025
@dmichon-msft dmichon-msft deleted the user/dmichon/fix-swc-source-maps branch May 6, 2025 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants