1.1.0 • Published 4 years ago

gatsby-plugin-ts-checker v1.1.0

Weekly downloads
102
License
MIT
Repository
github
Last release
4 years ago

gatsby-plugin-ts-checker

Add typescript type checking to Gatsby.

Install

Use npm, yarn, or whatever node package manager is hot right now.

// gatsby-config.js
module.exports = {
  plugins: [
    'gatsby-plugin-typescript',
    'gatsby-plugin-ts-checker',
  ]
}

Options

Since this is just a wrapper for Fork TS Checker Webpack Plugin, you can pass their options like so:

// gatsby-config.js
module.exports = {
  plugins: [
    'gatsby-plugin-typescript',
    {
      options: {
        typescript: {
          memoryLimit: 4096,
          mode: 'write-tsbuildinfo',
        },
      },
      resolve: 'gatsby-plugin-ts-checker',
    }
  ]
}