From a238fc16b20f8e89eee0f4a0e439550fe005587d Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 10 Jan 2026 22:26:01 +0200 Subject: [PATCH] chore(client): add more optimize deps --- apps/server/src/routes/assets.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/apps/server/src/routes/assets.ts b/apps/server/src/routes/assets.ts index 983c482c4..72d7ce7e2 100644 --- a/apps/server/src/routes/assets.ts +++ b/apps/server/src/routes/assets.ts @@ -29,7 +29,23 @@ async function register(app: express.Application) { cacheDir: path.join(srcRoot, "../../.cache/vite"), base: `/${assetUrlFragment}/`, root: clientDir, - css: { devSourcemap: true } + css: { devSourcemap: true }, + optimizeDeps: { + include: [ + "ckeditor5-premium-features", + "ckeditor5", + "codemirror", + "mathlive", + "@triliumnext/ckeditor5", + "@triliumnext/ckeditor5-math", + "@triliumnext/ckeditor5-mermaid", + "@triliumnext/ckeditor5-admonition", + "@triliumnext/ckeditor5-footnotes", + "@triliumnext/ckeditor5-keyboard-marker", + "@triliumnext/codemirror", + "@triliumnext/highlightjs" + ] + }, }); app.use(`/${assetUrlFragment}/`, (req, res, next) => { req.url = `/${assetUrlFragment}${req.url}`;