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
[docs] Document config.clientBootstrap #3449
Comments
@arunoda made an example internally, he can commit it to the repository 👍 |
I'm trying to run a polyfill for intersection-observer using the clientBootstrap:
Unfortunately my react code is starting before the polyfill loads. What am I missing here? |
We might remove It's the same as |
@designspin your issue is because of the promise usage. |
The recently added config option for adding a custom bootstrap file to the main bundle is mentioned only in comments here and there so far, so thought to turn this into an actual task for clarity.
References:
Expected Behavior
I'd expect to
config.clientBootstrap
documented in main READMEAs a side note, it seems that there are no tests exercising this config option, but perhaps that can be seen as a different task than these docs.
Notes
Something to be aware of with this config (and the docs): sadly this option does not help with everything. I tried to add EventSource polyfill for webpack-hot-middleware to make the dev mode work in IE11, but this custom bootstrap is injected too late and thus it does not help with this kind of polyfilling.
The text was updated successfully, but these errors were encountered: