Skip to content

Commit 47af663

Browse files
committed
fix: Never import monaco-editor directly
1 parent ce6ddea commit 47af663

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/hooks.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { MutableRefObject, useCallback, useEffect, useMemo, useRef, useState } from 'react'
2-
import * as monaco from 'monaco-editor'
32
import deepEqual from 'deep-equal'
4-
import { getConfiguration, getThemeData, onConfigurationChanged } from '@codingame/monaco-editor-wrapper'
3+
import { getConfiguration, getThemeData, onConfigurationChanged, monaco } from '@codingame/monaco-editor-wrapper'
54

65
const standaloneThemeService = monaco.extra.StandaloneServices.get(monaco.editor.IStandaloneThemeService)
76
export function useThemeData (): monaco.extra.ColorThemeData | null {

0 commit comments

Comments
 (0)