graysonhicks / gatsby-plugin-loadable-components-ssr

Gatsby plugin for using @loadable/component with Gatsby's SSR
49 stars 26 forks source link

fix: use dummy stats for develop #51

Closed pieh closed 2 years ago

pieh commented 2 years ago

Given that gatsby develop isn't really producing html output (other than blank html so runtime can mount react app) we can fix gatsby develop by just providing mocked / empty stats file (so gatsby-ssr keep working, tho not doing anything). For builds, build-javascript will continue to produce stats file and build-html that happens next can read and use it

Fixes #48