Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !11671

Add DISABLE_TSC_PLUGIN advanced configuration flag

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Administrator requested to merge github/fork/LinusU/disable-tsc-plugin into main Nov 20, 2021
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 2

Created by: LinusU

Fixes #5784 (closed)

This patch adds an additional environment flag: DISABLE_TSC_PLUGIN. When set to true it will skip type checking the code using the TypeScript compiler (via fork-ts-checker-webpack-plugin).

It was modeled to follow how DISABLE_ESLINT_PLUGIN work:

  ESLint TSC
Ignore errors ESLINT_NO_DEV_ERRORS TSC_COMPILE_ON_ERROR
Disable plugin DISABLE_ESLINT_PLUGIN DISABLE_TSC_PLUGIN

This is useful because some libraries that (ab?)uses the TypeScript type system can cause significant CPU usage. While I love that those libraries can bring type safety to very dynamic problems, it slows the machine down when developing...

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/LinusU/disable-tsc-plugin