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

feat(bindings/swc_cli): Append the sourceMappingURL= source map file … #6873

Merged
merged 1 commit into from
Jan 29, 2023

Conversation

realtimetodie
Copy link
Contributor

Appends a sourceMappingURL comment to the end of the output, containing an URL to the generated source map file.

Example

$ swc compile input.js --out-file=output.js --source-maps=true

Output

output.js
output.js.map

Show the last line of the generated output.js file

$ tail -n=1 output.js
//# sourceMappingURL=output.js.map

Summary

Related

@realtimetodie
Copy link
Contributor Author

@kdy1

Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!


swc-bump:

  • dbg-swc

@kdy1 kdy1 added this to the Planned milestone Jan 29, 2023
@kdy1 kdy1 enabled auto-merge (squash) January 29, 2023 13:28
@kdy1 kdy1 merged commit c4db8e4 into swc-project:main Jan 29, 2023
@kdy1
Copy link
Member

kdy1 commented Jan 29, 2023

I published a new version of swc_cli

@realtimetodie
Copy link
Contributor Author

Thank you. For Bazel rules_swc, we need an additional binary release. Bazel uses the attachments from the GitHub release API https://github.com/swc-project/swc/releases/.

https://github.com/aspect-build/rules_swc/blob/main/swc/private/versions.bzl

@realtimetodie realtimetodie changed the title feat(bindings/swc_cli): Append the sourceMappingURL= soruce map file … feat(bindings/swc_cli): Append the sourceMappingURL= source map file … Jan 29, 2023
@kdy1 kdy1 modified the milestones: Planned, v1.3.31 Jan 30, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants