Optimize: editor - switch to local monaco editor loader

This commit is contained in:
2024-03-14 16:59:27 +08:00
parent 0b314e4ea9
commit 715806b85d

View File

@@ -1,7 +1,6 @@
import { loader } from '@monaco-editor/react'
import * as monaco from 'monaco-editor'
loader.config({
paths: {
vs: 'https://unpkg.com/monaco-editor@0.45.0/min/vs'
}
monaco
})