diff --git a/.changeset/react-compiler-low-risk-batch-1.md b/.changeset/react-compiler-low-risk-batch-1.md new file mode 100644 index 00000000000..958988a28d4 --- /dev/null +++ b/.changeset/react-compiler-low-risk-batch-1.md @@ -0,0 +1,5 @@ +--- +'@primer/react': minor +--- + +CounterLabel, Truncate: Improve rendering performance with React Compiler support. diff --git a/packages/react/script/react-compiler.mjs b/packages/react/script/react-compiler.mjs index 4aeef8d1cff..334ed4bb249 100644 --- a/packages/react/script/react-compiler.mjs +++ b/packages/react/script/react-compiler.mjs @@ -13,7 +13,6 @@ const files = glob }) const unsupportedPatterns = [ 'src/ActionBar/ActionBar.tsx', - 'src/ActionList/ActionList.examples.stories.tsx', 'src/ActionMenu/ActionMenu.test.tsx', 'src/ActionMenu/ActionMenu.tsx', 'src/AnchoredOverlay/AnchoredOverlay.tsx', @@ -21,13 +20,10 @@ const unsupportedPatterns = [ 'src/Autocomplete/AutocompleteInput.tsx', 'src/Button/ButtonBase.tsx', 'src/Checkbox/Checkbox.tsx', - 'src/CounterLabel/CounterLabel.tsx', 'src/Dialog/Dialog.tsx', 'src/FilteredActionList/FilteredActionList.tsx', 'src/FilteredActionList/useAnnouncements.tsx', 'src/LabelGroup/LabelGroup.tsx', - 'src/NavList/NavList.features.stories.tsx', - 'src/NavList/NavList.test.tsx', 'src/Overlay/Overlay.figma.tsx', 'src/Overlay/Overlay.tsx', 'src/SelectPanel/SelectPanel.examples.stories.tsx', @@ -40,7 +36,6 @@ const unsupportedPatterns = [ 'src/TooltipV2/Tooltip.tsx', 'src/TreeView/TreeView.features.stories.tsx', 'src/TreeView/TreeView.tsx', - 'src/Truncate/Truncate.tsx', 'src/deprecated/utils/create-slots.tsx', 'src/experimental/SelectPanel2/SelectPanel.tsx', 'src/experimental/UnderlinePanels/UnderlinePanels.test.tsx', @@ -53,10 +48,8 @@ const unsupportedPatterns = [ 'src/hooks/useOnOutsideClick.tsx', 'src/hooks/useResizeObserver.ts', 'src/hooks/useSafeTimeout.ts', - 'src/internal/components/Caret.tsx', 'src/internal/hooks/__tests__/useFocus.test.tsx', 'src/internal/hooks/useDevOnlyEffect.ts', - 'src/stories/deprecated/ActionList.stories.tsx', 'src/utils/StressTest.tsx', 'src/utils/react-compiler-runtime.ts', 'src/utils/use-force-update.ts',