feat(webui): polish agent output and app discovery
This commit is contained in:
@@ -15,6 +15,24 @@ describe("webuiManualChunk", () => {
|
||||
).toBe("markdown-vendor");
|
||||
});
|
||||
|
||||
it("keeps Streamdown and its repair helper in the markdown chunk", () => {
|
||||
expect(webuiManualChunk("/repo/node_modules/streamdown/dist/index.js")).toBe(
|
||||
"markdown-vendor",
|
||||
);
|
||||
expect(webuiManualChunk("/repo/node_modules/remend/dist/index.js")).toBe(
|
||||
"markdown-vendor",
|
||||
);
|
||||
});
|
||||
|
||||
it("leaves Streamdown's optional renderers as lazy chunks", () => {
|
||||
expect(
|
||||
webuiManualChunk("/repo/node_modules/streamdown/dist/mermaid-ABC.js"),
|
||||
).toBeUndefined();
|
||||
expect(
|
||||
webuiManualChunk("/repo/node_modules/streamdown/dist/highlighted-body-ABC.js"),
|
||||
).toBeUndefined();
|
||||
});
|
||||
|
||||
it("leaves language grammars as independently loaded chunks", () => {
|
||||
expect(webuiManualChunk("/repo/node_modules/refractor/lang/python.js")).toBeUndefined();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user