Skip to content

Commit 06760d7

Browse files
LekoArtswardpeet
authored andcommittedOct 21, 2021
chore(gatsby): Change comment format in actions/public (#33592)

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed
 

‎packages/gatsby/src/redux/actions/public.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,14 @@ const normalizePath = require(`../../utils/normalize-path`).default
2828
import { createJobV2FromInternalJob } from "./internal"
2929
import { maybeSendJobToMainProcess } from "../../utils/jobs/worker-messaging"
3030
import { reportOnce } from "../../utils/report-once"
31-
import fs from "fs-extra"
3231

3332
const isNotTestEnv = process.env.NODE_ENV !== `test`
3433
const 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.
4239
const shadowCreatePagePath = _.memoize(
4340
require(`../../internal-plugins/webpack-theme-component-shadowing/create-page`)
4441
)

0 commit comments

Comments
 (0)
Please sign in to comment.