Skip to content

Property to define entry files for compilation process in tsconfig #4246

Closed
@Lenne231

Description

@Lenne231

Currently we have two ways to define the files include in the compilation process.

  1. Include all files from the root directory except the files and directories defined in the exclude property Support "exclude" property in tsconfig.json #3188
  2. Include all files defined in the files property https://github.com/Microsoft/TypeScript/wiki/tsconfig.json

It would be much simpler if we could just define some entry files (only modules) and all dependent files will be included in the compilation process automatically. Browserify does something like this (https://github.com/substack/node-browserify#browserifyfiles--opts).

This would drastically simplify the configuration and be very helpful for isomorphic/universal JavaScript apps.

Maybe modules or entryFiles would be a good name for the property in the tsconfig.

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