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 CHANGED
@@ -1,4 +1,4 @@
1
- // node_modules/.pnpm/@esm.sh+import-map@0.1.1/node_modules/@esm.sh/import-map/dist/import-map.mjs
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.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") {