Skip to content

Compile on save vs build #222

Closed
Closed
@abogartz

Description

@abogartz

Perhaps my config is just not set up correctly, but I have my tsconfig file set up as follows.

"version": "1.4.1",
    "compilerOptions": {
        "target": "es5",
        "declaration": false,
        "out": "main.js",
        "noImplicitAny": false,
        "removeComments": false,
        "noLib": false,
        "sourceMap": false
    },

    "files": [
        "./main.ts"

    ]

Main.ts has references in it to other classes, e.g "a.ts" with class A.

If I make a change to a.ts, the "save on compile" command triggers, but the resulting js file doesn't seem to have all of the Typescript code such as the __extends function. However, if I run a "build" from the package, then the resulting js is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions