chore(client): add more optimize deps

This commit is contained in:
Elian Doran 2026-01-10 22:26:01 +02:00
parent e298f5ea6f
commit a238fc16b2
No known key found for this signature in database

View File

@ -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}`;