Skip to content

Exclude files from watching #303

@deser

Description

@deser

Current behavior

I have a project with mixed js and ts files. All ts files are placed in src/ts. tsconfig is configured respectively:

"baseUrl": "src/ts",
...
"include": [
   "src/ts/**/*.ts",
   "src/ts/**/*.tsx"
], 

When I run webpack in watch mode and change something in NOT src/ts ForkTsCheckerWebpackPlugin seems still runs typechecking and linting.

I've also configure the plugin itself:

reportFiles: ['src/ts/**/*.{ts,tsx}'],
watch: 'src/ts/**/*.{ts,tsx}',

This doesn't help either.

Expected behavior

typechecking and linting in this case shouldn't run in watch mode.

Environment

all packages are latest versions

  • os: windows 10

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