chore(deps): update npm dependencies (#5561)

* chore(deps): update npm dependencies

* fix: types

* chore: replace vite-plugin-monaco-editor-esm with utils/monaco

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Slinetrac <realakayuki@gmail.com>
This commit is contained in:
renovate[bot]
2025-11-22 16:33:34 +08:00
committed by GitHub
co-authored by renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Slinetrac
parent a271ba6ce5
commit 51760a5b95
6 changed files with 148 additions and 131 deletions
-18
View File
@@ -3,7 +3,6 @@ import path from "node:path";
import legacy from "@vitejs/plugin-legacy";
import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";
import monacoEditorPlugin from "vite-plugin-monaco-editor-esm";
import svgr from "vite-plugin-svgr";
const getPackageName = (id: string) => {
@@ -93,13 +92,6 @@ const chunkRules: ChunkRule[] = [
!!pkg && LARGE_VENDOR_MATCHERS.some((keyword) => pkg.includes(keyword)),
},
];
const monacoEditorPluginDefault: typeof monacoEditorPlugin =
(
monacoEditorPlugin as typeof monacoEditorPlugin & {
default?: typeof monacoEditorPlugin;
}
).default ?? monacoEditorPlugin;
export default defineConfig({
root: "src",
server: { port: 3000 },
@@ -118,16 +110,6 @@ export default defineConfig({
path.resolve("./src/polyfills/RegExp.js"),
],
}),
monacoEditorPluginDefault({
languageWorkers: ["editorWorkerService", "typescript", "css"],
customWorkers: [
{
label: "yaml",
entry: "monaco-yaml/yaml.worker",
},
],
globalAPI: false,
}),
],
build: {
outDir: "../dist",