From 1fd176c89877568151adc942942c6f6f1a2cba5d Mon Sep 17 00:00:00 2001 From: Sathya Gunsasekaran Date: Wed, 15 May 2024 13:43:59 -0700 Subject: [PATCH] [heathcheck] Check for namespaced StrictMode component --- .../react-compiler-healthcheck/src/checks/strictMode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/packages/react-compiler-healthcheck/src/checks/strictMode.ts b/compiler/packages/react-compiler-healthcheck/src/checks/strictMode.ts index 49df1dd5e99d4..6bd848fdf0a08 100644 --- a/compiler/packages/react-compiler-healthcheck/src/checks/strictMode.ts +++ b/compiler/packages/react-compiler-healthcheck/src/checks/strictMode.ts @@ -8,7 +8,7 @@ import chalk from "chalk"; const JsFileExtensionRE = /(js|ts|jsx|tsx)$/; -const StrictModeRE = /\/; +const StrictModeRE = /<(React\.StrictMode|StrictMode)>/; let StrictModeUsage = false; export default {