Skip to content

js.putout options are not working #133

@aooen

Description

@aooen

https://github.com/coderaiser/minify?tab=readme-ov-file#options

    "js": {
        "type": "putout",
        "putout": {
            "quote": "'",
            "mangle": true,
            "mangleClassNames": true,
            "removeUnusedVariables": true,
            "removeConsole": false,
            "removeUselessSpread": true
        }
    },

It says set js.putout for config putout options.
However, it's not working now. Rather it's working with:

    "js": {
        "type": "putout",
        "mangle": false,
        "mangleClassNames": false
    },

I think it's mistake that the putout is called with options not options.putout.

return await minify(source, options);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions