-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Set jsonpFunction by default #5951
Conversation
Deploy preview for create-react-app ready! Built with commit 8be8452 |
@ianschmitz any update on this. |
@sibiraj-s, I'd love to help you get this through. This seems to introduce a different issue, in two apps built in CRA would still conflict. Could we use the app name instead? It's available within the config as a variable. |
Yeah. I didn't think of that. Will update. |
…into set-jsonpfunction
Thanks, let me know when that's done @sibiraj-s - I think we can land this in 3.1 if you can get it done in the next few days. |
I searched for one. but i couldn't find any. Should I go ahead add one? incase If i missed it. Can u point me. |
Sorry, you're right! Just require in the
Then you can use |
Hi,
jsonpFunction
, is set by default to prevent conflicts within app when multiple webpack runtimes (from different compilation) are used on the same webpage.For example, a widget built with webpack being loaded into a site which is too webpacked.
https://webpack.js.org/configuration/output/#output-jsonpfunction