why resolver ignore NamedExport which has source , keep ctxt as zero #8408
stormslowly
started this conversation in
General
Replies: 2 comments 3 replies
-
why i care about the i use in case 2, the ctxt is undermark root, so inject not happened. |
Beta Was this translation helpful? Give feedback.
2 replies
-
By design
2023년 12월 9일 (토) 오전 8:38, pshu ***@***.***>님이 작성:
… yes, i has wrote a own implementation for injecting. my question is why
1. export {a as b}, b is marked as unresolved
2. export {a as b } from "c" all idents' ctxt are zero .
all these by design or by mistake?
—
Reply to this email directly, view it on GitHub
<#8408 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHELSJ3QGPDXQGQAD2LSB3TYIOQGDAVCNFSM6AAAAABAM5KRWOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQMBUGI3TK>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in case 1, b has been marked under unresolved marks.
but
in case 2 , both a and b's ctxt are all 0
swc/crates/swc_ecma_transforms_base/src/resolver/mod.rs
Lines 1079 to 1085 in 2113bb3
the code shows that, when NamedExport with source, resolver will not mark its ctxt.
anyone know why ?
Beta Was this translation helpful? Give feedback.
All reactions