vite 8.0.16 → 8.1.0

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.
package/LICENSE.md CHANGED
@@ -369,6 +369,34 @@ Repository: https://github.com/vitest-dev/vitest
369
369
 
370
370
  ---------------------------------------
371
371
 
372
+ ## @voidzero-dev/vite-task-client
373
+ License: MIT
374
+ Repository: https://github.com/voidzero-dev/vite-task
375
+
376
+ > MIT License
377
+ >
378
+ > Copyright (c) 2026-present, VoidZero Inc.
379
+ >
380
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
381
+ > of this software and associated documentation files (the "Software"), to deal
382
+ > in the Software without restriction, including without limitation the rights
383
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
384
+ > copies of the Software, and to permit persons to whom the Software is
385
+ > furnished to do so, subject to the following conditions:
386
+ >
387
+ > The above copyright notice and this permission notice shall be included in all
388
+ > copies or substantial portions of the Software.
389
+ >
390
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
391
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
392
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
393
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
394
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
395
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
396
+ > SOFTWARE.
397
+
398
+ ---------------------------------------
399
+
372
400
  ## anymatch
373
401
  License: ISC
374
402
  By: Elan Shanker
@@ -962,6 +990,35 @@ Repository: https://github.com/follow-redirects/follow-redirects
962
990
 
963
991
  ---------------------------------------
964
992
 
993
+ ## fresh-import
994
+ License: MIT
995
+ By: sapphi-red
996
+ Repository: https://github.com/sapphi-red/fresh-import
997
+
998
+ > MIT License
999
+ >
1000
+ > Copyright (c) 2026 sapphi-red
1001
+ >
1002
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
1003
+ > of this software and associated documentation files (the "Software"), to deal
1004
+ > in the Software without restriction, including without limitation the rights
1005
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1006
+ > copies of the Software, and to permit persons to whom the Software is
1007
+ > furnished to do so, subject to the following conditions:
1008
+ >
1009
+ > The above copyright notice and this permission notice shall be included in all
1010
+ > copies or substantial portions of the Software.
1011
+ >
1012
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1013
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1014
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1015
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1016
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1017
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1018
+ > SOFTWARE.
1019
+
1020
+ ---------------------------------------
1021
+
965
1022
  ## generic-names
966
1023
  License: MIT
967
1024
  By: Alexey Litvinov
package/bin/openChrome.js CHANGED
@@ -3,7 +3,7 @@ Copyright (c) 2015-present, Facebook, Inc.
3
3
 
4
4
  This source code is licensed under the MIT license found in the
5
5
  LICENSE file at
6
- https://github.com/facebook/create-react-app/blob/main/LICENSE
6
+ https://github.com/react/create-react-app/blob/main/LICENSE
7
7
  */
8
8
 
9
9
  /* global Application */
package/client.d.ts CHANGED
@@ -204,6 +204,9 @@ declare module '*.wasm?init' {
204
204
  export default initWasm
205
205
  }
206
206
 
207
+ // wasm (ESM integration)
208
+ declare module '*.wasm' {}
209
+
207
210
  // web worker
208
211
  declare module '*?worker' {
209
212
  const workerConstructor: {
@@ -8,7 +8,7 @@ let nanoid = (size = 21) => {
8
8
  return id;
9
9
  };
10
10
  //#endregion
11
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
11
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
12
12
  function _typeof(o) {
13
13
  "@babel/helpers - typeof";
14
14
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -18,7 +18,7 @@ function _typeof(o) {
18
18
  }, _typeof(o);
19
19
  }
20
20
  //#endregion
21
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
21
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
22
22
  function toPrimitive(t, r) {
23
23
  if ("object" != _typeof(t) || !t) return t;
24
24
  var e = t[Symbol.toPrimitive];
@@ -30,13 +30,13 @@ function toPrimitive(t, r) {
30
30
  return ("string" === r ? String : Number)(t);
31
31
  }
32
32
  //#endregion
33
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
33
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
34
34
  function toPropertyKey(t) {
35
35
  var i = toPrimitive(t, "string");
36
36
  return "symbol" == _typeof(i) ? i : i + "";
37
37
  }
38
38
  //#endregion
39
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
39
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
40
40
  function _defineProperty(e, r, t) {
41
41
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
42
42
  value: t,
@@ -1206,9 +1206,7 @@ function updateStyle(id, content) {
1206
1206
  }
1207
1207
  function removeStyle(id) {
1208
1208
  if (linkSheetsMap.has(id)) {
1209
- document.querySelectorAll(`link[rel="stylesheet"][data-vite-dev-id]`).forEach((el) => {
1210
- if (el.getAttribute("data-vite-dev-id") === id) el.remove();
1211
- });
1209
+ document.querySelectorAll(`link[rel="stylesheet"][data-vite-dev-id="${CSS.escape(id)}"]`).forEach((el) => el.remove());
1212
1210
  linkSheetsMap.delete(id);
1213
1211
  }
1214
1212
  const style = sheetsMap.get(id);
@@ -256,16 +256,6 @@ var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
256
256
  //#endregion
257
257
  //#region ../../node_modules/.pnpm/lodash.camelcase@4.3.0/node_modules/lodash.camelcase/index.js
258
258
  var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module) => {
259
- /**
260
- * lodash (Custom Build) <https://lodash.com/>
261
- * Build: `lodash modularize exports="npm" -o ./`
262
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
263
- * Released under MIT license <https://lodash.com/license>
264
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
265
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
266
- */
267
- /** Used as references for various `Number` constants. */
268
- var INFINITY = Infinity;
269
259
  /** `Object#toString` result references. */
270
260
  var symbolTag = "[object Symbol]";
271
261
  /** Used to match words composed of alphanumeric characters. */
@@ -668,7 +658,7 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
668
658
  if (typeof value == "string") return value;
669
659
  if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
670
660
  var result = value + "";
671
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
661
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
672
662
  }
673
663
  /**
674
664
  * Casts `array` to a slice if it's needed.
@@ -1,5 +1,5 @@
1
1
  //#region ../../node_modules/.pnpm/parse5@8.0.1/node_modules/parse5/dist/common/unicode.js
2
- const UNDEFINED_CODE_POINTS = new Set([
2
+ const UNDEFINED_CODE_POINTS = /* @__PURE__ */ new Set([
3
3
  65534,
4
4
  65535,
5
5
  131070,
@@ -323,7 +323,7 @@ function getTokenAttr(token, attrName) {
323
323
  }
324
324
  //#endregion
325
325
  //#region ../../node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode-codepoint.js
326
- const decodeMap = new Map([
326
+ const decodeMap = /* @__PURE__ */ new Map([
327
327
  [0, 65533],
328
328
  [128, 8364],
329
329
  [130, 8218],
@@ -1038,7 +1038,7 @@ var TAG_ID;
1038
1038
  TAG_ID[TAG_ID["WBR"] = 122] = "WBR";
1039
1039
  TAG_ID[TAG_ID["XMP"] = 123] = "XMP";
1040
1040
  })(TAG_ID || (TAG_ID = {}));
1041
- const TAG_NAME_TO_ID = new Map([
1041
+ const TAG_NAME_TO_ID = /* @__PURE__ */ new Map([
1042
1042
  [TAG_NAMES.A, TAG_ID.A],
1043
1043
  [TAG_NAMES.ADDRESS, TAG_ID.ADDRESS],
1044
1044
  [TAG_NAMES.ANNOTATION_XML, TAG_ID.ANNOTATION_XML],
@@ -1169,7 +1169,7 @@ function getTagID(tagName) {
1169
1169
  }
1170
1170
  const $ = TAG_ID;
1171
1171
  const SPECIAL_ELEMENTS = {
1172
- [NS.HTML]: new Set([
1172
+ [NS.HTML]: /* @__PURE__ */ new Set([
1173
1173
  $.ADDRESS,
1174
1174
  $.APPLET,
1175
1175
  $.AREA,
@@ -1252,7 +1252,7 @@ const SPECIAL_ELEMENTS = {
1252
1252
  $.WBR,
1253
1253
  $.XMP
1254
1254
  ]),
1255
- [NS.MATHML]: new Set([
1255
+ [NS.MATHML]: /* @__PURE__ */ new Set([
1256
1256
  $.MI,
1257
1257
  $.MO,
1258
1258
  $.MN,
@@ -1260,7 +1260,7 @@ const SPECIAL_ELEMENTS = {
1260
1260
  $.MTEXT,
1261
1261
  $.ANNOTATION_XML
1262
1262
  ]),
1263
- [NS.SVG]: new Set([
1263
+ [NS.SVG]: /* @__PURE__ */ new Set([
1264
1264
  $.TITLE,
1265
1265
  $.FOREIGN_OBJECT,
1266
1266
  $.DESC
@@ -1269,7 +1269,7 @@ const SPECIAL_ELEMENTS = {
1269
1269
  [NS.XML]: /* @__PURE__ */ new Set(),
1270
1270
  [NS.XMLNS]: /* @__PURE__ */ new Set()
1271
1271
  };
1272
- const NUMBERED_HEADERS = new Set([
1272
+ const NUMBERED_HEADERS = /* @__PURE__ */ new Set([
1273
1273
  $.H1,
1274
1274
  $.H2,
1275
1275
  $.H3,
@@ -3337,7 +3337,7 @@ var Tokenizer = class {
3337
3337
  };
3338
3338
  //#endregion
3339
3339
  //#region ../../node_modules/.pnpm/parse5@8.0.1/node_modules/parse5/dist/parser/open-element-stack.js
3340
- const IMPLICIT_END_TAG_REQUIRED = new Set([
3340
+ const IMPLICIT_END_TAG_REQUIRED = /* @__PURE__ */ new Set([
3341
3341
  TAG_ID.DD,
3342
3342
  TAG_ID.DT,
3343
3343
  TAG_ID.LI,
@@ -3349,7 +3349,7 @@ const IMPLICIT_END_TAG_REQUIRED = new Set([
3349
3349
  TAG_ID.RT,
3350
3350
  TAG_ID.RTC
3351
3351
  ]);
3352
- const IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([
3352
+ const IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = /* @__PURE__ */ new Set([
3353
3353
  ...IMPLICIT_END_TAG_REQUIRED,
3354
3354
  TAG_ID.CAPTION,
3355
3355
  TAG_ID.COLGROUP,
@@ -3360,7 +3360,7 @@ const IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([
3360
3360
  TAG_ID.THEAD,
3361
3361
  TAG_ID.TR
3362
3362
  ]);
3363
- const SCOPING_ELEMENTS_HTML = new Set([
3363
+ const SCOPING_ELEMENTS_HTML = /* @__PURE__ */ new Set([
3364
3364
  TAG_ID.APPLET,
3365
3365
  TAG_ID.CAPTION,
3366
3366
  TAG_ID.HTML,
@@ -3371,13 +3371,13 @@ const SCOPING_ELEMENTS_HTML = new Set([
3371
3371
  TAG_ID.TEMPLATE,
3372
3372
  TAG_ID.TH
3373
3373
  ]);
3374
- const SCOPING_ELEMENTS_HTML_LIST = new Set([
3374
+ const SCOPING_ELEMENTS_HTML_LIST = /* @__PURE__ */ new Set([
3375
3375
  ...SCOPING_ELEMENTS_HTML,
3376
3376
  TAG_ID.OL,
3377
3377
  TAG_ID.UL
3378
3378
  ]);
3379
- const SCOPING_ELEMENTS_HTML_BUTTON = new Set([...SCOPING_ELEMENTS_HTML, TAG_ID.BUTTON]);
3380
- const SCOPING_ELEMENTS_MATHML = new Set([
3379
+ const SCOPING_ELEMENTS_HTML_BUTTON = /* @__PURE__ */ new Set([...SCOPING_ELEMENTS_HTML, TAG_ID.BUTTON]);
3380
+ const SCOPING_ELEMENTS_MATHML = /* @__PURE__ */ new Set([
3381
3381
  TAG_ID.ANNOTATION_XML,
3382
3382
  TAG_ID.MI,
3383
3383
  TAG_ID.MN,
@@ -3385,29 +3385,29 @@ const SCOPING_ELEMENTS_MATHML = new Set([
3385
3385
  TAG_ID.MS,
3386
3386
  TAG_ID.MTEXT
3387
3387
  ]);
3388
- const SCOPING_ELEMENTS_SVG = new Set([
3388
+ const SCOPING_ELEMENTS_SVG = /* @__PURE__ */ new Set([
3389
3389
  TAG_ID.DESC,
3390
3390
  TAG_ID.FOREIGN_OBJECT,
3391
3391
  TAG_ID.TITLE
3392
3392
  ]);
3393
- const TABLE_ROW_CONTEXT = new Set([
3393
+ const TABLE_ROW_CONTEXT = /* @__PURE__ */ new Set([
3394
3394
  TAG_ID.TR,
3395
3395
  TAG_ID.TEMPLATE,
3396
3396
  TAG_ID.HTML
3397
3397
  ]);
3398
- const TABLE_BODY_CONTEXT = new Set([
3398
+ const TABLE_BODY_CONTEXT = /* @__PURE__ */ new Set([
3399
3399
  TAG_ID.TBODY,
3400
3400
  TAG_ID.TFOOT,
3401
3401
  TAG_ID.THEAD,
3402
3402
  TAG_ID.TEMPLATE,
3403
3403
  TAG_ID.HTML
3404
3404
  ]);
3405
- const TABLE_CONTEXT = new Set([
3405
+ const TABLE_CONTEXT = /* @__PURE__ */ new Set([
3406
3406
  TAG_ID.TABLE,
3407
3407
  TAG_ID.TEMPLATE,
3408
3408
  TAG_ID.HTML
3409
3409
  ]);
3410
- const TABLE_CELLS = new Set([TAG_ID.TD, TAG_ID.TH]);
3410
+ const TABLE_CELLS = /* @__PURE__ */ new Set([TAG_ID.TD, TAG_ID.TH]);
3411
3411
  var OpenElementStack = class {
3412
3412
  get currentTmplContentOrNode() {
3413
3413
  return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
@@ -3943,7 +3943,7 @@ const QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES = [
3943
3943
  "-//w3c//dtd html 4.01 frameset//",
3944
3944
  "-//w3c//dtd html 4.01 transitional//"
3945
3945
  ];
3946
- const QUIRKS_MODE_PUBLIC_IDS = new Set([
3946
+ const QUIRKS_MODE_PUBLIC_IDS = /* @__PURE__ */ new Set([
3947
3947
  "-//w3o//dtd w3 html strict 3.0//en//",
3948
3948
  "-/w3c/dtd html 4.0 transitional/en",
3949
3949
  "html"
@@ -4043,7 +4043,7 @@ const SVG_ATTRS_ADJUSTMENT_MAP = new Map([
4043
4043
  "yChannelSelector",
4044
4044
  "zoomAndPan"
4045
4045
  ].map((attr) => [attr.toLowerCase(), attr]));
4046
- const XML_ATTRS_ADJUSTMENT_MAP = new Map([
4046
+ const XML_ATTRS_ADJUSTMENT_MAP = /* @__PURE__ */ new Map([
4047
4047
  ["xlink:actuate", {
4048
4048
  prefix: "xlink",
4049
4049
  name: "actuate",
@@ -4138,7 +4138,7 @@ const SVG_TAG_NAMES_ADJUSTMENT_MAP = new Map([
4138
4138
  "radialGradient",
4139
4139
  "textPath"
4140
4140
  ].map((tn) => [tn.toLowerCase(), tn]));
4141
- const EXITS_FOREIGN_CONTENT = new Set([
4141
+ const EXITS_FOREIGN_CONTENT = /* @__PURE__ */ new Set([
4142
4142
  TAG_ID.B,
4143
4143
  TAG_ID.BIG,
4144
4144
  TAG_ID.BLOCKQUOTE,
@@ -4271,7 +4271,7 @@ const BASE_LOC = {
4271
4271
  endCol: -1,
4272
4272
  endOffset: -1
4273
4273
  };
4274
- const TABLE_STRUCTURE_TAGS = new Set([
4274
+ const TABLE_STRUCTURE_TAGS = /* @__PURE__ */ new Set([
4275
4275
  TAG_ID.TABLE,
4276
4276
  TAG_ID.TBODY,
4277
4277
  TAG_ID.TFOOT,
@@ -6253,7 +6253,7 @@ function tokenInTableText(p, token) {
6253
6253
  p.insertionMode = p.originalInsertionMode;
6254
6254
  p._processToken(token);
6255
6255
  }
6256
- const TABLE_VOID_ELEMENTS = new Set([
6256
+ const TABLE_VOID_ELEMENTS = /* @__PURE__ */ new Set([
6257
6257
  TAG_ID.CAPTION,
6258
6258
  TAG_ID.COL,
6259
6259
  TAG_ID.COLGROUP,
@@ -10,7 +10,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
10
  var __getOwnPropNames = Object.getOwnPropertyNames;
11
11
  var __getProtoOf = Object.getPrototypeOf;
12
12
  var __hasOwnProp = Object.prototype.hasOwnProperty;
13
- var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
13
+ var __esmMin = (fn, res, err) => () => {
14
+ if (err) throw err[0];
15
+ try {
16
+ return fn && (res = fn(fn = 0)), res;
17
+ } catch (e) {
18
+ throw err = [e], e;
19
+ }
20
+ };
14
21
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
15
22
  var __exportAll = (all, no_symbols) => {
16
23
  let target = {};
@@ -36,7 +43,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
43
  enumerable: true
37
44
  }) : target, mod));
38
45
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
39
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
46
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
40
47
  //#endregion
41
48
  //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
42
49
  var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -237,13 +244,13 @@ const KNOWN_ASSET_TYPES = [
237
244
  ];
238
245
  const DEFAULT_ASSETS_RE = new RegExp(`\\.(` + KNOWN_ASSET_TYPES.join("|") + `)(\\?.*)?$`, "i");
239
246
  const DEP_VERSION_RE = /[?&](v=[\w.-]+)\b/;
240
- const loopbackHosts = new Set([
247
+ const loopbackHosts = /* @__PURE__ */ new Set([
241
248
  "localhost",
242
249
  "127.0.0.1",
243
250
  "::1",
244
251
  "0000:0000:0000:0000:0000:0000:0000:0001"
245
252
  ]);
246
- const wildcardHosts = new Set([
253
+ const wildcardHosts = /* @__PURE__ */ new Set([
247
254
  "0.0.0.0",
248
255
  "::",
249
256
  "0000:0000:0000:0000:0000:0000:0000:0000"