1
0
Fork 0

fix(build): handle unplaced chunks

This commit is contained in:
ssube 2019-11-10 18:20:42 -06:00
parent 6d8f716dce
commit 504124ef72
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@ const bundle = {
if (id.includes(`${sep}src${sep}`)) { if (id.includes(`${sep}src${sep}`)) {
return 'main'; return 'main';
} }
if (debug) {
console.log('file belongs to no chunk', id);
}
return 'nochunk';
}, },
output: { output: {
dir: targetPath, dir: targetPath,