Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map react component names #6

Open
jasonLaster opened this issue Aug 3, 2022 · 3 comments
Open

Map react component names #6

jasonLaster opened this issue Aug 3, 2022 · 3 comments

Comments

@jasonLaster
Copy link
Contributor

It'd be great if the React component names were mapped. We used to do this with the babelrc file, but it looks like tsup does not support it.

Here's what react devtools looks like in dev vs prod
Screen Shot 2022-08-03 at 11 58 31 AM
Screen Shot 2022-08-03 at 11 58 06 AM

@souporserious
Copy link
Contributor

Oops yeah moving those components into a standalone package seems to have borked this, I'll get it fixed back up!

@souporserious
Copy link
Contributor

Bleh, that didn't work. It looks like NextJS still munges these names.

@souporserious souporserious reopened this Aug 4, 2022
@souporserious
Copy link
Contributor

souporserious commented Aug 4, 2022

I tried rolling back to this commit where we were using webpack-react-component-name before moving to yarn workspaces since I thought that might be causing issues, but it looks like no matter what I do it keeps throwing this error when trying to build:
image

I also tried the usual yarn cache clean reinstall, etc, with no luck 😩

@TejasQ TejasQ mentioned this issue Mar 1, 2023
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

No branches or pull requests

2 participants