Skip to content

some minification performed even though minify not enabled #371

@kzc

Description

@kzc

It doesn't appear to be possible to output code without at least some degree of minification - is this by design?

$ esbuild --version
0.6.31

Actual:

$ echo 'false, true, a = true && b, a = false || b, typeof !!7, typeof !!!x;' | esbuild
false, true, a = b, a = b, "boolean", typeof !x;

$ echo 'false, true, a = true && b, a = false || b, typeof !!7, typeof !!!x;' | esbuild --minify-whitespace
!1,!0,a=b,a=b,"boolean",typeof!x;

Expected:

$ echo 'false, true, a = true && b, a = false || b, typeof !!7, typeof !!!x;' | npx uglify-js
false,true,a=true&&b,a=false||b,typeof!!7,typeof!!!x;

Encountered when trying to verify non-minified whitespace-removed esbuild output of uglify tests against whitespace-removed input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions