modern-monaco 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.mjs +9 -3
- package/package.json +2 -2
package/dist/core.mjs
CHANGED
|
@@ -40,7 +40,7 @@ function isObject(v) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// package.json
|
|
43
|
-
var version = "0.3.
|
|
43
|
+
var version = "0.3.6";
|
|
44
44
|
|
|
45
45
|
// src/core.ts
|
|
46
46
|
import { getExtnameFromLanguageId, getLanguageIdFromPath, grammars, initShiki, setDefaultWasmLoader, themes } from "./shiki.mjs";
|
|
@@ -346,8 +346,14 @@ async function loadMonaco(highlighter, workspace, lsp) {
|
|
|
346
346
|
}
|
|
347
347
|
const useBuiltinLSP = globalThis.MonacoEnvironment?.useBuiltinLSP;
|
|
348
348
|
const [monaco, { builtinLSPProviders }] = await Promise.all([
|
|
349
|
-
import(
|
|
350
|
-
|
|
349
|
+
import(
|
|
350
|
+
/* webpackIgnore: true */
|
|
351
|
+
editorCoreModuleUrl
|
|
352
|
+
),
|
|
353
|
+
useBuiltinLSP ? import(
|
|
354
|
+
/* webpackIgnore: true */
|
|
355
|
+
lspModuleUrl
|
|
356
|
+
) : Promise.resolve({ builtinLSPProviders: {} })
|
|
351
357
|
]);
|
|
352
358
|
const allLspProviders = { ...builtinLSPProviders, ...lspProviders, ...lsp?.providers };
|
|
353
359
|
workspace?.setupMonaco(monaco);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modern-monaco",
|
|
3
3
|
"description": "A modern version of Monaco Editor",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"process": false,
|
|
69
69
|
"buffer": false
|
|
70
70
|
},
|
|
71
|
-
"sideEffects":
|
|
71
|
+
"sideEffects": ["dist/index.mjs"],
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@esm.sh/import-map": "0.1.1",
|
|
74
74
|
"@shikijs/core": "3.17.0",
|