datocms / gatsby-source-datocms

Official GatsbyJS source plugin to pull content from DatoCMS
MIT License
140 stars 51 forks source link

Object.entries and Object.assign are not compatible on IE11 #17

Closed dbismut closed 6 years ago

dbismut commented 6 years ago

Hi - I was testing a site on IE11 and got the following error popup:

ie11

Looks like Object.entries and Object.assign are not available on IE11, and you're using these methods on these lines:

https://github.com/datocms/gatsby-source-datocms/blob/8e14eb8920d95383cecb333a9ffd53c482f3a263/src/index.js#L13 https://github.com/datocms/gatsby-source-datocms/blob/8e14eb8920d95383cecb333a9ffd53c482f3a263/src/index.js#L15

I'm far from a pro, but I think you should consider including Object assign and Object entries polyfills for babel, or even the more generic polyfill into your .babelrc json file.

stefanoverna commented 6 years ago

Thanks for reporting, fixed in gatsby-source-datocms@1.1.6