Skip to content

Conversation

@hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Oct 8, 2025

Description

It looks like styled-components uses it internally (so [email protected] is still inside lockfile), but it can be removed from dependencies.

$ pnpm why -r react-is
Legend: production dependency, optional only, dev only

playground-emotion /home/hiroshi/code/others/vite-plugin-react/packages/plugin-react-swc/playground/emotion (PRIVATE)

dependencies:
@emotion/react 11.14.0
└─┬ hoist-non-react-statics 3.3.2
  └── react-is 16.13.1
@emotion/styled 11.14.1
└─┬ @emotion/react 11.14.0 peer
  └─┬ hoist-non-react-statics 3.3.2
    └── react-is 16.13.1

playground-emotion-plugin /home/hiroshi/code/others/vite-plugin-react/packages/plugin-react-swc/playground/emotion-plugin (PRIVATE)

dependencies:
@emotion/react 11.14.0
└─┬ hoist-non-react-statics 3.3.2
  └── react-is 16.13.1
@emotion/styled 11.14.1
└─┬ @emotion/react 11.14.0 peer
  └─┬ hoist-non-react-statics 3.3.2
    └── react-is 16.13.1

playground-styled-components /home/hiroshi/code/others/vite-plugin-react/packages/plugin-react-swc/playground/styled-components (PRIVATE)

devDependencies:
@types/styled-components 5.1.34
└─┬ @types/hoist-non-react-statics 3.3.6
  └─┬ hoist-non-react-statics 3.3.2
    └── react-is 16.13.1

@vitejs/test-react-emotion /home/hiroshi/code/others/vite-plugin-react/playground/react-emotion (PRIVATE)

dependencies:
@emotion/react 11.14.0
└─┬ hoist-non-react-statics 3.3.2
  └── react-is 16.13.1
@emotion/styled 11.14.1
└─┬ @emotion/react 11.14.0 peer
  └─┬ hoist-non-react-statics 3.3.2
    └── react-is 16.13.1
react-switch 7.1.0
└─┬ prop-types 15.8.1
  └── react-is 16.13.1

@hi-ogawa hi-ogawa marked this pull request as ready for review October 8, 2025 01:59
@hi-ogawa hi-ogawa merged commit 7a59d5f into main Oct 8, 2025
22 checks passed
@hi-ogawa hi-ogawa deleted the 10-08-chore_deps_remove_unused_react-is_ branch October 8, 2025 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant