-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enable experimental flags in healthcheck
- Loading branch information
1 parent
f46da85
commit fb546f2
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
...compiler-healthcheck+0.0.0-experimental-b130d5f-20240625+002+enable-ref-identifiers.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/node_modules/react-compiler-healthcheck/dist/index.js b/node_modules/react-compiler-healthcheck/dist/index.js | ||
index 4bf23db..fa2ab22 100755 | ||
--- a/node_modules/react-compiler-healthcheck/dist/index.js | ||
+++ b/node_modules/react-compiler-healthcheck/dist/index.js | ||
@@ -69088,6 +69088,9 @@ const COMPILER_OPTIONS = { | ||
compilationMode: "infer", | ||
panicThreshold: "critical_errors", | ||
logger: logger, | ||
+ environment: { | ||
+ enableTreatRefLikeIdentifiersAsRefs: true, | ||
+ }, | ||
}; | ||
function isActionableDiagnostic(detail) { | ||
switch (detail.severity) { | ||
diff --git a/node_modules/react-compiler-healthcheck/src/checks/reactCompiler.ts b/node_modules/react-compiler-healthcheck/src/checks/reactCompiler.ts | ||
index 09c9b9b..d2418e0 100644 | ||
--- a/node_modules/react-compiler-healthcheck/src/checks/reactCompiler.ts | ||
+++ b/node_modules/react-compiler-healthcheck/src/checks/reactCompiler.ts | ||
@@ -51,6 +51,9 @@ const COMPILER_OPTIONS: Partial<PluginOptions> = { | ||
compilationMode: "infer", | ||
panicThreshold: "critical_errors", | ||
logger, | ||
+ environment: { | ||
+ enableTreatRefLikeIdentifiersAsRefs: true, | ||
+ }, | ||
}; | ||
|
||
function isActionableDiagnostic(detail: CompilerErrorDetailOptions) { |