Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(client): optimize dependencies more aggressively
Elian Dorane298f5ea6fea
diff --git a/apps/client/vite.config.mts b/apps/client/vite.config.mtsindex 8d3b0c5834..3fcea46f36 100644--- a/apps/client/vite.config.mts+++ b/apps/client/vite.config.mts@@ -1,9 +1,9 @@/// <reference types='vitest' />+import preact from "@preact/preset-vite";import { join, resolve } from 'path';+import webpackStatsPlugin from 'rollup-plugin-webpack-stats';import { defineConfig, type Plugin } from 'vite';import { viteStaticCopy } from 'vite-plugin-static-copy'-import webpackStatsPlugin from 'rollup-plugin-webpack-stats';-import preact from "@preact/preset-vite";const assets = [ "assets", "stylesheets", "fonts", "translations" ];@@ -62,6 +62,22 @@ export default defineConfig(() => ({"preact/hooks"]},+ 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"+ ]+ },build: {target: "esnext",outDir: './dist',