bundler mainChunk param
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
],
|
],
|
||||||
"basePath": "client",
|
"basePath": "client",
|
||||||
"transpiledPath": "client/lib/transpiled",
|
"transpiledPath": "client/lib/transpiled",
|
||||||
|
"mainChunk": true,
|
||||||
"chunks": {
|
"chunks": {
|
||||||
"main": {
|
"main": {
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ class BundlerGeneral {
|
|||||||
* modulePaths?: Record.<string, string>,
|
* modulePaths?: Record.<string, string>,
|
||||||
* lookupPatterns: string[],
|
* lookupPatterns: string[],
|
||||||
* order: string[],
|
* order: string[],
|
||||||
|
* mainChunk?: boolean,
|
||||||
* }} config
|
* }} config
|
||||||
* @param {{
|
* @param {{
|
||||||
* src?: string,
|
* src?: string,
|
||||||
@@ -92,7 +93,7 @@ class BundlerGeneral {
|
|||||||
notBundledMap[name] = data.notBundledModules;
|
notBundledMap[name] = data.notBundledModules;
|
||||||
result[name] = data.contents;
|
result[name] = data.contents;
|
||||||
|
|
||||||
if (i === 0) {
|
if (i === 0 && this.config.mainChunk) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user