mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-23 17:10:07 +00:00
fix: only manually chunk client components
This commit is contained in:
parent
17ed315fa0
commit
85bc7d52c6
@ -151,7 +151,7 @@ export const componentsChunkPlugin = createUnplugin((options: ComponentChunkOpti
|
||||
config.build.rollupOptions = config.build.rollupOptions || {}
|
||||
config.build.rollupOptions.output = config.build.rollupOptions.output || {}
|
||||
const componentManualChunk = (id: string) => {
|
||||
if (components.some(c => c.filePath === parseURL(decodeURIComponent(pathToFileURL(id).href)).pathname)) {
|
||||
if (components.some(c => c.mode !== 'server' && !c.island && c.filePath === parseURL(decodeURIComponent(pathToFileURL(id).href)).pathname)) {
|
||||
return basename(id)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user