mirror of
https://github.com/espocrm/espocrm.git
synced 2026-03-03 02:37:02 +00:00
bundler mainChunk param
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user