fix(HMR): Fix stack overflow due to double HMR instances
@@ -78,9 +78,6 @@ module.exports = (env = {}, { mode }) => {
{}
)
- // Enable Hot Module Reloading for development builds
- const devPlugins = isDevelopment ? [new HotModuleReplacementPlugin()] : []
-
// Only generate HTML files for documentation builds, and local development
const docsPlugins =
isDocs || isDevelopment
@@ -128,7 +125,6 @@ module.exports = (env = {}, { mode }) => {
)
}),
new MiniCssExtractPlugin(),
- ...devPlugins,
...docsPlugins,
// After a successful build, delete empty artifacts generated by Webpack for
// non TypeScript/JavaScript files (i.e. for font and CSS files).
