fix(build): keep control ui chunking out of deadcode · openclaw/openclaw@dc26069
vincentkoc
·
2026-05-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -159,7 +159,13 @@ const config = {
|
159 | 159 | ], |
160 | 160 | }, |
161 | 161 | ui: { |
162 | | -entry: ["index.html!", "src/main.ts!", "vite.config.ts!", "vitest*.ts!"], |
| 162 | +entry: [ |
| 163 | +"index.html!", |
| 164 | +"src/main.ts!", |
| 165 | +"src/build/chunking.ts!", |
| 166 | +"vite.config.ts!", |
| 167 | +"vitest*.ts!", |
| 168 | +], |
163 | 169 | project: ["src/**/*.{ts,tsx}!"], |
164 | 170 | }, |
165 | 171 | "packages/sdk": { |
|
File renamed without changes.
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { describe, expect, it } from "vitest"; |
2 | | -import { controlUiManualChunk, normalizeModuleId } from "./control-ui-chunking.ts"; |
| 2 | +import { controlUiManualChunk, normalizeModuleId } from "../build/chunking.ts"; |
3 | 3 | |
4 | 4 | describe("Control UI build chunking", () => { |
5 | 5 | it("groups stable runtime dependencies into bounded chunks", () => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import fs from "node:fs";
|
3 | 3 | import path from "node:path"; |
4 | 4 | import { fileURLToPath } from "node:url"; |
5 | 5 | import { defineConfig, type Plugin } from "vite"; |
6 | | -import { controlUiManualChunk } from "./src/ui/control-ui-chunking.ts"; |
| 6 | +import { controlUiManualChunk } from "./src/build/chunking.ts"; |
7 | 7 | |
8 | 8 | const here = path.dirname(fileURLToPath(import.meta.url)); |
9 | 9 | const repoRoot = path.resolve(here, ".."); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。