chore(deps): remove zustand and update vite-plugin-monaco-editor to esm version
This commit is contained in:
@@ -4,12 +4,11 @@ import legacy from "@vitejs/plugin-legacy";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import monacoEditorPlugin, {
|
||||
type IMonacoEditorOpts,
|
||||
} from "vite-plugin-monaco-editor";
|
||||
} from "vite-plugin-monaco-editor-esm";
|
||||
import svgr from "vite-plugin-svgr";
|
||||
import { defineConfig } from "vitest/config";
|
||||
const monacoEditorPluginDefault = (monacoEditorPlugin as any).default as (
|
||||
options: IMonacoEditorOpts,
|
||||
) => any;
|
||||
const monacoEditorPluginDefault = ((monacoEditorPlugin as any).default ??
|
||||
monacoEditorPlugin) as (options: IMonacoEditorOpts) => any;
|
||||
|
||||
export default defineConfig({
|
||||
root: "src",
|
||||
|
||||
Reference in New Issue
Block a user