mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-10 21:53:34 +08:00
Added cm6 strategy for splitting and dyn. loading langs
Split out legacy modes to their own dynamically imported bundle to reduce main code bundle size.
This commit is contained in:
@ -6,7 +6,6 @@ import {defaultKeymap, history, historyKeymap} from "@codemirror/commands"
|
||||
import {EditorState} from "@codemirror/state"
|
||||
|
||||
import {defaultLight} from "./themes";
|
||||
import {getLanguageExtension} from "./languages";
|
||||
|
||||
export function viewer() {
|
||||
return [
|
||||
@ -44,7 +43,6 @@ export function editor(language) {
|
||||
...defaultKeymap,
|
||||
...historyKeymap,
|
||||
]),
|
||||
getLanguageExtension(language, ''),
|
||||
EditorView.lineWrapping,
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user