























@@ -7,7 +7,10 @@ import { fileURLToPath } from "node:url";
7788const DEFAULT_ENTRYPOINTS = ["dist/entry.js", "dist/cli/run-main.js"];
99const DEFAULT_GATEWAY_RUN_CHUNK_MAX_BYTES = 70 * 1024;
10-const GATEWAY_RUN_CHUNK_MARKERS = ["const GATEWAY_RUN_VALUE_KEYS", "function addGatewayRunCommand"];
10+const GATEWAY_RUN_CHUNK_MARKER_SETS = [
11+["const GATEWAY_AUTH_MODES", "function addGatewayRunCommand"],
12+["const GATEWAY_RUN_VALUE_KEYS", "function addGatewayRunCommand"],
13+];
1114const GATEWAY_RUN_FORBIDDEN_STATIC_IMPORTS = [
1215"control-ui-assets",
1316"diagnostic-stability-bundle",
@@ -164,7 +167,11 @@ export function collectGatewayRunChunkBudgetErrors(params = {}) {
164167} catch {
165168continue;
166169}
167-if (GATEWAY_RUN_CHUNK_MARKERS.every((marker) => source.includes(marker))) {
170+if (
171+GATEWAY_RUN_CHUNK_MARKER_SETS.some((markers) =>
172+markers.every((marker) => source.includes(marker)),
173+)
174+) {
168175chunks.push({ filePath, source });
169176}
170177}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。