diff --git a/packages/gatsby/src/utils/page-data.ts b/packages/gatsby/src/utils/page-data.ts index ebe02bb60e01a..1326108f67468 100644 --- a/packages/gatsby/src/utils/page-data.ts +++ b/packages/gatsby/src/utils/page-data.ts @@ -21,7 +21,7 @@ export function fixedPagePath(pagePath: string): string { return pagePath === `/` ? `index` : pagePath } -export function getFilePath(publicDir: string, pagePath: string): string { +function getFilePath(publicDir: string, pagePath: string): string { return path.join( publicDir, `page-data`, diff --git a/packages/gatsby/src/utils/worker/child.ts b/packages/gatsby/src/utils/worker/child.ts index 5c0f2b7dca425..cbe460d0e5396 100644 --- a/packages/gatsby/src/utils/worker/child.ts +++ b/packages/gatsby/src/utils/worker/child.ts @@ -1,3 +1,2 @@ // Note: this doesn't check for conflicts between module exports -export { getFilePath } from "../page-data" export { renderHTML } from "./render-html"