Open
Description
Describe the bug
Blocks that are not followed by a semicolon do not have a newline added to them.
Input code
{ const asd = foo; }
{ 123; 1; }
Config
{
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": false
},
"target": "es5",
"loose": false,
"minify": {
"compress": false,
"mangle": false
}
},
"module": {
"type": "es6"
},
"minify": false,
"isModule": true
}
Playground link (or link to the minimal reproduction)
SWC Info output
No response
Expected behavior
{
var asd = foo;
}
{
123;
1;
}
Note the newline after the first and second block.
Actual behavior
{
var asd = foo;
}{
123;
1;
}
Note there is no newline after the first and second block.
Version
1.3.94-nightly-20231016.1
Additional context
No response