babel / minify

:scissors: An ES6+ aware minifier based on the Babel toolchain (beta)
https://babeljs.io/repl
MIT License
4.39k stars 225 forks source link

support StaticBlock #1049

Open linsk1998 opened 8 months ago

linsk1998 commented 8 months ago
class Foo{
    static {

    }
}
{
    "type": "StaticBlock",
    "start": 12,
    "end": 33,
    "loc": {
        "start": {
            "line": 2,
            "column": 1,
            "index": 12
        },
        "end": {
            "line": 4,
            "column": 5,
            "index": 33
        }
    },
    "body": []
}

fnParent.node.body.body get undefined