Skip to content

Remove unused hsluv and react-intersection-observer dependencies #8723

Open

Description

@mattcosta7

Part of #8676 (P2).

Problem

packages/react/package.json lists two dependencies that production code doesn't use:

  • hsluv: nothing in the repo imports it.
  • react-intersection-observer: only PageLayout/PageLayout.test.tsx and SplitPageLayout/SplitPageLayout.test.tsx import it.

Both add to consumers' install size. They don't affect bundle size.

history looks removable because only type imports use it. Keep it: its types appear in public props, such as to?: To in Breadcrumbs.tsx:363.

Proposed fix

  • Remove hsluv from dependencies.
  • Move react-intersection-observer to devDependencies.
  • Update package-lock.json.

Acceptance criteria

  • npm run build, npm test and npm run type-check pass.
  • A changeset explains the dependency change.

Activity

  1. Archanachaurasiya30 commented on Nov 13, 2026

    @Archanachaurasiya30

    Hi! I'd like to work on this issue. I can update the dependencies, regenerate the package lockfile, and add the required changeset. Is this issue available for contribution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions