mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +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