Skip to content

Commit

Permalink
fix: HMR of monaco editor component
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Aug 7, 2024
1 parent 07237f4 commit b60ce34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/components/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
}>();
onMount(async () => {
if (editor)
return;
core = await import("monaco-editor-core");
await loadLanguage(lang);
Expand Down

0 comments on commit b60ce34

Please sign in to comment.