Skip to content

Don't include React in webpack bundle#5

Open
nfriedly wants to merge 2 commits intolukehansell:masterfrom
nfriedly:patch-1
Open

Don't include React in webpack bundle#5
nfriedly wants to merge 2 commits intolukehansell:masterfrom
nfriedly:patch-1

Conversation

@nfriedly
Copy link

Hey, it looks like this component is including it's own copy of React instead of using the one from whatever code imports it. This causes various issues, such as triggering a development-mode warning.

The change here tells webpack to ignore react & react-dom when creating the bundle and just assume that they will be provided externally.

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

Comments