mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
FIx formatting
This commit is contained in:
parent
f0c47e6e2d
commit
3717a26fcb
1 changed files with 28 additions and 30 deletions
|
|
@ -194,7 +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), {
|
||||
|
|
@ -226,8 +226,6 @@ self.MonacoEnvironment = {
|
|||
}
|
||||
};
|
||||
|
||||
Monaco = await import('monaco-editor');
|
||||
|
||||
monaco.editor.create(document.getElementById('container'), {
|
||||
value: "function hello() {\n\talert('Hello world!');\n}",
|
||||
language: 'javascript'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue