[compiler][entrypoint] Fix edgecases for noEmit and opt-outs (#33148)

Title
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33148).
* #33149
* __->__ #33148

DiffTrain build for [3820740a7f](https://github.com/facebook/react/commit/3820740a7fbfc3b27a5127b43bdad44382ff3ce0)
This commit is contained in:
mofeiZ
2025-05-09 10:44:00 -07:00
parent 66ad834b46
commit b418aef372
35 changed files with 104 additions and 92 deletions
+18 -6
View File
@@ -56083,6 +56083,7 @@ function compileProgram(program, pass) {
filename: pass.filename,
code: pass.code,
suppressions,
hasModuleScopeOptOut: findDirectiveDisablingMemoization(program.node.directives) != null,
});
const queue = findFunctionsToCompile(program, pass, programContext);
const compiledFns = [];
@@ -56113,7 +56114,16 @@ function compileProgram(program, pass) {
});
}
}
if (findDirectiveDisablingMemoization(program.node.directives) != null) {
if (programContext.hasModuleScopeOptOut) {
if (compiledFns.length > 0) {
const error = new CompilerError();
error.pushErrorDetail(new CompilerErrorDetail({
reason: 'Unexpected compiled functions when module scope opt-out is present',
severity: ErrorSeverity.Invariant,
loc: null,
}));
handleError(error, programContext, null);
}
return null;
}
applyCompiledFunctions(program, compiledFns, pass, programContext);
@@ -56197,10 +56207,7 @@ function processFn(fn, fnType, programContext) {
prunedMemoBlocks: compiledFn.prunedMemoBlocks,
prunedMemoValues: compiledFn.prunedMemoValues,
});
if (directives.optIn != null) {
return compiledFn;
}
else if (programContext.opts.compilationMode === 'annotation') {
if (programContext.hasModuleScopeOptOut) {
return null;
}
else if (programContext.opts.noEmit) {
@@ -56211,6 +56218,10 @@ function processFn(fn, fnType, programContext) {
}
return null;
}
else if (programContext.opts.compilationMode === 'annotation' &&
directives.optIn == null) {
return null;
}
else {
return compiledFn;
}
@@ -56664,7 +56675,7 @@ function validateRestrictedImports(path, { validateBlocklistedImports }) {
}
}
class ProgramContext {
constructor({ program, suppressions, opts, filename, code, }) {
constructor({ program, suppressions, opts, filename, code, hasModuleScopeOptOut, }) {
this.alreadyCompiled = new (WeakSet !== null && WeakSet !== void 0 ? WeakSet : Set)();
this.knownReferencedNames = new Set();
this.imports = new Map();
@@ -56676,6 +56687,7 @@ class ProgramContext {
this.code = code;
this.reactRuntimeModule = getReactCompilerRuntimeModule(opts.target);
this.suppressions = suppressions;
this.hasModuleScopeOptOut = hasModuleScopeOptOut;
}
isHookName(name) {
if (this.opts.environment.hookPattern == null) {
+1 -1
View File
@@ -1 +1 @@
5069e18060e00d7c07b2b04ebc8a3fa21e2d810a
3820740a7fbfc3b27a5127b43bdad44382ff3ce0
+1 -1
View File
@@ -1 +1 @@
5069e18060e00d7c07b2b04ebc8a3fa21e2d810a
3820740a7fbfc3b27a5127b43bdad44382ff3ce0
+1 -1
View File
@@ -1537,7 +1537,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1537,7 +1537,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -635,4 +635,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
+1 -1
View File
@@ -635,4 +635,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
@@ -639,7 +639,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -639,7 +639,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19065,10 +19065,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-5069e180-20250509",
version: "19.2.0-www-classic-3820740a-20250509",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5069e180-20250509"
reconcilerVersion: "19.2.0-www-classic-3820740a-20250509"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19102,7 +19102,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+3 -3
View File
@@ -18837,10 +18837,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-5069e180-20250509",
version: "19.2.0-www-modern-3820740a-20250509",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5069e180-20250509"
reconcilerVersion: "19.2.0-www-modern-3820740a-20250509"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18874,7 +18874,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -11393,10 +11393,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1619 = {
bundleType: 0,
version: "19.2.0-www-classic-5069e180-20250509",
version: "19.2.0-www-classic-3820740a-20250509",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5069e180-20250509"
reconcilerVersion: "19.2.0-www-classic-3820740a-20250509"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1620 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11422,4 +11422,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
@@ -11105,10 +11105,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1592 = {
bundleType: 0,
version: "19.2.0-www-modern-5069e180-20250509",
version: "19.2.0-www-modern-3820740a-20250509",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5069e180-20250509"
reconcilerVersion: "19.2.0-www-modern-3820740a-20250509"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1593 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11134,4 +11134,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
@@ -31364,11 +31364,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-classic-5069e180-20250509" !== isomorphicReactPackageVersion)
if ("19.2.0-www-classic-3820740a-20250509" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.2.0-www-classic-5069e180-20250509\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-classic-3820740a-20250509\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -31411,10 +31411,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-5069e180-20250509",
version: "19.2.0-www-classic-3820740a-20250509",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5069e180-20250509"
reconcilerVersion: "19.2.0-www-classic-3820740a-20250509"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32014,7 +32014,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+5 -5
View File
@@ -31150,11 +31150,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-modern-5069e180-20250509" !== isomorphicReactPackageVersion)
if ("19.2.0-www-modern-3820740a-20250509" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.2.0-www-modern-5069e180-20250509\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-modern-3820740a-20250509\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -31197,10 +31197,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-5069e180-20250509",
version: "19.2.0-www-modern-3820740a-20250509",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5069e180-20250509"
reconcilerVersion: "19.2.0-www-modern-3820740a-20250509"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -31800,7 +31800,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19556,14 +19556,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2079 = React.version;
if (
"19.2.0-www-classic-5069e180-20250509" !==
"19.2.0-www-classic-3820740a-20250509" !==
isomorphicReactPackageVersion$jscomp$inline_2079
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2079,
"19.2.0-www-classic-5069e180-20250509"
"19.2.0-www-classic-3820740a-20250509"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19581,10 +19581,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2692 = {
bundleType: 0,
version: "19.2.0-www-classic-5069e180-20250509",
version: "19.2.0-www-classic-3820740a-20250509",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5069e180-20250509"
reconcilerVersion: "19.2.0-www-classic-3820740a-20250509"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2693 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19953,4 +19953,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
@@ -19285,14 +19285,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2069 = React.version;
if (
"19.2.0-www-modern-5069e180-20250509" !==
"19.2.0-www-modern-3820740a-20250509" !==
isomorphicReactPackageVersion$jscomp$inline_2069
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2069,
"19.2.0-www-modern-5069e180-20250509"
"19.2.0-www-modern-3820740a-20250509"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19310,10 +19310,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2674 = {
bundleType: 0,
version: "19.2.0-www-modern-5069e180-20250509",
version: "19.2.0-www-modern-3820740a-20250509",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5069e180-20250509"
reconcilerVersion: "19.2.0-www-modern-3820740a-20250509"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2675 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19682,4 +19682,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
@@ -21534,14 +21534,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2323 = React.version;
if (
"19.2.0-www-classic-5069e180-20250509" !==
"19.2.0-www-classic-3820740a-20250509" !==
isomorphicReactPackageVersion$jscomp$inline_2323
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2323,
"19.2.0-www-classic-5069e180-20250509"
"19.2.0-www-classic-3820740a-20250509"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -21559,10 +21559,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2325 = {
bundleType: 0,
version: "19.2.0-www-classic-5069e180-20250509",
version: "19.2.0-www-classic-3820740a-20250509",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5069e180-20250509"
reconcilerVersion: "19.2.0-www-classic-3820740a-20250509"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2325.getLaneLabelMap = getLaneLabelMap),
@@ -21934,7 +21934,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -21332,14 +21332,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2313 = React.version;
if (
"19.2.0-www-modern-5069e180-20250509" !==
"19.2.0-www-modern-3820740a-20250509" !==
isomorphicReactPackageVersion$jscomp$inline_2313
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2313,
"19.2.0-www-modern-5069e180-20250509"
"19.2.0-www-modern-3820740a-20250509"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -21357,10 +21357,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2315 = {
bundleType: 0,
version: "19.2.0-www-modern-5069e180-20250509",
version: "19.2.0-www-modern-3820740a-20250509",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5069e180-20250509"
reconcilerVersion: "19.2.0-www-modern-3820740a-20250509"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2315.getLaneLabelMap = getLaneLabelMap),
@@ -21732,7 +21732,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -9533,5 +9533,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
})();
@@ -9462,5 +9462,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
})();
@@ -6285,4 +6285,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
@@ -6197,4 +6197,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
@@ -31685,11 +31685,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-classic-5069e180-20250509" !== isomorphicReactPackageVersion)
if ("19.2.0-www-classic-3820740a-20250509" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.2.0-www-classic-5069e180-20250509\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-classic-3820740a-20250509\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -31732,10 +31732,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-5069e180-20250509",
version: "19.2.0-www-classic-3820740a-20250509",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5069e180-20250509"
reconcilerVersion: "19.2.0-www-classic-3820740a-20250509"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32501,5 +32501,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
})();
@@ -31471,11 +31471,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-modern-5069e180-20250509" !== isomorphicReactPackageVersion)
if ("19.2.0-www-modern-3820740a-20250509" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.2.0-www-modern-5069e180-20250509\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-modern-3820740a-20250509\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -31518,10 +31518,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-5069e180-20250509",
version: "19.2.0-www-modern-3820740a-20250509",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5069e180-20250509"
reconcilerVersion: "19.2.0-www-modern-3820740a-20250509"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32287,5 +32287,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
})();
@@ -19872,14 +19872,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2108 = React.version;
if (
"19.2.0-www-classic-5069e180-20250509" !==
"19.2.0-www-classic-3820740a-20250509" !==
isomorphicReactPackageVersion$jscomp$inline_2108
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2108,
"19.2.0-www-classic-5069e180-20250509"
"19.2.0-www-classic-3820740a-20250509"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19897,10 +19897,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2726 = {
bundleType: 0,
version: "19.2.0-www-classic-5069e180-20250509",
version: "19.2.0-www-classic-3820740a-20250509",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5069e180-20250509"
reconcilerVersion: "19.2.0-www-classic-3820740a-20250509"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2727 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20420,4 +20420,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
@@ -19601,14 +19601,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2098 = React.version;
if (
"19.2.0-www-modern-5069e180-20250509" !==
"19.2.0-www-modern-3820740a-20250509" !==
isomorphicReactPackageVersion$jscomp$inline_2098
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2098,
"19.2.0-www-modern-5069e180-20250509"
"19.2.0-www-modern-3820740a-20250509"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19626,10 +19626,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2708 = {
bundleType: 0,
version: "19.2.0-www-modern-5069e180-20250509",
version: "19.2.0-www-modern-3820740a-20250509",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5069e180-20250509"
reconcilerVersion: "19.2.0-www-modern-3820740a-20250509"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2709 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20149,4 +20149,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
@@ -21842,7 +21842,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5069e180-20250509"
reconcilerVersion: "19.2.0-www-classic-3820740a-20250509"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -21623,7 +21623,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5069e180-20250509"
reconcilerVersion: "19.2.0-www-modern-3820740a-20250509"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -14084,7 +14084,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5069e180-20250509"
reconcilerVersion: "19.2.0-www-classic-3820740a-20250509"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13801,7 +13801,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5069e180-20250509"
reconcilerVersion: "19.2.0-www-modern-3820740a-20250509"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -15368,10 +15368,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-5069e180-20250509",
version: "19.2.0-www-classic-3820740a-20250509",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5069e180-20250509"
reconcilerVersion: "19.2.0-www-classic-3820740a-20250509"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15506,5 +15506,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.2.0-www-classic-5069e180-20250509";
exports.version = "19.2.0-www-classic-3820740a-20250509";
})();
@@ -15368,10 +15368,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-5069e180-20250509",
version: "19.2.0-www-modern-3820740a-20250509",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5069e180-20250509"
reconcilerVersion: "19.2.0-www-modern-3820740a-20250509"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15506,5 +15506,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.2.0-www-modern-5069e180-20250509";
exports.version = "19.2.0-www-modern-3820740a-20250509";
})();
+1 -1
View File
@@ -1 +1 @@
19.2.0-www-classic-5069e180-20250509
19.2.0-www-classic-3820740a-20250509
+1 -1
View File
@@ -1 +1 @@
19.2.0-www-modern-5069e180-20250509
19.2.0-www-modern-3820740a-20250509