vite 8.0.6 → 8.0.8

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.
@@ -1,5 +1,5 @@
1
1
  import "@vite/env";
2
- //#region \0@oxc-project+runtime@0.123.0/helpers/typeof.js
2
+ //#region \0@oxc-project+runtime@0.124.0/helpers/typeof.js
3
3
  function _typeof(o) {
4
4
  "@babel/helpers - typeof";
5
5
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -9,7 +9,7 @@ function _typeof(o) {
9
9
  }, _typeof(o);
10
10
  }
11
11
  //#endregion
12
- //#region \0@oxc-project+runtime@0.123.0/helpers/toPrimitive.js
12
+ //#region \0@oxc-project+runtime@0.124.0/helpers/toPrimitive.js
13
13
  function toPrimitive(t, r) {
14
14
  if ("object" != _typeof(t) || !t) return t;
15
15
  var e = t[Symbol.toPrimitive];
@@ -21,13 +21,13 @@ function toPrimitive(t, r) {
21
21
  return ("string" === r ? String : Number)(t);
22
22
  }
23
23
  //#endregion
24
- //#region \0@oxc-project+runtime@0.123.0/helpers/toPropertyKey.js
24
+ //#region \0@oxc-project+runtime@0.124.0/helpers/toPropertyKey.js
25
25
  function toPropertyKey(t) {
26
26
  var i = toPrimitive(t, "string");
27
27
  return "symbol" == _typeof(i) ? i : i + "";
28
28
  }
29
29
  //#endregion
30
- //#region \0@oxc-project+runtime@0.123.0/helpers/defineProperty.js
30
+ //#region \0@oxc-project+runtime@0.124.0/helpers/defineProperty.js
31
31
  function _defineProperty(e, r, t) {
32
32
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
33
33
  value: t,
@@ -2064,7 +2064,7 @@ function unique(arr) {
2064
2064
  * For example, when IPv6 is not supported on that machine/network.
2065
2065
  */
2066
2066
  function getLocalhostAddressIfDiffersFromDNS() {
2067
- if (promises.getDefaultResultOrder() === "verbatim") return;
2067
+ if (promises.getDefaultResultOrder && promises.getDefaultResultOrder() === "verbatim") return;
2068
2068
  return Promise.all([promises.lookup("localhost"), promises.lookup("localhost", { verbatim: true })]).then(([nodeResult, dnsResult]) => {
2069
2069
  return nodeResult.family === dnsResult.family && nodeResult.address === dnsResult.address ? void 0 : nodeResult.address;
2070
2070
  });
@@ -11211,12 +11211,11 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
11211
11211
  }
11212
11212
  },
11213
11213
  onIdentifier(id, parent, parentStack) {
11214
- const grandparent = parentStack[1];
11215
11214
  const binding = idToImportMap.get(id.name);
11216
11215
  if (!binding) return;
11217
11216
  if (isStaticProperty(parent) && parent.shorthand) {
11218
11217
  if (!isNodeInPattern(parent) || isInDestructuringAssignment(parent, parentStack)) s.appendLeft(id.end, `: ${binding}`);
11219
- } else if (parent.type === "PropertyDefinition" && grandparent?.type === "ClassBody" || parent.type === "ClassDeclaration" && id === parent.superClass) {
11218
+ } else if (parent.type === "ClassDeclaration" && id === parent.superClass) {
11220
11219
  if (!declaredConst.has(id.name)) {
11221
11220
  declaredConst.add(id.name);
11222
11221
  const topNode = parentStack[parentStack.length - 2];
@@ -11348,6 +11347,7 @@ function isRefIdentifier(id, parent, parentStack) {
11348
11347
  if (parent.params.includes(id)) return false;
11349
11348
  }
11350
11349
  if (parent.type === "MethodDefinition" && !parent.computed) return false;
11350
+ if (parent.type === "PropertyDefinition" && !parent.computed) return parent.value === id;
11351
11351
  if (isStaticPropertyKey(id, parent)) return false;
11352
11352
  if (isNodeInPattern(parent) && parent.value === id) return false;
11353
11353
  if (parent.type === "ArrayPattern" && !isInDestructuringAssignment(parent, parentStack)) return false;
@@ -16341,7 +16341,7 @@ function baseMiddleware(rawBase, middlewareMode) {
16341
16341
  };
16342
16342
  }
16343
16343
  //#endregion
16344
- //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_obug@1.0.2_ms@2.1.3_/node_modules/follow-redirects/debug.js
16344
+ //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_obug@1.0.2/node_modules/follow-redirects/debug.js
16345
16345
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16346
16346
  var debug;
16347
16347
  module.exports = function() {
@@ -16355,7 +16355,7 @@ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16355
16355
  };
16356
16356
  }));
16357
16357
  //#endregion
16358
- //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_obug@1.0.2_ms@2.1.3_/node_modules/follow-redirects/index.js
16358
+ //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_obug@1.0.2/node_modules/follow-redirects/index.js
16359
16359
  var require_follow_redirects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16360
16360
  var url$1 = __require("url");
16361
16361
  var URL = url$1.URL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "8.0.6",
3
+ "version": "8.0.8",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -63,7 +63,7 @@
63
63
  "lightningcss": "^1.32.0",
64
64
  "picomatch": "^4.0.4",
65
65
  "postcss": "^8.5.8",
66
- "rolldown": "1.0.0-rc.13",
66
+ "rolldown": "1.0.0-rc.15",
67
67
  "tinyglobby": "^0.2.15"
68
68
  },
69
69
  "optionalDependencies": {