-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Describe the bug
Coming from vercel/next.js#89136
Input code
export namespace Test {
export const a = 1;
}
export namespace Test {
export const b = a + 1;
}Config
{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false
},
"minify": {
"compress": false,
"mangle": false
}
},
"module": {
"type": "es6"
},
"minify": false,
"isModule": true,
"env": {
"targets": "Safari 10"
}
}Link to the code that reproduces this issue
SWC Info output
No response
Expected behavior
Actual behavior
(function(Test) {
Test.a = 1;
})(Test || (Test = {}));
(function(Test) {
Test.b = a + 1; // undeclared variable
})(Test || (Test = {}));
export var Test;
Version
1.15.11
Additional context
No response
Reactions are currently unavailable