mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(app): temporary webpack5 'hotfix' (#290)
https://github.com/webpack-contrib/webpack-hot-middleware/issues/390
This commit is contained in:
parent
6cd5f8816f
commit
8faf069778
@ -24,6 +24,12 @@ if (process.server) {
|
||||
}
|
||||
|
||||
if (process.client) {
|
||||
// TODO: temporary webpack 5 HMR fix
|
||||
// https://github.com/webpack-contrib/webpack-hot-middleware/issues/390
|
||||
if (process.dev && module.hot) {
|
||||
module.hot.accept()
|
||||
}
|
||||
|
||||
entry = async function initApp () {
|
||||
const app = createSSRApp(App)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user