vite 7.3.2 → 7.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6212,6 +6212,21 @@ const buildEsbuildPlugin = () => {
6212
6212
  }
6213
6213
  };
6214
6214
  };
6215
+ const destructuringBugRE = /^(safari|ios)(\d+)(?:\.(\d+))?$/;
6216
+ function needsDestructuringSupportedWorkaround(target) {
6217
+ if (!target) return false;
6218
+ const targets = Array.isArray(target) ? target : [target];
6219
+ for (const t$1 of targets) {
6220
+ const match = destructuringBugRE.exec(t$1);
6221
+ if (!match) continue;
6222
+ const major = Number(match[2]);
6223
+ if (major < 10) continue;
6224
+ if (major < 14) return true;
6225
+ if (major > 14) continue;
6226
+ if ((match[3] ? Number(match[3]) : 0) < (match[1] === "safari" ? 1 : 5)) return true;
6227
+ }
6228
+ return false;
6229
+ }
6215
6230
  function resolveEsbuildTranspileOptions(config$2, format$3) {
6216
6231
  const target = config$2.build.target;
6217
6232
  const minify = config$2.build.minify === "esbuild";
@@ -6225,6 +6240,7 @@ function resolveEsbuildTranspileOptions(config$2, format$3) {
6225
6240
  format: rollupToEsbuildFormatMap[format$3],
6226
6241
  supported: {
6227
6242
  ...defaultEsbuildSupported,
6243
+ ...needsDestructuringSupportedWorkaround(target) ? { destructuring: true } : null,
6228
6244
  ...esbuildOptions.supported
6229
6245
  }
6230
6246
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "7.3.2",
3
+ "version": "7.3.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",