You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I'm going to close this as I feel it's a dupe of #2758.
Short answer, no -- you cannot do this. We're also not exposing external anytime soon; but we want to figure out an "external" method.
Yeah, right now there's no work around for that.
You can create a fake react dependency if you'd like (where all it does is module.exports = window.React;).
Then update package.json to reference a file:../react-stub or something.
lockbot
locked and limited conversation to collaborators
Jan 21, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: