mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
fix: patch vite-plugin-monaco-editor for modern Node
This commit is contained in:
13
patches/vite-plugin-monaco-editor@1.1.0.patch
Normal file
13
patches/vite-plugin-monaco-editor@1.1.0.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/dist/workerMiddleware.js b/dist/workerMiddleware.js
|
||||||
|
index dd8681c56cd5106dbc6dbc6c9cd03cbada397dfc..272f75ae738fa2626541bf15e4293ebfe69e49e2 100644
|
||||||
|
--- a/dist/workerMiddleware.js
|
||||||
|
+++ b/dist/workerMiddleware.js
|
||||||
|
@@ -43,7 +43,7 @@ function workerMiddleware(middlewares, config, options) {
|
||||||
|
const works = index_1.getWorks(options);
|
||||||
|
// clear cacheDir
|
||||||
|
if (fs.existsSync(exports.cacheDir)) {
|
||||||
|
- fs.rmdirSync(exports.cacheDir, { recursive: true, force: true });
|
||||||
|
+ fs.rmSync(exports.cacheDir, { recursive: true, force: true });
|
||||||
|
}
|
||||||
|
for (const work of works) {
|
||||||
|
middlewares.use(config.base + options.publicPath + '/' + getFilenameByEntry(work.entry), function (req, res, next) {
|
||||||
17
pnpm-lock.yaml
generated
17
pnpm-lock.yaml
generated
@@ -4,6 +4,9 @@ settings:
|
|||||||
autoInstallPeers: true
|
autoInstallPeers: true
|
||||||
excludeLinksFromLockfile: false
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
|
patchedDependencies:
|
||||||
|
vite-plugin-monaco-editor@1.1.0: 78bcfd876ec9dcb4b3100060e043c7d9f9f3242b269a1a0fd8f283bf74f97dc6
|
||||||
|
|
||||||
importers:
|
importers:
|
||||||
|
|
||||||
.:
|
.:
|
||||||
@@ -269,7 +272,7 @@ importers:
|
|||||||
version: 7.3.6(@types/node@26.2.0)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.12)(yaml@2.9.0)
|
version: 7.3.6(@types/node@26.2.0)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.12)(yaml@2.9.0)
|
||||||
vite-plugin-monaco-editor:
|
vite-plugin-monaco-editor:
|
||||||
specifier: ^1.1.0
|
specifier: ^1.1.0
|
||||||
version: 1.1.0(monaco-editor@0.52.2)
|
version: 1.1.0(patch_hash=78bcfd876ec9dcb4b3100060e043c7d9f9f3242b269a1a0fd8f283bf74f97dc6)(monaco-editor@0.52.2)
|
||||||
vitest:
|
vitest:
|
||||||
specifier: 4.1.10
|
specifier: 4.1.10
|
||||||
version: 4.1.10(@types/node@26.2.0)(vite@7.3.6(@types/node@26.2.0)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.12)(yaml@2.9.0))
|
version: 4.1.10(@types/node@26.2.0)(vite@7.3.6(@types/node@26.2.0)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.12)(yaml@2.9.0))
|
||||||
@@ -2879,6 +2882,7 @@ packages:
|
|||||||
'@xmldom/xmldom@0.8.14':
|
'@xmldom/xmldom@0.8.14':
|
||||||
resolution: {integrity: sha512-T4EDRUBVZYRldYApjEJiU0e1stYWaRAX7CuSnKzrpwdZKo53zGV8/pqfzV6FfwNl9YThD2OumQYvqtvjvgG7aQ==}
|
resolution: {integrity: sha512-T4EDRUBVZYRldYApjEJiU0e1stYWaRAX7CuSnKzrpwdZKo53zGV8/pqfzV6FfwNl9YThD2OumQYvqtvjvgG7aQ==}
|
||||||
engines: {node: '>=10.0.0'}
|
engines: {node: '>=10.0.0'}
|
||||||
|
deprecated: this version has critical issues, please update to the latest version
|
||||||
|
|
||||||
'@xmldom/xmldom@0.9.10':
|
'@xmldom/xmldom@0.9.10':
|
||||||
resolution: {integrity: sha512-A9gOqLdi6cV4ibazAjcQufGj0B1y/vDqYrcuP6d/6x8P27gRS8643Dj9o1dEKtB6O7fwxb2FgBmJS2mX7gpvdw==}
|
resolution: {integrity: sha512-A9gOqLdi6cV4ibazAjcQufGj0B1y/vDqYrcuP6d/6x8P27gRS8643Dj9o1dEKtB6O7fwxb2FgBmJS2mX7gpvdw==}
|
||||||
@@ -3755,6 +3759,7 @@ packages:
|
|||||||
eslint@9.39.2:
|
eslint@9.39.2:
|
||||||
resolution: {integrity: sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==}
|
resolution: {integrity: sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
|
deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
jiti: '*'
|
jiti: '*'
|
||||||
@@ -10877,7 +10882,7 @@ snapshots:
|
|||||||
es6-error: 4.1.1
|
es6-error: 4.1.1
|
||||||
matcher: 3.0.0
|
matcher: 3.0.0
|
||||||
roarr: 2.15.4
|
roarr: 2.15.4
|
||||||
semver: 7.7.4
|
semver: 7.8.5
|
||||||
serialize-error: 7.0.1
|
serialize-error: 7.0.1
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -11735,11 +11740,11 @@ snapshots:
|
|||||||
|
|
||||||
node-abi@4.33.0:
|
node-abi@4.33.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
semver: 7.7.4
|
semver: 7.8.5
|
||||||
|
|
||||||
node-api-version@0.2.1:
|
node-api-version@0.2.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
semver: 7.7.4
|
semver: 7.8.5
|
||||||
|
|
||||||
node-domexception@1.0.0: {}
|
node-domexception@1.0.0: {}
|
||||||
|
|
||||||
@@ -11763,7 +11768,7 @@ snapshots:
|
|||||||
graceful-fs: 4.2.11
|
graceful-fs: 4.2.11
|
||||||
nopt: 9.0.0
|
nopt: 9.0.0
|
||||||
proc-log: 6.1.0
|
proc-log: 6.1.0
|
||||||
semver: 7.7.4
|
semver: 7.8.5
|
||||||
tar: 7.5.22
|
tar: 7.5.22
|
||||||
tinyglobby: 0.2.17
|
tinyglobby: 0.2.17
|
||||||
undici: 6.28.0
|
undici: 6.28.0
|
||||||
@@ -12830,7 +12835,7 @@ snapshots:
|
|||||||
'@types/unist': 3.0.3
|
'@types/unist': 3.0.3
|
||||||
vfile-message: 4.0.3
|
vfile-message: 4.0.3
|
||||||
|
|
||||||
vite-plugin-monaco-editor@1.1.0(monaco-editor@0.52.2):
|
vite-plugin-monaco-editor@1.1.0(patch_hash=78bcfd876ec9dcb4b3100060e043c7d9f9f3242b269a1a0fd8f283bf74f97dc6)(monaco-editor@0.52.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
monaco-editor: 0.52.2
|
monaco-editor: 0.52.2
|
||||||
|
|
||||||
|
|||||||
@@ -11,3 +11,5 @@ publicHoistPattern:
|
|||||||
shamefullyHoist: true
|
shamefullyHoist: true
|
||||||
virtualStoreDirMaxLength: 80
|
virtualStoreDirMaxLength: 80
|
||||||
verifyDepsBeforeRun: false
|
verifyDepsBeforeRun: false
|
||||||
|
patchedDependencies:
|
||||||
|
vite-plugin-monaco-editor@1.1.0: patches/vite-plugin-monaco-editor@1.1.0.patch
|
||||||
|
|||||||
Reference in New Issue
Block a user