mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-14 21:20:48 +08:00
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:
co-authored by
renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Slinetrac
parent
a271ba6ce5
commit
51760a5b95
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user