From 26748f222610ed644a6c288a74d0cc7834e7a089 Mon Sep 17 00:00:00 2001 From: Lennart Date: Thu, 21 Oct 2021 09:59:24 +0200 Subject: [PATCH] chore(gatsby): Change comment format in actions/public (#33592) --- packages/gatsby/src/redux/actions/public.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/gatsby/src/redux/actions/public.js b/packages/gatsby/src/redux/actions/public.js index 82d71f9e5ca8c..a9907683509ad 100644 --- a/packages/gatsby/src/redux/actions/public.js +++ b/packages/gatsby/src/redux/actions/public.js @@ -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`) )