Skip to content

Slow Performance on Incremental Runs (Project References) #463

@nathanforce

Description

@nathanforce

Current behavior

Incremental typechecks are very slow.

We have a project that leverages Project References in Typescript. As the latest release of your plugin supports references we tried to upgrade. We are seeing an unusable drop in performance when type-checking this code.

image

For comparison, here is the same code change ran with tsc --build --incremental

image

Here is our config:

      new ForkTsCheckerWebpackPlugin({
        async: true,
        typescript: {
          mode: 'write-references',
          configFile: path.resolve(APP_ROOT, 'tsconfig.json'),
          configOverwrite: {
            compilerOptions: {
              incremental: true
            }
          },
          profile: true,
          build: true
        }
      }),

Expected behavior

Incremental typechecks should be quick.

Environment

  • fork-ts-checker-webpack-plugin: 5.0.0
  • typescript: 3.7.2
  • eslint: n/a
  • webpack: 4.39.3
  • os: macos

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions