Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-plugin-polyfill-io

A Gatsby plugin to polyfill your site with Polyfill.io.

Installation

With npm:

npm install --save gatsby-plugin-polyfill-io

Or with Yarn:

yarn add gatsby-plugin-polyfill-io

Implementation

// In your gatsby-config.js
plugins: [`gatsby-plugin-polyfill-io`]

Options

To include Polyfill.io options:

plugins: [
   {
      resolve: `gatsby-plugin-polyfill-io`,
      options: {
         features: [`Array.prototype.map`, `fetch`]
      },
   },
]
© 2024 Gatsby, Inc.