diff --git a/compiler/packages/react-compiler-healthcheck/src/checks/reactCompiler.ts b/compiler/packages/react-compiler-healthcheck/src/checks/reactCompiler.ts index 1dc210bef8..b122a89a19 100644 --- a/compiler/packages/react-compiler-healthcheck/src/checks/reactCompiler.ts +++ b/compiler/packages/react-compiler-healthcheck/src/checks/reactCompiler.ts @@ -102,7 +102,7 @@ function compile(sourceCode: string, filename: string) { } catch {} } -const JsFileExtensionRE = /(js|ts|jsx|tsx|mjs)$/; +const JsFileExtensionRE = /(js|ts|jsx|tsx)$/; export default { run(source: string, path: string): void { diff --git a/compiler/packages/react-compiler-healthcheck/src/checks/strictMode.ts b/compiler/packages/react-compiler-healthcheck/src/checks/strictMode.ts index 8992eab5f6..49df1dd5e9 100644 --- a/compiler/packages/react-compiler-healthcheck/src/checks/strictMode.ts +++ b/compiler/packages/react-compiler-healthcheck/src/checks/strictMode.ts @@ -7,7 +7,7 @@ import chalk from "chalk"; -const JsFileExtensionRE = /(js|ts|jsx|tsx|mjs)$/; +const JsFileExtensionRE = /(js|ts|jsx|tsx)$/; const StrictModeRE = /\/; let StrictModeUsage = false;