adobe / adobe/react-spectrum

Keep original component name when building to JS

Open
#5,154 4 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

### Provide a general summary of the feature here

It'd be helpful if the name of components shown in React DevTools include the original component name. It'd make it easier for developer to debug their application.

https://syueo.csb.app/

スクリーンショット 2023-09-28 9 40 15

### 🤔 Expected Behavior?

`@react-spectrum` and `@react-aria`'s components shown in React DevTools has meaningful name.

### 😯 Current Behavior

`@react-spectrum` and `@react-aria`'s components shown in React DevTools has auto-generated name. It's quite difficult to tell what component it is from the name alone.

### 💁 Possible Solution

_No response_

### 🔦 Context

I was trying to debug a component created using `@react-aria`'s hooks and components, but the name makes it hard for me to distinguish them from each others.

### 💻 Examples

_No response_

### 🧢 Your Company/Team

_No response_

### 🕷 Tracking Issue

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.