fix(webpack): find asset modules of chunk (#198)

This commit is contained in:
Ahad Birang 2021-06-14 14:07:54 +04:30 committed by GitHub
parent 7c85daa64e
commit 8740ece29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ export default class VueSSRClientPlugin {
// Find all asset modules associated with the same chunk // Find all asset modules associated with the same chunk
assetModules.forEach((m) => { assetModules.forEach((m) => {
if (m.chunks.incudes(cid)) { if (m.chunks.includes(cid)) {
files.push.apply(files, m.assets.map(fileToIndex)) files.push.apply(files, m.assets.map(fileToIndex))
} }
}) })