modern-monaco 0.3.3 → 0.3.4
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 +3 -2
- package/dist/editor-core.mjs +9638 -4388
- package/dist/editor-worker.mjs +77 -77
- package/dist/index.mjs +8 -8
- package/dist/lsp/client.mjs +1 -1
- package/dist/lsp/css/worker.mjs +43 -43
- package/dist/lsp/html/worker.mjs +31 -31
- package/dist/lsp/json/setup.mjs +1 -1
- package/dist/lsp/json/worker.mjs +31 -31
- package/dist/lsp/typescript/libs.mjs +0 -1
- package/dist/lsp/typescript/setup.mjs +1 -1
- package/dist/lsp/typescript/worker.mjs +3 -3
- package/dist/shiki-wasm.mjs +1 -1
- package/dist/shiki.mjs +58 -56
- package/package.json +7 -5
package/dist/core.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules
|
|
1
|
+
// node_modules/@esm.sh/import-map/dist/import-map.mjs
|
|
2
2
|
function parseImportMapFromJson(json, baseURL) {
|
|
3
3
|
const importMap = {
|
|
4
4
|
$baseURL: new URL(baseURL ?? ".", "file:///").href,
|
|
@@ -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.4";
|
|
44
44
|
|
|
45
45
|
// src/core.ts
|
|
46
46
|
import { getExtnameFromLanguageId, getLanguageIdFromPath, grammars, initShiki, setDefaultWasmLoader, themes } from "./shiki.mjs";
|
|
@@ -216,6 +216,7 @@ function lazy(options) {
|
|
|
216
216
|
theme = theme.toLowerCase().replace(/ +/g, "-");
|
|
217
217
|
}
|
|
218
218
|
const highlighter = await initShiki({ ...options, theme, langs });
|
|
219
|
+
renderOptions.theme = highlighter.getLoadedThemes()[0];
|
|
219
220
|
let prerenderEl;
|
|
220
221
|
for (const el of this.children) {
|
|
221
222
|
if (el.className === "monaco-editor-prerender") {
|