]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update
authordaiwei <daiwei521@126.com>
Mon, 22 Sep 2025 07:45:10 +0000 (15:45 +0800)
committerdaiwei <daiwei521@126.com>
Mon, 22 Sep 2025 07:59:30 +0000 (15:59 +0800)
packages/runtime-vapor/src/dom/prop.ts
rollup.config.js

index be4cc08512de946ac19ef645b3ae3069bc7768f8..4646572ea7c154e81e137283217dbaf41552a750 100644 (file)
@@ -409,7 +409,7 @@ function classHasMismatch(
 
   let hasMismatch: boolean = false
   if (isIncremental) {
-    if (expectedClassSet.size > 0) {
+    if (expected) {
       hasMismatch = Array.from(expectedClassSet).some(
         cls => !actualClassSet.has(cls),
       )
@@ -447,7 +447,7 @@ function styleHasMismatch(
 
   let hasMismatch: boolean = false
   if (isIncremental) {
-    if (expectedStyleMap.size > 0) {
+    if (expected) {
       // check if the expected styles are present in the actual styles
       hasMismatch = Array.from(expectedStyleMap.entries()).some(
         ([key, val]) => actualStyleMap.get(key) !== val,
index 05e2e0e8e86deac67a85c337b1170f5c98049df5..1fa345f87fc926876c4f7787abde1a83e43db15b 100644 (file)
@@ -392,24 +392,26 @@ function createMinifiedConfig(/** @type {PackageFormat} */ format) {
       file: outputConfigs[format].file.replace(/\.js$/, '.prod.js'),
     },
     [
-      // {
-      //   name: 'swc-minify',
-      //   async renderChunk(contents, _, { format }) {
-      //     const { code } = await minifySwc(contents, {
-      //       module: format === 'es',
-      //       format: {
-      //         comments: false,
-      //       },
-      //       compress: {
-      //         ecma: 2016,
-      //         pure_getters: true,
-      //       },
-      //       safari10: true,
-      //       mangle: true,
-      //     })
-      //     return { code: banner + code, map: null }
-      //   },
-      // },
+      {
+        name: 'swc-minify',
+
+        async renderChunk(contents, _, { format }) {
+          const { code } = await minifySwc(contents, {
+            module: format === 'es',
+            format: {
+              comments: false,
+            },
+            compress: {
+              ecma: 2016,
+              pure_getters: true,
+            },
+            safari10: true,
+            mangle: true,
+          })
+
+          return { code: banner + code, map: null }
+        },
+      },
     ],
   )
 }