Skip to content

Number literal minification is suboptimal #459

@not-an-aardvark

Description

@not-an-aardvark

Tested in the online repl:

Input:

console.log(11000);
console.log(110000);

Expected output:

console.log(11e3),console.log(11e4);

Actual output:

console.log(11000),console.log(1.1e5);

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhas PRHas an open PR that fixes this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions