Replies: 5 comments
-
Hi, thanks for opening an issue As for your question, I unfortunately have no idea what "making operations of this plugin async in case of HMR" could look like. Would you happen to be able to find any example of a webpack plugin that would allow such behavior? |
Beta Was this translation helpful? Give feedback.
-
I have nave faced anything like this. But may be on initial build it should work as it is now, but on the next incremental re-build this plugin can call |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if that's possible to do without throwing away the "bundle analyzer UI updates automatically after compilation" feature here. |
Beta Was this translation helpful? Give feedback.
-
I would like to investigate it. Can you give me some hints? Is this true that "bundle analyzer UI updates automatically after compilation" feature works on HMR client and is triggered by the Webpack itself but not this plugin? |
Beta Was this translation helpful? Give feedback.
-
@constgen this callback is called on every bundle recompilation. So, for |
Beta Was this translation helpful? Give feedback.
-
Issue description
When BundleAnalyzerPlugin is not used in Webpack config, HMR reloads React components almost immediately. But just adding BundleAnalyzerPlugin to the config adds several extra seconds to the webpage to react on Hot Module Replacement. Can we some how make operations of this plugin async in case of HMR?
Beta Was this translation helpful? Give feedback.
All reactions