Bundling Tips
CodeMirror and its language packages are relatively large. Splitting them into their own chunks keeps your main bundle small and lets browsers cache the editor separately.
Vite
Rsbuild
Lazy loading
If the editor is not needed on the first screen, load it asynchronously: