Skip to content

Commit

Permalink
fix(patch): check equals objects. PR vitejs/vite-plugin-vue#320
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 28, 2023
1 parent 72217ef commit 55508d6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions patches/@vitejs+plugin-vue+5.0.0.patch
@@ -0,0 +1,14 @@
diff --git a/node_modules/@vitejs/plugin-vue/dist/index.mjs b/node_modules/@vitejs/plugin-vue/dist/index.mjs
index 17b35e8..c093528 100644
--- a/node_modules/@vitejs/plugin-vue/dist/index.mjs
+++ b/node_modules/@vitejs/plugin-vue/dist/index.mjs
@@ -2262,6 +2262,9 @@ function deepEqual(obj1, obj2, excludeProps = []) {
if (obj1 == null || obj2 == null || typeof obj1 !== "object") {
return obj1 === obj2;
}
+ if (obj1 === obj2) {
+ return true;
+ }
const keys1 = Object.keys(obj1);
const keys2 = Object.keys(obj2);
if (keys1.length !== keys2.length) {

0 comments on commit 55508d6

Please sign in to comment.