babel-plugin-react-compiler 0.0.0-experimental-b1267e9-20250517 → 0.0.0-experimental-9e9cd66-20250520
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -93811,7 +93811,7 @@ function visitFunctionExpression(errors, fn) {
|
|
93811
93811
|
severity: "InvalidReact" /* InvalidReact */,
|
93812
93812
|
reason: "Hooks must be called at the top level in the body of a function component or custom hook, and may not be called within function expressions. See the Rules of Hooks (https://react.dev/warnings/invalid-hook-call-warning)",
|
93813
93813
|
loc: callee.loc,
|
93814
|
-
description: `Cannot call ${hookKind} within a function
|
93814
|
+
description: `Cannot call ${hookKind === "Custom" ? "hook" : hookKind} within a function expression`,
|
93815
93815
|
suggestions: null
|
93816
93816
|
})
|
93817
93817
|
);
|
package/package.json
CHANGED