-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Describe the bug
In the following code, the two as in the code should have same SyntaxContext like two bs. But the actual behavior is:
declare const a#0: number
var b#2 = 1
export { a#1, b#2 }which breaks emitIsolatedDts.
I think this is introduced by #9734.
Input code
declare const a: number
var b = 1
export { a, b }Config
{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false
},
"experimental": {
"emitIsolatedDts": true
},
"target": "es2022",
},
}Playground link (or link to the minimal reproduction)
SWC Info output
No response
Expected behavior
declare const a: number;
declare var b: number;
export { a, b };Actual behavior
declare var b: number;
export { a, b };Version
1.10.7
Additional context
No response