opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
85 stars 67 forks source link

Make sure React component names can be seen in React DevTools #2988

Open rikukissa opened 2 years ago

rikukissa commented 2 years ago

Currently many of our styled components are only shown as styled.* which makes it difficult for new developers to understand where to find the components they are looking at

image.png

This could be configured as part of Craco https://styled-components.com/docs/tooling

Notice that this tool strengthens the dependency to Webpack, which might not be what we want in the future.

euanmillar commented 2 years ago

@rikukissa should we close since we are going with Vite?

rikukissa commented 2 years ago

I think we also need a Vite plugin to get this to work :/

rikukissa commented 3 weeks ago

Pushing to high priority as this would help new developers a lot.