From 211ae8c43fa4502b55651e71be0d33cd7df811e6 Mon Sep 17 00:00:00 2001 From: JounQin Date: Sat, 9 Dec 2023 16:27:52 +0800 Subject: [PATCH] chore: update vite patch --- .yarn/patches/vite-npm-5.0.6-d33c199e48.patch | 12 ------------ .yarn/patches/vite-npm-5.0.7-583fea8b6f.patch | 13 +++++++++++++ package.json | 4 ++-- yarn.lock | 18 +++++++++--------- 4 files changed, 24 insertions(+), 23 deletions(-) delete mode 100644 .yarn/patches/vite-npm-5.0.6-d33c199e48.patch create mode 100644 .yarn/patches/vite-npm-5.0.7-583fea8b6f.patch diff --git a/.yarn/patches/vite-npm-5.0.6-d33c199e48.patch b/.yarn/patches/vite-npm-5.0.6-d33c199e48.patch deleted file mode 100644 index 4ccce7cc..00000000 --- a/.yarn/patches/vite-npm-5.0.6-d33c199e48.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/dist/node/constants.js b/dist/node/constants.js -index 334b9a0929295a440030a8bdb383c56a322e4301..7d133d3d87e9541508ce875a5656be22f430ea03 100644 ---- a/dist/node/constants.js -+++ b/dist/node/constants.js -@@ -107,6 +107,7 @@ const KNOWN_ASSET_TYPES = [ - 'webmanifest', - 'pdf', - 'txt', -+ 'md', - ]; - const DEFAULT_ASSETS_RE = new RegExp(`\\.(` + KNOWN_ASSET_TYPES.join('|') + `)(\\?.*)?$`); - const DEP_VERSION_RE = /[?&](v=[\w.-]+)\b/; diff --git a/.yarn/patches/vite-npm-5.0.7-583fea8b6f.patch b/.yarn/patches/vite-npm-5.0.7-583fea8b6f.patch new file mode 100644 index 00000000..b0b797db --- /dev/null +++ b/.yarn/patches/vite-npm-5.0.7-583fea8b6f.patch @@ -0,0 +1,13 @@ +diff --git a/dist/node/chunks/dep-wTaJK0Jt.js b/dist/node/chunks/dep-wTaJK0Jt.js +index 101079c6bd9419729c11174dd792c82757793f9c..b9b36d66af89733a77ed92896a1f25bbb73a7ac8 100644 +--- a/dist/node/chunks/dep-wTaJK0Jt.js ++++ b/dist/node/chunks/dep-wTaJK0Jt.js +@@ -63867,6 +63867,8 @@ function esbuildScanPlugin(config, container, depImports, missing, entries) { + contents, + }; + }); ++ ++ setupExternalize(/.*/, () => true); + }, + }; + } diff --git a/package.json b/package.json index e22ceaa8..f405e333 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "type-coverage": "^2.27.0", "typescript": "^5.3.3", "unplugin-auto-import": "^0.17.2", - "vite": "^5.0.6", + "vite": "^5.0.7", "vitest": "^1.0.2" }, "resolutions": { @@ -70,7 +70,7 @@ "lint-staged": "^15.2.0", "prettier": "^2.8.8", "rollup": "^4.6.1", - "vite": "patch:vite@npm%3A5.0.6#~/.yarn/patches/vite-npm-5.0.6-d33c199e48.patch" + "vite": "patch:vite@npm%3A5.0.7#~/.yarn/patches/vite-npm-5.0.7-583fea8b6f.patch" }, "commitlint": { "extends": "@1stg" diff --git a/yarn.lock b/yarn.lock index e0c5fd35..d5bc2bb4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14042,7 +14042,7 @@ __metadata: type-coverage: "npm:^2.27.0" typescript: "npm:^5.3.3" unplugin-auto-import: "npm:^0.17.2" - vite: "npm:^5.0.6" + vite: "npm:^5.0.7" vitest: "npm:^1.0.2" languageName: unknown linkType: soft @@ -20683,9 +20683,9 @@ __metadata: languageName: node linkType: hard -"vite@npm:5.0.6": - version: 5.0.6 - resolution: "vite@npm:5.0.6" +"vite@npm:5.0.7": + version: 5.0.7 + resolution: "vite@npm:5.0.7" dependencies: esbuild: "npm:^0.19.3" fsevents: "npm:~2.3.3" @@ -20719,13 +20719,13 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: c4647591c76ad5a3b818efef37fb23d793512be832b7daa6c54719f24b0dbadfe383b18cf0896e2c4eaf9d1acab031b3caeaa36570b79ce9da2be6a328d27a1e + checksum: 27186e5b907484ed17a9cb803bb2127995a1659e1da9eab36bcd7bfac5d11ed41f7136d9913cc27a8c8c49c3fee5c791dee135c5d37653ddfa0153b69dc3f930 languageName: node linkType: hard -"vite@patch:vite@npm%3A5.0.6#~/.yarn/patches/vite-npm-5.0.6-d33c199e48.patch": - version: 5.0.6 - resolution: "vite@patch:vite@npm%3A5.0.6#~/.yarn/patches/vite-npm-5.0.6-d33c199e48.patch::version=5.0.6&hash=61acc3" +"vite@patch:vite@npm%3A5.0.7#~/.yarn/patches/vite-npm-5.0.7-583fea8b6f.patch": + version: 5.0.7 + resolution: "vite@patch:vite@npm%3A5.0.7#~/.yarn/patches/vite-npm-5.0.7-583fea8b6f.patch::version=5.0.7&hash=2e56e6" dependencies: esbuild: "npm:^0.19.3" fsevents: "npm:~2.3.3" @@ -20759,7 +20759,7 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: 197d9dd0e8dd2db16d1493aaee034bf4f1d4e5d5dd38b221f51ed75f98ca3a07f7e9a95ed6c7924f51fd9faae800207d195f742e46594757314c53309dab9848 + checksum: 2d1130ad160cfce35a8e773cd3246b6b0651ae72fcb335cc61b673210d74cdd3fc0f31be3cbb06d06ce5339a50ea85c0197c6025a3907f2853fd0c8f24e85380 languageName: node linkType: hard