text: exports.onClientEntry = () => {
    // IntersectionObserver polyfill for gatsby-image (Safari, IE)
    if (typeof window.IntersectionObserver === `undefined`) {
      require(`intersection-observer`)
      console.log(`👍 IntersectionObserver is polyfilled`)
    }
  
    const testImg = document.createElement(`img`)
    if (
      typeof testImg.style.objectFit === `undefined` ||
      typeof testImg.style.objectPosition === `undefined`
    ) {
      require(`object-fit-images`)()
      console.log(`👍 Object-fit/Object-position are polyfilled`)
    }
  
    if (!String.prototype.includes) {
      String.prototype.includes = function(search, start) {
        'use strict'
        if (typeof start !== 'number') {
          start = 0
        }
  
        if (start + search.length > this.length) {
          return false
        } else {
          return this.indexOf(search, start) !== -1
        }
      }
    }
  }
  