Skip to content

Commit

Permalink
chore(gatsby): Change comment format in actions/public (#33592)
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts authored and wardpeet committed Oct 21, 2021
1 parent 7d66a23 commit 06760d7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/gatsby/src/redux/actions/public.js
Expand Up @@ -28,17 +28,14 @@ const normalizePath = require(`../../utils/normalize-path`).default
import { createJobV2FromInternalJob } from "./internal"
import { maybeSendJobToMainProcess } from "../../utils/jobs/worker-messaging"
import { reportOnce } from "../../utils/report-once"
import fs from "fs-extra"

const isNotTestEnv = process.env.NODE_ENV !== `test`
const isTestEnv = process.env.NODE_ENV === `test`

/**
* Memoize function used to pick shadowed page components to avoid expensive I/O.
* Ideally, we should invalidate memoized values if there are any FS operations
* on files that are in shadowing chain, but webpack currently doesn't handle
* shadowing changes during develop session, so no invalidation is not a deal breaker.
*/
// Memoize function used to pick shadowed page components to avoid expensive I/O.
// Ideally, we should invalidate memoized values if there are any FS operations
// on files that are in shadowing chain, but webpack currently doesn't handle
// shadowing changes during develop session, so no invalidation is not a deal breaker.
const shadowCreatePagePath = _.memoize(
require(`../../internal-plugins/webpack-theme-component-shadowing/create-page`)
)
Expand Down

0 comments on commit 06760d7

Please sign in to comment.