ruoyi-plus-soybean/build/plugins/monaco-editor.ts

8 lines
242 B
TypeScript
Raw Normal View History

2024-09-07 18:27:39 +08:00
import monacoEditorPlugin from 'vite-plugin-monaco-editor';
export function setupMonacoEditorPlugin() {
return (monacoEditorPlugin as any).default({
languageWorkers: ['editorWorkerService', 'css', 'html', 'json', 'typescript']
});
}