Skip to content

support for useDefineForClassFields #785

Open
@tmm1

Description

@tmm1

hoping for some pointers on how to start about fixing this:

❯ cat test.ts
class Point {
    x: number = 2;
    y: number;
}

❯ tsgo tsc -t es2020 /tmp/test.ts && cat /tmp/test.js
Files:               52
Types:               17794
class Point {
    x = 2;
    y;
}

❯ npx --package typescript tsc -t es2020 /tmp/test.ts && cat /tmp/test.js
class Point {
    constructor() {
        this.x = 2;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: EmitRelated to emit, AST printing, Program emit funcs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions