Optional chaining support for Gatsby’s Babel config

npm i gatsby-plugin-optional-chaining && npm i -D @babel/core @babel/plugin-proposal-optional-chaining

or

yarn add gatsby-plugin-optional-chaining && yarn add -D @babel/core @babel/plugin-proposal-optional-chaining
module.exports = {
  plugins: ['gatsby-plugin-optional-chaining'],
}