Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit d199fc3

Browse files
committed
refactor(client): set up manual chunk for CKEditor
1 parent 42ccdd1 commit d199fc3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/client/vite.config.mts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ export default defineConfig(() => ({
8484
output: {
8585
entryFileNames: "src/[name].js",
8686
chunkFileNames: "src/[name].js",
87-
assetFileNames: "src/[name].[ext]"
87+
assetFileNames: "src/[name].[ext]",
88+
manualChunks: {
89+
"ckeditor5": [ "@triliumnext/ckeditor5" ]
90+
},
8891
},
8992
onwarn(warning, rollupWarn) {
9093
if (warning.code === "MODULE_LEVEL_DIRECTIVE") {

0 commit comments

Comments
 (0)