gatsby-plugin-loadable-components-ssr
Version:
Server-side rendering loadable components in your gatsby application
11 lines (9 loc) • 535 B
JavaScript
;
exports.__esModule = true;
exports.statsPath = exports.statsFilename = void 0;
const statsFilename = 'loadable-stats-build-javascript.json'; // Apparently there's no way to get the build path (public/) as a variable from gatsby.
// The code below is as found in gatsby's source code itself:
// https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/static-entry.js#L21
exports.statsFilename = statsFilename;
const statsPath = `${process.cwd()}/public/${statsFilename}`;
exports.statsPath = statsPath;