File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
packages/gatsby/src/redux/actions Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -28,17 +28,14 @@ const normalizePath = require(`../../utils/normalize-path`).default
2828import { createJobV2FromInternalJob } from "./internal"
2929import { maybeSendJobToMainProcess } from "../../utils/jobs/worker-messaging"
3030import { reportOnce } from "../../utils/report-once"
31- import fs from "fs-extra"
3231
3332const isNotTestEnv = process . env . NODE_ENV !== `test`
3433const isTestEnv = process . env . NODE_ENV === `test`
3534
36- /**
37- * Memoize function used to pick shadowed page components to avoid expensive I/O.
38- * Ideally, we should invalidate memoized values if there are any FS operations
39- * on files that are in shadowing chain, but webpack currently doesn't handle
40- * shadowing changes during develop session, so no invalidation is not a deal breaker.
41- */
35+ // Memoize function used to pick shadowed page components to avoid expensive I/O.
36+ // Ideally, we should invalidate memoized values if there are any FS operations
37+ // on files that are in shadowing chain, but webpack currently doesn't handle
38+ // shadowing changes during develop session, so no invalidation is not a deal breaker.
4239const shadowCreatePagePath = _ . memoize (
4340 require ( `../../internal-plugins/webpack-theme-component-shadowing/create-page` )
4441)
You can’t perform that action at this time.
0 commit comments