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:
peter G 2023-05-21 09:40:11 +08:00 committed by GitHub
parent bad8c0daa6
commit b5ee981110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {