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 Oct 21, 2021
1 parent 154b059 commit 26748f2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/gatsby/src/redux/actions/public.js
Original file line number Diff line number Diff line change
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 26748f2

Please sign in to comment.