typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Omit numeric separators when targeting es2020

Open DanielRosenwasser opened this issue 2 weeks ago • 0 comments

Currently, regardless of target it appears that

let x = 1_2_3 + 123;

will be emitted as-is.

Numeric separators were introduced in ES2021, so we will need to modify either our es2021 transformer or the printer to respect --target es2020.

DanielRosenwasser avatar Dec 12 '25 00:12 DanielRosenwasser