-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Expose "external" property from webpack config #2771
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
Comments
I'm going to close this as I feel it's a dupe of #2758. |
If React is already loaded on the page, you should be able to do something like: const React = window.React Just never import React yourself. |
How about peer dependencies? |
Yeah, right now there's no work around for that. |
Uh oh!
There was an error while loading. Please reload this page.
I would like to use this property to remove some dependencies from create-react-app. In my case I already have a page with React and ReactDOM, but I don't have control over them, it's not my project. I will just do some components, to contribuite with this page, so when I generate the build file I don't want React or ReactDOM, only the code for the components. There is another way for to do this ?
The text was updated successfully, but these errors were encountered: