Skip to content

Conversation

@roncohen
Copy link
Contributor

When code gets uglified for production builds, original names of identifiers gets lots and React components show up with their uglified name. To remedy this, displayName can be set explicitly.

For React.createClass style components, displayName gets automatically set by babel.
React components declared using ES6-classes however, have mangled names. This is the case for Provider. With this PR, the name is explicitly set which should make the name survive the uglification process.

@timdorr
Copy link
Member

timdorr commented Sep 28, 2016

Can you make this against the next branch? master isn't likely to get another release and it would be good to have in the upcoming 5.0 release.

@timdorr timdorr closed this Sep 28, 2016
@roncohen roncohen changed the base branch from master to next September 28, 2016 13:43
@roncohen
Copy link
Contributor Author

@timdorr done!

@timdorr timdorr reopened this Sep 28, 2016
@timdorr
Copy link
Member

timdorr commented Sep 28, 2016

Thanks!

@timdorr timdorr merged commit 05ae26e into reduxjs:next Sep 28, 2016
aikoven pushed a commit to aikoven/react-redux that referenced this pull request Nov 21, 2016
neeharv pushed a commit to neeharv/react-redux that referenced this pull request Feb 18, 2017
albertodev7 pushed a commit to albertodev7/react-redux that referenced this pull request Dec 8, 2022
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.

2 participants