Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

How to exclude certain paths from awesome-typescript-loader only? #359

Closed
@rfgamaral

Description

@rfgamaral

I have an "app" and "tests" folders on the root of my project and I need to exclude the "tests" folder from awesome-typescript-loader. There doesn't seem to be an option for that on the loader...

This is my current tsconfig.json file that is currently used by awesome-typescript-loader by default:

{
    "compilerOptions": {
        "sourceMap": true,
        "removeComments": true,
        "noImplicitAny": true,
        "preserveConstEnums": true,
        "emitDecoratorMetadata": true,
        "experimentalDecorators": true,
        "module": "commonjs",
        "target": "es5",
        "jsx": "react"
    }
}

One way to achieve what I want is to add an exclude array to the tsconfig.json above but that's not good because then Sublime Text (and I've also tried with Visual Studio Code) will not recognize anything when I open one of my .ts files inside the "tests" folder.

In other words, I need to exclude the "tests" folder only from awesome-typescript-loader, not globally. AFAIK, awesome-typescript-loader only allows one to override the compilerOptions section of the tsconfig.json file, not the other root properties like files, include or exclude.

What can I do to achieve this?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions