[babel-generator]: jsescOption.numbers does not affect NumericLiterals #10960
Labels
i: bug
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Current Behavior
Currently, when I set:
This option has not affects any numbers that
@babel/generator
is generated.For example i need the following in the output generated code:
Expected behavior/code
This option should affect any numbers that
@babel/generator
is generatedPossible Solution
Looks like here: https://github.com/babel/babel/blob/master/packages/babel-generator/src/generators/types.js#L121
number value should be generated using
jsesc
like inStringLiteral
The text was updated successfully, but these errors were encountered: