gatsby-plugin-ts-checker

1.1.0 • Public • Published

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',
    }
  ]
}

Package Sidebar

Install

npm i gatsby-plugin-ts-checker

Weekly Downloads

40

Version

1.1.0

License

MIT

Unpacked Size

2.04 kB

Total Files

4

Last publish

Collaborators

  • kevcenteno