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: add a new source_root attribute #177

Merged
merged 2 commits into from
Mar 2, 2023

Conversation

realtimetodie
Copy link
Contributor

Allows the user to specify a custom location where a debugger should locate source files.

This imitates the TSConfig sourceRoot configuration option

https://www.typescriptlang.org/tsconfig#sourceRoot

Example

swc(
    name = "compile",
    source_maps = True,
    source_root = "https://my-website.com/debug/source/",
)

The source_root attribute is optional.

Related

@realtimetodie
Copy link
Contributor Author

realtimetodie commented Mar 2, 2023

The documentation was partially updated. The wording follows the TypeScript cli guide

https://www.typescriptlang.org/docs/handbook/compiler-options.html

@thesayyn thesayyn merged commit d893b1e into aspect-build:main Mar 2, 2023
@thesayyn
Copy link
Member

thesayyn commented Mar 2, 2023

Thanks, @realtimetodie. @jbedard is working on fixing this which will include your changes.

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.

4 participants