mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(bridge): handle ssr: false
(#489)
This commit is contained in:
parent
0a8c86c885
commit
3304f75b50
@ -66,8 +66,10 @@ export function setupNitroBridge () {
|
|||||||
// Set up webpack plugin for node async loading
|
// Set up webpack plugin for node async loading
|
||||||
nuxt.hook('webpack:config', (webpackConfigs) => {
|
nuxt.hook('webpack:config', (webpackConfigs) => {
|
||||||
const serverConfig = webpackConfigs.find(config => config.name === 'server')
|
const serverConfig = webpackConfigs.find(config => config.name === 'server')
|
||||||
serverConfig.plugins = serverConfig.plugins || []
|
if (serverConfig) {
|
||||||
serverConfig.plugins.push(new AsyncLoadingPlugin())
|
serverConfig.plugins = serverConfig.plugins || []
|
||||||
|
serverConfig.plugins.push(new AsyncLoadingPlugin())
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Nitro client plugin
|
// Nitro client plugin
|
||||||
|
Loading…
Reference in New Issue
Block a user