From cb55979a569ab3ad3aa18c77080490ea233656f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Sun, 25 Jun 2023 16:40:31 +0800 Subject: [PATCH] refactor(jsx-explorer): remove MonacoEditorPlugin --- packages/jsx-explorer/package.json | 1 - packages/jsx-explorer/vite.config.ts | 2 -- pnpm-lock.yaml | 12 +----------- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/jsx-explorer/package.json b/packages/jsx-explorer/package.json index 3211db69..91f7c679 100644 --- a/packages/jsx-explorer/package.json +++ b/packages/jsx-explorer/package.json @@ -14,7 +14,6 @@ "vue": "^3.3.4" }, "devDependencies": { - "vite-plugin-monaco-editor": "^1.1.0", "vite-plugin-node-polyfills": "^0.9.0" } } diff --git a/packages/jsx-explorer/vite.config.ts b/packages/jsx-explorer/vite.config.ts index bc347359..4db45179 100644 --- a/packages/jsx-explorer/vite.config.ts +++ b/packages/jsx-explorer/vite.config.ts @@ -1,5 +1,4 @@ import { defineConfig } from 'vite'; -import MonacoEditorPlugin from 'vite-plugin-monaco-editor'; import { nodePolyfills } from 'vite-plugin-node-polyfills'; export default defineConfig({ @@ -9,7 +8,6 @@ export default defineConfig({ }, }, plugins: [ - MonacoEditorPlugin({}), nodePolyfills({ globals: { process: true, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 31523cdc..ed675672 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -129,9 +129,6 @@ importers: specifier: ^3.3.4 version: 3.3.4 devDependencies: - vite-plugin-monaco-editor: - specifier: ^1.1.0 - version: 1.1.0(monaco-editor@0.39.0) vite-plugin-node-polyfills: specifier: ^0.9.0 version: 0.9.0(vite@4.3.9) @@ -4385,6 +4382,7 @@ packages: /monaco-editor@0.39.0: resolution: {integrity: sha512-zhbZ2Nx93tLR8aJmL2zI1mhJpsl87HMebNBM6R8z4pLfs8pj604pIVIVwyF1TivcfNtIPpMXL+nb3DsBmE/x6Q==} + dev: false /mri@1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} @@ -5496,14 +5494,6 @@ packages: - terser dev: true - /vite-plugin-monaco-editor@1.1.0(monaco-editor@0.39.0): - resolution: {integrity: sha512-IvtUqZotrRoVqwT0PBBDIZPNraya3BxN/bfcNfnxZ5rkJiGcNtO5eAOWWSgT7zullIAEqQwxMU83yL9J5k7gww==} - peerDependencies: - monaco-editor: '>=0.33.0' - dependencies: - monaco-editor: 0.39.0 - dev: true - /vite-plugin-node-polyfills@0.9.0(vite@4.3.9): resolution: {integrity: sha512-+i+WPUuIBhJy+ODfxx6S6FTl28URCxUszbl/IL4GwrZvbqqY/8VDIp+zpjMS8Us/a7GwN4Iaqr/fVIBtkNQojQ==} peerDependencies: