Adds vite esm example (#5094)

This commit is contained in:
Henning Dieterichs 2025-11-07 11:19:47 +01:00 committed by GitHub
parent b62a81677f
commit d38215cf6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 1743 additions and 0 deletions

View file

@ -0,0 +1,13 @@
import './style.css';
import * as monaco from '../../src/editor/editor.main';
monaco.languages.register({ id: 'typescript' });
const tm = monaco.editor.createModel(`class Test {}`, 'typescript',
monaco.Uri.parse('file:///main.ts'));
const editor = monaco.editor.create(document.getElementById('root')!, {
model: tm,
language: 'typescript',
theme: 'vs-dark',
});