mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix: mark chunk as existent
This commit is contained in:
parent
c6c4f4efc8
commit
16984b7c7e
@ -145,7 +145,7 @@ export default defineNuxtModule<ComponentsOptions>({
|
|||||||
const sourceFiles = getComponents().filter(c => c.global).map(c => relative(nuxt.options.srcDir, c.filePath))
|
const sourceFiles = getComponents().filter(c => c.global).map(c => relative(nuxt.options.srcDir, c.filePath))
|
||||||
|
|
||||||
for (const chunkId in manifest) {
|
for (const chunkId in manifest) {
|
||||||
const chunk = manifest[chunkId]
|
const chunk = manifest[chunkId]!
|
||||||
if (chunk.isEntry) {
|
if (chunk.isEntry) {
|
||||||
chunk.dynamicImports =
|
chunk.dynamicImports =
|
||||||
chunk.dynamicImports?.filter(i => !sourceFiles.includes(i))
|
chunk.dynamicImports?.filter(i => !sourceFiles.includes(i))
|
||||||
|
Loading…
Reference in New Issue
Block a user