gatsby-plugin-sentry
gatsby-plugin-sentry copied to clipboard
Replace require.ensure() with import()
The recommended way to split code in Gatsby v2 is by using import()
.
https://www.gatsbyjs.org/docs/how-code-splitting-works/
@octalmage @mickeyreiss can you review this please?
I’ll check it out later today hopefully (or this week).
@mickeyreiss I don't think this is Gatsby internals so much as a recommendation to use the Stage 3 "Dynamic Import" form expressed here (you'll have to find on page): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
up