fix(web)!: retain invalid browser selection (#7903)

fix(web): retain invalid browser selection
This commit is contained in:
morluto authored and GitHub committed 2026-10-29 05:08:02 +08:00
1 parent 2aa0d45e13
commit f6380282fb
3 files changed
+58 -1

No files matched your search

+6 -1
View File
@@ -119,10 +119,15 @@ export class NativeModuleResolver implements WebModuleResolutionPort {
new AnalysisCapabilityUnavailableError(
"native-module-resolver",
OPERATION,
"missing_browser_executable",
executable === undefined
? "missing_browser_executable"
: "invalid_browser_executable",
{
userMessage:
"Provide an absolute REA_BROWSER_EXECUTABLE for a caller-supplied Chromium browser supporting import.meta.resolve. REA installs no browser.",
...(executable === undefined
? {}
: { diagnostics: { executable } }),
},
),
);