bundler mainChunk param

This commit is contained in:
Yuri Kuznetsov
2023-06-15 17:51:12 +03:00
parent 928ee586a0
commit 6686e78069
2 changed files with 3 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ class BundlerGeneral {
* modulePaths?: Record.<string, string>,
* lookupPatterns: string[],
* order: string[],
* mainChunk?: boolean,
* }} config
* @param {{
* src?: string,
@@ -92,7 +93,7 @@ class BundlerGeneral {
notBundledMap[name] = data.notBundledModules;
result[name] = data.contents;
if (i === 0) {
if (i === 0 && this.config.mainChunk) {
return;
}