Skip to content

Unreferenced files are not compiled #188

Open
@revbingo

Description

@revbingo

I'm using ts-lambda-api as a framework for my application, which allows me to declare controllers using decorators that are discovered at runtime, rather than statically declared.

It seems like the typescript plugin only compiles files that can be resolved at compile time from the function entry points, which means the controllers are not compiled.

My workaround at the moment is to have dummy imports in my main class to import those controller classes so they can be found. Is there a better way to control this behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions