-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix(es/codegen): Set sourceRoot
of sourcemaps
#6086
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swc-bump:
- swc_common
Pull request was converted to draft
Pull request was converted to draft
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated review comment generated by auto-rebase script
"sourceRoot": "$DIR/tests/fixture/deno/deno-10014/case1/input", | ||
"sources": [ | ||
"../../input/index.ts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks invalid. To resolve a source file, you take the concatenation of the sourceRoot
(treating it always as a directory) and the individual source[i]
. In this case, we'd get the result "$DIR/tests/fixture/deno/deno-10014/case1/input" + "/" + "../../input/index.ts"
which resolves to "$DIR/tests/fixture/deno/deno-10014/input/index.ts"
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swc-bump:
- swc_compiler_base --breaking
sourceRoot
of sourcemapssourceRoot
of sourcemaps
Description:
Related issue: