From 294b6909e62c753163fdce359afa6ca33a3428af Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Sun, 31 Dec 2023 12:47:26 -0500 Subject: [PATCH] Fix tree shaking of TextField component Was missing a `/*#__PURE__*/` comment on the forwardRef call, causing it to never be tree-shaken. --- packages/react-aria-components/src/TextField.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-aria-components/src/TextField.tsx b/packages/react-aria-components/src/TextField.tsx index e4d0215e849..8b9a3edc677 100644 --- a/packages/react-aria-components/src/TextField.tsx +++ b/packages/react-aria-components/src/TextField.tsx @@ -100,5 +100,5 @@ function TextField(props: TextFieldProps, ref: ForwardedRef) { /** * A text field allows a user to enter a plain text value with a keyboard. */ -const _TextField = (forwardRef as forwardRefType)(TextField); +const _TextField = /*#__PURE__*/ (forwardRef as forwardRefType)(TextField); export {_TextField as TextField};