-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
monaco-editor.ts
22 lines (21 loc) · 1.09 KB
/
monaco-editor.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
* Importing `monaco-editor` imports all languages, and can expand bundle size.
* When you import `monaco-editor`, under the hood you import
* `monaco-editor/esm/vs/editor/editor.main.js` (described in its `package.json#module` field)
* Inside this file there are the following:
*
* ```js
* import '../basic-languages/monaco.contribution'; // ⚠️ a lot of languages; we only need graphql
* import '../language/css/monaco.contribution'; // ❌ throw out
* import '../language/html/monaco.contribution'; // ❌ throw out
* import '../language/json/monaco.contribution'; // ✅ json language for variables/response editor
* import '../language/typescript/monaco.contribution'; // ❌ throw out
* export * from './edcore.main'; // ✅ editor, languages, Uri,... exports
* ```
*
* Types for `monaco-editor/esm/vs/editor/edcore.main` are also left out;
* we enhance them in `monaco.d.ts` 😎
*/
import 'monaco-editor/esm/vs/basic-languages/graphql/graphql.contribution.js';
import 'monaco-editor/esm/vs/language/json/monaco.contribution.js';
export * from 'monaco-editor/esm/vs/editor/editor.api.js';