4.2.0 • Published 2 months ago

gatsby-plugin-typescript v4.2.0

Weekly downloads
459,996
License
MIT
Repository
github
Last release
2 months ago

gatsby-plugin-typescript

Provides drop-in support for TypeScript and TSX.

Install

yarn add gatsby-plugin-typescript typescript

How to use

  1. Include the plugin in your gatsby-config.js file.
  2. Add tsconfig.json file on your root directory.
  3. Write your components in TSX or TypeScript.
  4. You're good to go.

gatsby-config.js

plugins: [`gatsby-plugin-typescript`];

Or with optional configuration:

plugins: [
  {
    resolve: "gatsby-plugin-typescript",
    options: {
      transpileOnly: true, // default
      compilerOptions: {
        target: `esnext`,
        experimentalDecorators: true,
        jsx: `react`,
      }, // default
    },
  },
];

tsconfig.json

{
  "compilerOptions": {
    "outDir": "./dist/",
    "sourceMap": true,
    "noImplicitAny": true,
    "module": "commonjs",
    "target": "esnext",
    "jsx": "react",
    "lib": ["dom", "es2015", "es2017"]
  },
  "include": ["./src/**/*"]
}
octto@pil0t/gatsby-theme-novela@thirdwave-network/thirdwave-gatsby-theme@lucasbarcelos/gatsby-theme-mercadolibre-store-custom@cangir/gatsby-blog-corewalrus-docsgatsby-theme-cara-improved@studiobear/gatsby-theme-ionic@studiobear/gatsby-theme-blog@kyrelldixon/gatsby-theme-novela@studiobear/gatsby-theme-blog-ionicjamstack-boilerplate@ribeiroevandro/theme-base@i1r0/gatsby-theme-nehalemgatsby-theme-minimal-blog-core@dewen_li/gatsby-theme-bodilessjeffs-websitegatsby-theme-css-modules-demogatsby-theme-memoriestorichecustom-gatsby-theme-novela@matt-shade/lekoartsforkedlekoartsforkedfriday.de@meetup/build-meetup-web-componentssix-foot-six-designs@fujuntao/use-form-websitewalrus-marketingtest-theme-shawacademy@fengshangwuqi/gatsby-config@mlapida/gatsby-theme-minimal-blog@mlapida/gatsby-theme-minimal-blog-core@roman-hotsiy/redocly-dev-portal@redocly/portal@kennethwangdotdev/gatsby-theme-dotdev@whey/gatsby-theme-whey@westegg/theme-jasper@westegg/gatsby-theme-casper@zahradnik-io/gatsby-theme-novela@xops.net/gatsby-openrpc-themea-nice-bloggo-themebeamercola-gatsby-theme-shopify-managerinvbeertoryinstallable-appjesielviana-gatsby-theme-minimal-blogjesielviana-gatsby-theme-minimal-blog-coremikatre-themereact-ui-docresium-sat-trackerpatrickarlt-gatsby-test-theme-1lmnts-gatsby-ts-skeletonantdsiteantd-site-commonblog-themeboff-themeargo-sitefluent-rn-websitegatsbygatsby-affiliate-themegatsby-theme-typescriptgatsby-theme-typescript-storybookgatsby-theme-utopixgatsby-theme-west-egg-coregatsby-theme-west-egg-stylegatsby-theme-whitebrickgatsby-theme-xdmorgangatsby-theme-zhgatsby-theme-tsgatsby-theme-early-birdgatsby-theme-firebasegatsby-theme-firebase-storagegatsby-theme-forked-lamgatsby-theme-grommetgatsby-theme-hansingatsby-theme-hungry-bear-basegatsby-theme-hungry-bear-portfoliogatsby-theme-jamfire-conferencegatsby-theme-keplergatsby-theme-koncretegatsby-theme-gallerygatsby-theme-mdx-tsgatsby-theme-live-docgatsby-theme-loadupgatsby-theme-mategatsby-theme-material-bloggatsby-theme-giornogatsby-awesome-startergatsby-crudzoogatsby-firebasegatsby-gallery-autogatsby-gallery-simplegatsby-material-typescript-startergatsby-presetgatsby-starter-blog-no-stylesgatsby-theme-operettagatsby-theme-nestxgatsby-theme-potatogatsby-theme-projectagatsby-theme-stripe-checkout-buttongatsby-theme-styled-mdxgatsby-theme-suly-porfolio
4.2.0-next.1

2 months ago

4.2.0-next.2

2 months ago

4.2.0

2 months ago

4.1.3

2 months ago

4.1.2

2 months ago

4.1.1

2 months ago

4.3.0-next.0

2 months ago

4.3.0-next.1

2 months ago

4.2.0-next.0

3 months ago

4.1.0

3 months ago

4.1.0-next.1

3 months ago

4.0.0

3 months ago

4.1.0-next.0

3 months ago

4.0.0-zz-next.2

4 months ago

4.0.0-zz-next.3

3 months ago

3.14.0

4 months ago

4.0.0-next.2

4 months ago

4.0.0-zz-next.1

4 months ago

4.0.0-zz-next.0

4 months ago

4.0.0-next.1

4 months ago

4.0.0-next.0

4 months ago

3.14.0-next.4

5 months ago

3.14.0-next.2

5 months ago

3.14.0-next.1

5 months ago

3.13.0

5 months ago

3.14.0-next.0

5 months ago

3.13.0-next.2

5 months ago

3.13.0-next.1

5 months ago

3.12.0

5 months ago

3.13.0-next.0

5 months ago

3.12.0-next.3

6 months ago

3.12.0-next.2

6 months ago

3.12.0-next.1

6 months ago

3.11.0

6 months ago

3.12.0-next.0

6 months ago

3.10.0

6 months ago

3.11.0-next.0

6 months ago

3.10.0-next.1

7 months ago

3.9.0

7 months ago

3.10.0-next.0

7 months ago

3.8.0

7 months ago

3.9.0-next.0

7 months ago

3.8.0-next.0

8 months ago

3.8.0-next.1

8 months ago

3.7.1

8 months ago

3.7.0

8 months ago

3.7.0-next.2

8 months ago

3.7.0-next.1

8 months ago

3.6.0

8 months ago

3.4.0-next.3

9 months ago

3.5.0-next.0

9 months ago

3.7.0-next.0

8 months ago

3.6.0-next.0

9 months ago

3.5.0

8 months ago

3.4.0

9 months ago

3.4.0-next.1

9 months ago

3.3.0

9 months ago

3.4.0-next.0

10 months ago

3.3.0-next.1

10 months ago

3.2.0

10 months ago

3.3.0-next.0

10 months ago

3.1.0

10 months ago

3.2.0-next.0

11 months ago

3.0.0

11 months ago

3.1.0-next.1

11 months ago

3.1.0-next.0

11 months ago

3.0.0-v3rc.0

11 months ago

3.0.0-next.3

11 months ago

2.12.1

11 months ago

3.0.0-next.2

11 months ago

3.0.0-next.1

11 months ago

3.0.0-cpb3.83

11 months ago

3.0.0-next.0

12 months ago

2.12.0

12 months ago

2.12.0-cpb3.26

12 months ago

2.13.0-next.0

12 months ago

2.12.0-next.1

12 months ago

2.11.0

1 year ago

2.12.0-next.0

1 year ago

2.10.0

1 year ago

2.11.0-next.0

1 year ago

2.9.0

1 year ago

2.10.0-next.0

1 year ago

2.8.0

1 year ago

2.9.0-next.0

1 year ago

2.7.0

1 year ago

2.8.0-next.0

1 year ago

2.6.0

1 year ago

2.6.0-next.1

1 year ago

2.7.0-next.0

1 year ago

2.6.0-next.0

1 year ago

2.5.0

1 year ago

2.4.25

1 year ago

2.4.24

1 year ago

2.4.23

1 year ago

2.4.22

1 year ago

2.4.21

1 year ago

2.4.20

1 year ago

2.4.19

1 year ago

2.4.18

1 year ago

2.4.17

1 year ago

2.4.16

2 years ago

2.4.15

2 years ago

2.4.14

2 years ago

2.4.13

2 years ago

2.4.12

2 years ago

2.4.11

2 years ago

2.4.10

2 years ago

2.4.8

2 years ago

2.4.7

2 years ago

2.4.5

2 years ago

2.4.6

2 years ago

2.4.4

2 years ago

2.4.3

2 years ago

2.4.2

2 years ago

2.4.1

2 years ago

2.4.0

2 years ago

2.3.4

2 years ago

2.3.5

2 years ago

2.3.3

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.3.0

2 years ago

2.2.5

2 years ago

2.2.4

2 years ago

2.2.3

2 years ago

2.2.1

2 years ago

2.2.2

2 years ago

2.2.0

2 years ago

2.1.27

2 years ago

2.1.26

2 years ago

2.1.25

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.1.20

2 years ago

2.1.19

2 years ago

2.1.18

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

2.1.15

2 years ago

2.1.14

2 years ago

2.1.13

2 years ago

2.1.12

2 years ago

2.1.11

2 years ago

2.1.9

2 years ago

2.1.8

2 years ago

2.1.7

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.15

3 years ago

2.0.14

3 years ago

2.0.13

3 years ago

2.0.12

3 years ago

2.0.11

3 years ago

2.0.10

3 years ago

2.0.10-alpha.0

3 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

2.0.0-rc.6

3 years ago

2.0.0-rc.5

3 years ago

2.0.0-rc.4

3 years ago

2.0.0-rc.3

3 years ago

2.0.0-rc.2

3 years ago

2.0.0-rc.1

3 years ago

2.0.0-rc.0

3 years ago

2.0.0-beta.10

3 years ago

2.0.0-beta.9

3 years ago

2.0.0-beta.8

3 years ago

2.0.0-beta.7

4 years ago

2.0.0-beta.6

4 years ago

2.0.0-beta.5

4 years ago

2.0.0-beta.4

4 years ago

2.0.0-beta.3

4 years ago

2.0.0-beta.2

4 years ago

2.0.0-beta.1

4 years ago

2.0.0-beta.0

4 years ago

2.0.0-alpha.7

4 years ago

2.0.0-alpha.5

4 years ago

2.0.0-alpha.4

4 years ago

2.0.0-alpha.3

4 years ago

2.0.0-alpha.2

4 years ago

1.4.17-11

4 years ago

1.4.17-9

4 years ago

1.4.17-6

4 years ago

1.4.17-5

4 years ago

1.4.17-4

4 years ago

1.4.20

4 years ago

1.4.19

4 years ago

1.4.17-3

4 years ago

1.4.18

4 years ago

1.4.17-2

4 years ago

1.4.17-1

4 years ago

1.4.17

4 years ago

1.4.17-0

4 years ago

1.4.16

4 years ago

1.4.15

4 years ago

1.4.14

4 years ago

1.4.13

4 years ago

1.4.12

4 years ago

1.4.11

4 years ago

1.4.10

4 years ago

1.4.9

4 years ago

1.4.8

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

2.0.0-alpha.0

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.0-beta.6

5 years ago

1.0.0-beta.3

5 years ago

1.0.0-beta.1

5 years ago

1.0.0-alpha.22

5 years ago

1.0.0-alpha14

5 years ago

1.0.0-alpha13

5 years ago