Fixes prettier issue.

pull/3001/head
Henning Dieterichs 3 years ago
parent 72b7b1ea3b
commit 18bf1f4658
No known key found for this signature in database
GPG Key ID: 771381EFFDB9EC06

@ -194,8 +194,7 @@ Adding monaco editor to [Vite](https://vitejs.dev/) is simple since it has built
import * as monaco from 'monaco-editor';
self.MonacoEnvironment = {
getWorker: function(workerId, label) {
getWorker: function (workerId, label) {
const getWorkerModule = (moduleUrl, label) => {
return new Worker(self.MonacoEnvironment.getWorkerUrl(moduleUrl), {
name: label,
@ -216,10 +215,7 @@ self.MonacoEnvironment = {
return getWorkerModule('/monaco-editor/esm/vs/language/html/html.worker?worker', label);
case 'typescript':
case 'javascript':
return getWorkerModule(
'/monaco-editor/esm/vs/language/typescript/ts.worker?worker',
label
);
return getWorkerModule('/monaco-editor/esm/vs/language/typescript/ts.worker?worker', label);
default:
return getWorkerModule('/monaco-editor/esm/vs/editor/editor.worker?worker', label);
}

Loading…
Cancel
Save