@samitouri / QOS-React / commits / 9ef7557730

[healthcheck] Don't compile mjs

ghstack-source-id: 087985cd23baeefc0e2fb9478cd9a162b4e2e023 Pull Request resolved: https://github.com/facebook/react-forget/pull/2959

Lauren Tan committed May 11, 2024 at 00:20 UTC 9ef755773028ed03bf28e27ed3ae057ff86c9ea3
2 files changed +2 -2
compiler/packages/react-compiler-healthcheck/src/checks/reactCompiler.ts
+1 -1
@@ -102,7 +102,7 @@ function compile(sourceCode: string, filename: string) {
102 } catch {}
103 }
104
105 -const JsFileExtensionRE = /(js|ts|jsx|tsx|mjs)$/;
105 +const JsFileExtensionRE = /(js|ts|jsx|tsx)$/;
106
107 export default {
108 run(source: string, path: string): void {
compiler/packages/react-compiler-healthcheck/src/checks/strictMode.ts
+1 -1
@@ -7,7 +7,7 @@
7
8 import chalk from "chalk";
9
10 -const JsFileExtensionRE = /(js|ts|jsx|tsx|mjs)$/;
10 +const JsFileExtensionRE = /(js|ts|jsx|tsx)$/;
11 const StrictModeRE = /\<StrictMode\>/;
12 let StrictModeUsage = false;
13