forked from opentiny/tiny-vue
refactor: A constructor name should not start with a lowercase letter but a uppercase. (#251)
Co-authored-by: guoxudong06 <guoxudong06@meituan.com>
This commit is contained in:
parent
bad8c0daa6
commit
b5ee981110
|
@ -2,9 +2,9 @@ import * as monaco from 'monaco-editor'
|
|||
import { hooks } from '@opentiny/vue-common'
|
||||
// monaco ESM模块集成说明 : https://github.com/microsoft/monaco-editor/blob/main/docs/integrate-esm.md#using-vite
|
||||
// https://github.com/vitejs/vite/discussions/1791#discussioncomment-321046
|
||||
import htmlWorker from 'monaco-editor/esm/vs/language/html/html.worker?worker'
|
||||
import HtmlWorker from 'monaco-editor/esm/vs/language/html/html.worker?worker'
|
||||
self.MonacoEnvironment = {
|
||||
getWorker: () => new htmlWorker()
|
||||
getWorker: () => new HtmlWorker()
|
||||
}
|
||||
|
||||
export function useMonaco(selector) {
|
||||
|
|
Loading…
Reference in New Issue