ANNOUNCEMENT

Gatsby is joining Netlify: Read the announcement post

ContactSign Up for Free
Community Plugin
View plugin on GitHub

Version Downloads Total

gatsby-optional-chaining

Provide the optional-chaining babel plugin in gatsby, just install and put in gatsby-config.

Install

$ npm i gatsby-optional-chaining

or

$ yarn add gatsby-optional-chaining

How to use

Add the plugin to your gatsby-config.js.

module.exports = {
  plugins: [
    `gatsby-optional-chaining`,
  ]
}
© 2023 Gatsby, Inc.