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
{{ message }}
This repository was archived by the owner on Jul 13, 2021. It is now read-only.
When optimization.runtimeChunk is single the client script should be injected in the runtime only.
Actual Behavior
The client script is injected in the runtime then the runtime is injected in the entrypoint. Also HMR doesn't work without allEntries: true; not sure if it's normal.
EDIT: it's normal I just didn't understand I needed it in my case.
Expected Behavior
When
optimization.runtimeChunkissinglethe client script should be injected in the runtime only.Actual Behavior
The client script is injected in the runtime then the runtime is injected in the entrypoint. Also HMR doesn't work without
allEntries: true; not sure if it's normal.EDIT: it's normal I just didn't understand I needed it in my case.
Code
webpack.config.js
https://gist.github.com/MatTheCat/2e11f1ddbdf8bee2663fa2a5d2a227a2
serve.config.js
How Do We Reproduce?
Enable webpack-hot-client with
optimization.runtimeChunk = 'single'.