@depup/vite 8.0.0-depup.2 → 8.0.2-depup.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/README.md CHANGED
@@ -13,16 +13,10 @@ npm install @depup/vite
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [vite](https://www.npmjs.com/package/vite) @ 8.0.0 |
17
- | Processed | 2026-03-16 |
16
+ | Original | [vite](https://www.npmjs.com/package/vite) @ 8.0.2 |
17
+ | Processed | 2026-03-23 |
18
18
  | Smoke test | failed |
19
- | Deps updated | 1 |
20
-
21
- ## Dependency Changes
22
-
23
- | Dependency | From | To |
24
- |------------|------|-----|
25
- | @oxc-project/runtime | 0.115.0 | ^0.120.0 |
19
+ | Deps updated | 0 |
26
20
 
27
21
  ---
28
22
 
package/changes.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "bumped": {},
3
+ "timestamp": "2026-03-23T16:26:17.598Z",
4
+ "totalUpdated": 0
5
+ }
@@ -1,5 +1,5 @@
1
1
  import "@vite/env";
2
- //#region \0@oxc-project+runtime@0.115.0/helpers/typeof.js
2
+ //#region \0@oxc-project+runtime@0.121.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.115.0/helpers/toPrimitive.js
12
+ //#region \0@oxc-project+runtime@0.121.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.115.0/helpers/toPropertyKey.js
24
+ //#region \0@oxc-project+runtime@0.121.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.115.0/helpers/defineProperty.js
30
+ //#region \0@oxc-project+runtime@0.121.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,
@@ -220,7 +220,7 @@ var HMRClient = class {
220
220
  }
221
221
  };
222
222
  //#endregion
223
- //#region ../../node_modules/.pnpm/nanoid@5.1.6/node_modules/nanoid/non-secure/index.js
223
+ //#region ../../node_modules/.pnpm/nanoid@5.1.7/node_modules/nanoid/non-secure/index.js
224
224
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
225
225
  let nanoid = (size = 21) => {
226
226
  let id = "";
@@ -1,3 +1,2 @@
1
- import "./logger.js";
2
1
  import { M as createBuilder, z as resolveBuildPlugins } from "./node.js";
3
2
  export { createBuilder, resolveBuildPlugins };
@@ -515,12 +515,8 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
515
515
  "ʼn": "'n",
516
516
  "ſ": "ss"
517
517
  };
518
- /** Detect free variable `global` from Node.js. */
519
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
520
- /** Detect free variable `self`. */
521
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
522
518
  /** Used as a reference to the global object. */
523
- var root = freeGlobal || freeSelf || Function("return this")();
519
+ var root = typeof global == "object" && global && global.Object === Object && global || typeof self == "object" && self && self.Object === Object && self || Function("return this")();
524
520
  /**
525
521
  * A specialized version of `_.reduce` for arrays without support for
526
522
  * iteratee shorthands.
@@ -2871,8 +2867,7 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
2871
2867
  var pref = this.preferredQuoteMark(options);
2872
2868
  if (pref === Attribute.NO_QUOTE) {
2873
2869
  var quote = this.quoteMark || options.quoteMark || Attribute.DOUBLE_QUOTE;
2874
- var opts = CSSESC_QUOTE_OPTIONS[quote];
2875
- if ((0, _cssesc["default"])(v, opts).length < escaped.length) return quote;
2870
+ if ((0, _cssesc["default"])(v, CSSESC_QUOTE_OPTIONS[quote]).length < escaped.length) return quote;
2876
2871
  }
2877
2872
  return pref;
2878
2873
  }
@@ -2900,13 +2895,10 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
2900
2895
  }
2901
2896
  };
2902
2897
  _proto._spacesFor = function _spacesFor(name) {
2903
- var attrSpaces = {
2898
+ return Object.assign({
2904
2899
  before: "",
2905
2900
  after: ""
2906
- };
2907
- var spaces = this.spaces[name] || {};
2908
- var rawSpaces = this.raws.spaces && this.raws.spaces[name] || {};
2909
- return Object.assign(attrSpaces, spaces, rawSpaces);
2901
+ }, this.spaces[name] || {}, this.raws.spaces && this.raws.spaces[name] || {});
2910
2902
  };
2911
2903
  _proto._stringFor = function _stringFor(name, spaceName, concat) {
2912
2904
  if (spaceName === void 0) spaceName = name;
@@ -3620,8 +3612,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3620
3612
  if (this.options.lossy) break;
3621
3613
  if (lastAdded) {
3622
3614
  (0, _util.ensureObject)(node, "spaces", lastAdded);
3623
- var prevContent = node.spaces[lastAdded].after || "";
3624
- node.spaces[lastAdded].after = prevContent + content;
3615
+ node.spaces[lastAdded].after = (node.spaces[lastAdded].after || "") + content;
3625
3616
  var existingComment = (0, _util.getProp)(node, "raws", "spaces", lastAdded, "after") || null;
3626
3617
  if (existingComment) node.raws.spaces[lastAdded].after = existingComment + content;
3627
3618
  } else {
@@ -1,3 +1,2 @@
1
- import "./logger.js";
2
1
  import { _ as resolveConfig } from "./node.js";
3
2
  export { resolveConfig };
@@ -354,7 +354,6 @@ const decodeMap = new Map([
354
354
  [158, 382],
355
355
  [159, 376]
356
356
  ]);
357
- String.fromCodePoint;
358
357
  /**
359
358
  * Replace the given code point with a replacement character if it is a
360
359
  * surrogate or is outside the valid range. Otherwise return the code
@@ -4403,13 +4402,10 @@ var Parser = class {
4403
4402
  }
4404
4403
  /** @protected */
4405
4404
  _attachElementToTree(element, location) {
4406
- if (this.options.sourceCodeLocationInfo) {
4407
- const loc = location && {
4408
- ...location,
4409
- startTag: location
4410
- };
4411
- this.treeAdapter.setNodeSourceCodeLocation(element, loc);
4412
- }
4405
+ if (this.options.sourceCodeLocationInfo) this.treeAdapter.setNodeSourceCodeLocation(element, location && {
4406
+ ...location,
4407
+ startTag: location
4408
+ });
4413
4409
  if (this._shouldFosterParentOnInsertion()) this._fosterParentElement(element);
4414
4410
  else {
4415
4411
  const parent = this.openElements.currentTmplContentOrNode;
@@ -4495,7 +4491,7 @@ var Parser = class {
4495
4491
  if (this.treeAdapter.getNodeSourceCodeLocation(element) && closingToken.location) {
4496
4492
  const ctLoc = closingToken.location;
4497
4493
  const tn = this.treeAdapter.getTagName(element);
4498
- const endLoc = closingToken.type === TokenType.END_TAG && tn === closingToken.tagName ? {
4494
+ this.treeAdapter.updateNodeSourceCodeLocation(element, closingToken.type === TokenType.END_TAG && tn === closingToken.tagName ? {
4499
4495
  endTag: { ...ctLoc },
4500
4496
  endLine: ctLoc.endLine,
4501
4497
  endCol: ctLoc.endCol,
@@ -4504,8 +4500,7 @@ var Parser = class {
4504
4500
  endLine: ctLoc.startLine,
4505
4501
  endCol: ctLoc.startCol,
4506
4502
  endOffset: ctLoc.startOffset
4507
- };
4508
- this.treeAdapter.updateNodeSourceCodeLocation(element, endLoc);
4503
+ });
4509
4504
  }
4510
4505
  }
4511
4506
  shouldProcessStartTagTokenInForeignContent(token) {
@@ -21,7 +21,7 @@ import { promises } from "node:dns";
21
21
  import { isatty } from "node:tty";
22
22
  import path$1, { isAbsolute as isAbsolute$1, join as join$1, posix as posix$1, resolve as resolve$1, win32 } from "path";
23
23
  import { exactRegex, makeIdFiltersToMatchWithQuery, prefixRegex, withFilter } from "rolldown/filter";
24
- import { dev, resolveTsconfig, scan, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteDynamicImportVarsPlugin, viteImportGlobPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin } from "rolldown/experimental";
24
+ import { dev, oxcRuntimePlugin, resolveTsconfig, scan, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteDynamicImportVarsPlugin, viteImportGlobPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin } from "rolldown/experimental";
25
25
  import readline from "node:readline";
26
26
  import { MessageChannel, Worker } from "node:worker_threads";
27
27
  import isModuleSyncConditionEnabled from "#module-sync-enabled";
@@ -979,8 +979,7 @@ function setup(useColors, colors, log, load, save, formatArgs, init) {
979
979
  index++;
980
980
  const formatter = createDebug.formatters[format];
981
981
  if (typeof formatter === "function") {
982
- const value = args[index];
983
- match = formatter.call(debug, value);
982
+ match = formatter.call(debug, args[index]);
984
983
  args.splice(index, 1);
985
984
  index--;
986
985
  }
@@ -1568,8 +1567,9 @@ const replaceSlashOrColonRE = /[/:]/g;
1568
1567
  const replaceDotRE = /\./g;
1569
1568
  const replaceNestedIdRE = /\s*>\s*/g;
1570
1569
  const replaceHashRE = /#/g;
1570
+ const replacePlusRE = /\+/g;
1571
1571
  const flattenId = (id) => {
1572
- return limitFlattenIdLength(id.replace(replaceSlashOrColonRE, "_").replace(replaceDotRE, "__").replace(replaceNestedIdRE, "___").replace(replaceHashRE, "____"));
1572
+ return limitFlattenIdLength(id.replace(replaceSlashOrColonRE, "_").replace(replaceDotRE, "__").replace(replaceNestedIdRE, "___").replace(replaceHashRE, "____").replace(replacePlusRE, "_____"));
1573
1573
  };
1574
1574
  const FLATTEN_ID_HASH_LENGTH = 8;
1575
1575
  const FLATTEN_ID_MAX_FILE_LENGTH = 170;
@@ -1689,13 +1689,12 @@ const isJSRequest = (url) => {
1689
1689
  const isCSSRequest = (request) => CSS_LANGS_RE.test(request);
1690
1690
  const importQueryRE = /(\?|&)import=?(?:&|$)/;
1691
1691
  const directRequestRE$1 = /(\?|&)direct=?(?:&|$)/;
1692
- const internalPrefixes = [
1692
+ const InternalPrefixRE = new RegExp(`^(?:${[
1693
1693
  FS_PREFIX,
1694
1694
  VALID_ID_PREFIX,
1695
1695
  CLIENT_PUBLIC_PATH,
1696
1696
  ENV_PUBLIC_PATH
1697
- ];
1698
- const InternalPrefixRE = new RegExp(`^(?:${internalPrefixes.join("|")})`);
1697
+ ].join("|")})`);
1699
1698
  const trailingSeparatorRE = /[?&]$/;
1700
1699
  const isImportRequest = (url) => importQueryRE.test(url);
1701
1700
  const isInternalRequest = (url) => InternalPrefixRE.test(url);
@@ -3207,6 +3206,7 @@ function encodeQueryItem(key, value) {
3207
3206
  function stringifyQuery(query) {
3208
3207
  return Object.keys(query).filter((k) => query[k] !== void 0).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&");
3209
3208
  }
3209
+ new Set(builtinModules);
3210
3210
  function clearImports(imports) {
3211
3211
  return (imports || "").replace(/\/\/[^\n]*\n|\/\*.*\*\//g, "").replace(/\s+/g, " ");
3212
3212
  }
@@ -3548,7 +3548,8 @@ function determineSpecificType(value) {
3548
3548
  if (inspected.length > 28) inspected = `${inspected.slice(0, 25)}...`;
3549
3549
  return `type ${typeof value} (${inspected})`;
3550
3550
  }
3551
- Object.freeze(["node", "import"]);
3551
+ const DEFAULT_CONDITIONS = Object.freeze(["node", "import"]);
3552
+ new Set(DEFAULT_CONDITIONS);
3552
3553
  const ESM_STATIC_IMPORT_RE = /(?<=\s|^|;|\})import\s*(?:[\s"']*(?<imports>[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu;
3553
3554
  const TYPE_RE = /^\s*?type\s/;
3554
3555
  function parseStaticImport(matched) {
@@ -3776,20 +3777,12 @@ function oxcPlugin(config) {
3776
3777
  if (jsxRefreshFilter?.(id) && !JS_TYPES_RE.test(cleanUrl(id))) result.lang = "js";
3777
3778
  return result;
3778
3779
  };
3779
- const runtimeResolveBase = normalizePath(path.join(VITE_PACKAGE_DIR, "package.json"));
3780
3780
  let server;
3781
3781
  return {
3782
3782
  name: "vite:oxc",
3783
3783
  configureServer(_server) {
3784
3784
  server = _server;
3785
3785
  },
3786
- ...config.command === "serve" ? { resolveId: {
3787
- filter: { id: prefixRegex("@oxc-project/runtime/") },
3788
- async handler(id, _importer, opts) {
3789
- return await this.resolve(id, runtimeResolveBase, opts);
3790
- },
3791
- order: "pre"
3792
- } } : {},
3793
3786
  async transform(code, id) {
3794
3787
  if (filter(id) || filter(cleanUrl(id)) || jsxRefreshFilter?.(id)) {
3795
3788
  const result = await transformWithOxc(code, id, getModifiedOxcTransformOptions(oxcTransformOptions, id, code, this.environment), void 0, config, server?.watcher);
@@ -10050,7 +10043,7 @@ var require_shell_quote = /* @__PURE__ */ __commonJSMin(((exports) => {
10050
10043
  exports.parse = require_parse$1();
10051
10044
  }));
10052
10045
  //#endregion
10053
- //#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/editor-info/macos.js
10046
+ //#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/macos.js
10054
10047
  var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10055
10048
  module.exports = {
10056
10049
  "/Applications/Atom.app/Contents/MacOS/Atom": "atom",
@@ -10060,6 +10053,7 @@ var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10060
10053
  "/Applications/Sublime Text.app/Contents/MacOS/sublime_text": "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl",
10061
10054
  "/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2": "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl",
10062
10055
  "/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text": "/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl",
10056
+ "/Applications/Visual Studio Code.app/Contents/MacOS/Code": "code",
10063
10057
  "/Applications/Visual Studio Code.app/Contents/MacOS/Electron": "code",
10064
10058
  "/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Code - Insiders": "code-insiders",
10065
10059
  "/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron": "code-insiders",
@@ -10084,7 +10078,7 @@ var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10084
10078
  };
10085
10079
  }));
10086
10080
  //#endregion
10087
- //#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/editor-info/linux.js
10081
+ //#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/linux.js
10088
10082
  var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10089
10083
  module.exports = {
10090
10084
  atom: "atom",
@@ -10118,7 +10112,7 @@ var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10118
10112
  };
10119
10113
  }));
10120
10114
  //#endregion
10121
- //#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/editor-info/windows.js
10115
+ //#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/windows.js
10122
10116
  var require_windows$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10123
10117
  module.exports = [
10124
10118
  "Brackets.exe",
@@ -10145,13 +10139,13 @@ var require_windows$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10145
10139
  "goland64.exe",
10146
10140
  "rider.exe",
10147
10141
  "rider64.exe",
10148
- "trae.exe",
10142
+ "Trae.exe",
10149
10143
  "zed.exe",
10150
10144
  "Antigravity.exe"
10151
10145
  ];
10152
10146
  }));
10153
10147
  //#endregion
10154
- //#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/guess.js
10148
+ //#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/guess.js
10155
10149
  var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10156
10150
  const path$9 = __require("path");
10157
10151
  const shellQuote = require_shell_quote();
@@ -10212,7 +10206,7 @@ var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10212
10206
  };
10213
10207
  }));
10214
10208
  //#endregion
10215
- //#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/get-args.js
10209
+ //#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/get-args.js
10216
10210
  var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10217
10211
  const path$8 = __require("path");
10218
10212
  module.exports = function getArgumentsForPosition(editor, fileName, lineNumber, columnNumber = 1) {
@@ -10291,7 +10285,7 @@ var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10291
10285
  };
10292
10286
  }));
10293
10287
  //#endregion
10294
- //#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/index.js
10288
+ //#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/index.js
10295
10289
  var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10296
10290
  /**
10297
10291
  * Copyright (c) 2015-present, Facebook, Inc.
@@ -10390,7 +10384,7 @@ var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) =>
10390
10384
  module.exports = launchEditor;
10391
10385
  }));
10392
10386
  //#endregion
10393
- //#region ../../node_modules/.pnpm/launch-editor-middleware@2.13.1/node_modules/launch-editor-middleware/index.js
10387
+ //#region ../../node_modules/.pnpm/launch-editor-middleware@2.13.2/node_modules/launch-editor-middleware/index.js
10394
10388
  var require_launch_editor_middleware = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10395
10389
  const path$6 = __require("path");
10396
10390
  const launch = require_launch_editor();
@@ -10426,7 +10420,7 @@ var require_launch_editor_middleware = /* @__PURE__ */ __commonJSMin(((exports,
10426
10420
  };
10427
10421
  }));
10428
10422
  //#endregion
10429
- //#region ../../node_modules/.pnpm/@vercel+detect-agent@1.1.0/node_modules/@vercel/detect-agent/dist/index.js
10423
+ //#region ../../node_modules/.pnpm/@vercel+detect-agent@1.2.1/node_modules/@vercel/detect-agent/dist/index.js
10430
10424
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10431
10425
  var __defProp = Object.defineProperty;
10432
10426
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -10460,30 +10454,43 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10460
10454
  const CURSOR = "cursor";
10461
10455
  const CURSOR_CLI = "cursor-cli";
10462
10456
  const CLAUDE = "claude";
10457
+ const COWORK = "cowork";
10463
10458
  const DEVIN = "devin";
10464
10459
  const REPLIT = "replit";
10465
10460
  const GEMINI = "gemini";
10466
10461
  const CODEX = "codex";
10462
+ const ANTIGRAVITY = "antigravity";
10467
10463
  const AUGMENT_CLI = "augment-cli";
10468
10464
  const OPENCODE = "opencode";
10465
+ const GITHUB_COPILOT = "github-copilot";
10466
+ const GITHUB_COPILOT_CLI = "github-copilot-cli";
10469
10467
  const KNOWN_AGENTS = {
10470
10468
  CURSOR,
10471
10469
  CURSOR_CLI,
10472
10470
  CLAUDE,
10471
+ COWORK,
10473
10472
  DEVIN,
10474
10473
  REPLIT,
10475
10474
  GEMINI,
10476
10475
  CODEX,
10476
+ ANTIGRAVITY,
10477
10477
  AUGMENT_CLI,
10478
- OPENCODE
10478
+ OPENCODE,
10479
+ GITHUB_COPILOT
10479
10480
  };
10480
10481
  async function determineAgent() {
10481
10482
  if (process.env.AI_AGENT) {
10482
10483
  const name = process.env.AI_AGENT.trim();
10483
- if (name) return {
10484
- isAgent: true,
10485
- agent: { name }
10486
- };
10484
+ if (name) {
10485
+ if (name === GITHUB_COPILOT || name === GITHUB_COPILOT_CLI) return {
10486
+ isAgent: true,
10487
+ agent: { name: GITHUB_COPILOT }
10488
+ };
10489
+ return {
10490
+ isAgent: true,
10491
+ agent: { name }
10492
+ };
10493
+ }
10487
10494
  }
10488
10495
  if (process.env.CURSOR_TRACE_ID) return {
10489
10496
  isAgent: true,
@@ -10497,10 +10504,14 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10497
10504
  isAgent: true,
10498
10505
  agent: { name: GEMINI }
10499
10506
  };
10500
- if (process.env.CODEX_SANDBOX) return {
10507
+ if (process.env.CODEX_SANDBOX || process.env.CODEX_CI || process.env.CODEX_THREAD_ID) return {
10501
10508
  isAgent: true,
10502
10509
  agent: { name: CODEX }
10503
10510
  };
10511
+ if (process.env.ANTIGRAVITY_AGENT) return {
10512
+ isAgent: true,
10513
+ agent: { name: ANTIGRAVITY }
10514
+ };
10504
10515
  if (process.env.AUGMENT_AGENT) return {
10505
10516
  isAgent: true,
10506
10517
  agent: { name: AUGMENT_CLI }
@@ -10509,21 +10520,31 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10509
10520
  isAgent: true,
10510
10521
  agent: { name: OPENCODE }
10511
10522
  };
10512
- if (process.env.CLAUDECODE || process.env.CLAUDE_CODE) return {
10513
- isAgent: true,
10514
- agent: { name: CLAUDE }
10515
- };
10523
+ if (process.env.CLAUDECODE || process.env.CLAUDE_CODE) {
10524
+ if (process.env.CLAUDE_CODE_IS_COWORK) return {
10525
+ isAgent: true,
10526
+ agent: { name: COWORK }
10527
+ };
10528
+ return {
10529
+ isAgent: true,
10530
+ agent: { name: CLAUDE }
10531
+ };
10532
+ }
10516
10533
  if (process.env.REPL_ID) return {
10517
10534
  isAgent: true,
10518
10535
  agent: { name: REPLIT }
10519
10536
  };
10537
+ if (process.env.COPILOT_MODEL || process.env.COPILOT_ALLOW_ALL || process.env.COPILOT_GITHUB_TOKEN) return {
10538
+ isAgent: true,
10539
+ agent: { name: GITHUB_COPILOT }
10540
+ };
10520
10541
  try {
10521
10542
  await (0, import_promises.access)(DEVIN_LOCAL_PATH, import_node_fs.constants.F_OK);
10522
10543
  return {
10523
10544
  isAgent: true,
10524
10545
  agent: { name: DEVIN }
10525
10546
  };
10526
- } catch (error) {}
10547
+ } catch (_error) {}
10527
10548
  return {
10528
10549
  isAgent: false,
10529
10550
  agent: void 0
@@ -12456,7 +12477,7 @@ function checkPublicFile(url, config) {
12456
12477
  return tryStatSync(publicFile)?.isFile() ? publicFile : void 0;
12457
12478
  }
12458
12479
  //#endregion
12459
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
12480
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/constants.js
12460
12481
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12461
12482
  const BINARY_TYPES = [
12462
12483
  "nodebuffer",
@@ -12479,7 +12500,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12479
12500
  };
12480
12501
  }));
12481
12502
  //#endregion
12482
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
12503
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/buffer-util.js
12483
12504
  var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12484
12505
  const { EMPTY_BUFFER } = require_constants();
12485
12506
  const FastBuffer = Buffer[Symbol.species];
@@ -12579,7 +12600,7 @@ var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12579
12600
  } catch (e) {}
12580
12601
  }));
12581
12602
  //#endregion
12582
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
12603
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/limiter.js
12583
12604
  var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12584
12605
  const kDone = Symbol("kDone");
12585
12606
  const kRun = Symbol("kRun");
@@ -12630,7 +12651,7 @@ var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12630
12651
  module.exports = Limiter;
12631
12652
  }));
12632
12653
  //#endregion
12633
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
12654
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/permessage-deflate.js
12634
12655
  var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12635
12656
  const zlib$1 = __require("zlib");
12636
12657
  const bufferUtil = require_buffer_util();
@@ -12663,6 +12684,9 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
12663
12684
  * acknowledge disabling of client context takeover
12664
12685
  * @param {Number} [options.concurrencyLimit=10] The number of concurrent
12665
12686
  * calls to zlib
12687
+ * @param {Boolean} [options.isServer=false] Create the instance in either
12688
+ * server or client mode
12689
+ * @param {Number} [options.maxPayload=0] The maximum allowed message length
12666
12690
  * @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the
12667
12691
  * use of a custom server window size
12668
12692
  * @param {Boolean} [options.serverNoContextTakeover=false] Request/accept
@@ -12673,15 +12697,12 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
12673
12697
  * deflate
12674
12698
  * @param {Object} [options.zlibInflateOptions] Options to pass to zlib on
12675
12699
  * inflate
12676
- * @param {Boolean} [isServer=false] Create the instance in either server or
12677
- * client mode
12678
- * @param {Number} [maxPayload=0] The maximum allowed message length
12679
12700
  */
12680
- constructor(options, isServer, maxPayload) {
12681
- this._maxPayload = maxPayload | 0;
12701
+ constructor(options) {
12682
12702
  this._options = options || {};
12683
12703
  this._threshold = this._options.threshold !== void 0 ? this._options.threshold : 1024;
12684
- this._isServer = !!isServer;
12704
+ this._maxPayload = this._options.maxPayload | 0;
12705
+ this._isServer = !!this._options.isServer;
12685
12706
  this._deflate = null;
12686
12707
  this._inflate = null;
12687
12708
  this.params = null;
@@ -12963,7 +12984,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
12963
12984
  }
12964
12985
  }));
12965
12986
  //#endregion
12966
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
12987
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/validation.js
12967
12988
  var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12968
12989
  const { isUtf8 } = __require("buffer");
12969
12990
  const { hasBlob } = require_constants();
@@ -13159,7 +13180,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13159
13180
  } catch (e) {}
13160
13181
  }));
13161
13182
  //#endregion
13162
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
13183
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/receiver.js
13163
13184
  var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13164
13185
  const { Writable: Writable$1 } = __require("stream");
13165
13186
  const PerMessageDeflate = require_permessage_deflate();
@@ -13606,7 +13627,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13606
13627
  module.exports = Receiver;
13607
13628
  }));
13608
13629
  //#endregion
13609
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
13630
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/sender.js
13610
13631
  var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13611
13632
  const { Duplex: Duplex$3 } = __require("stream");
13612
13633
  const { randomFillSync } = __require("crypto");
@@ -14097,7 +14118,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14097
14118
  }
14098
14119
  }));
14099
14120
  //#endregion
14100
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
14121
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/event-target.js
14101
14122
  var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14102
14123
  const { kForOnEventAttribute, kListener } = require_constants();
14103
14124
  const kCode = Symbol("kCode");
@@ -14309,7 +14330,7 @@ var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14309
14330
  }
14310
14331
  }));
14311
14332
  //#endregion
14312
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
14333
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/extension.js
14313
14334
  var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14314
14335
  const { tokenChars } = require_validation();
14315
14336
  /**
@@ -14452,7 +14473,7 @@ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14452
14473
  };
14453
14474
  }));
14454
14475
  //#endregion
14455
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
14476
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/websocket.js
14456
14477
  var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14457
14478
  const EventEmitter$2 = __require("events");
14458
14479
  const https$3 = __require("https");
@@ -14993,7 +15014,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14993
15014
  if (address instanceof URL$2) parsedUrl = address;
14994
15015
  else try {
14995
15016
  parsedUrl = new URL$2(address);
14996
- } catch (e) {
15017
+ } catch {
14997
15018
  throw new SyntaxError(`Invalid URL: ${address}`);
14998
15019
  }
14999
15020
  if (parsedUrl.protocol === "http:") parsedUrl.protocol = "ws:";
@@ -15032,7 +15053,11 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15032
15053
  opts.path = parsedUrl.pathname + parsedUrl.search;
15033
15054
  opts.timeout = opts.handshakeTimeout;
15034
15055
  if (opts.perMessageDeflate) {
15035
- perMessageDeflate = new PerMessageDeflate(opts.perMessageDeflate !== true ? opts.perMessageDeflate : {}, false, opts.maxPayload);
15056
+ perMessageDeflate = new PerMessageDeflate({
15057
+ ...opts.perMessageDeflate,
15058
+ isServer: false,
15059
+ maxPayload: opts.maxPayload
15060
+ });
15036
15061
  opts.headers["Sec-WebSocket-Extensions"] = format({ [PerMessageDeflate.extensionName]: perMessageDeflate.offer() });
15037
15062
  }
15038
15063
  if (protocols.length) {
@@ -15423,7 +15448,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15423
15448
  }
15424
15449
  }));
15425
15450
  //#endregion
15426
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
15451
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/stream.js
15427
15452
  var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15428
15453
  require_websocket();
15429
15454
  const { Duplex: Duplex$1 } = __require("stream");
@@ -15539,7 +15564,7 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15539
15564
  module.exports = createWebSocketStream;
15540
15565
  }));
15541
15566
  //#endregion
15542
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
15567
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/subprotocol.js
15543
15568
  var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15544
15569
  const { tokenChars } = require_validation();
15545
15570
  /**
@@ -15578,7 +15603,7 @@ var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15578
15603
  module.exports = { parse };
15579
15604
  }));
15580
15605
  //#endregion
15581
- //#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
15606
+ //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/websocket-server.js
15582
15607
  var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15583
15608
  const EventEmitter$1 = __require("events");
15584
15609
  const http$4 = __require("http");
@@ -15792,7 +15817,11 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
15792
15817
  const secWebSocketExtensions = req.headers["sec-websocket-extensions"];
15793
15818
  const extensions = {};
15794
15819
  if (this.options.perMessageDeflate && secWebSocketExtensions !== void 0) {
15795
- const perMessageDeflate = new PerMessageDeflate(this.options.perMessageDeflate, true, this.options.maxPayload);
15820
+ const perMessageDeflate = new PerMessageDeflate({
15821
+ ...this.options.perMessageDeflate,
15822
+ isServer: true,
15823
+ maxPayload: this.options.maxPayload
15824
+ });
15796
15825
  try {
15797
15826
  const offers = extension.parse(secWebSocketExtensions);
15798
15827
  if (offers[PerMessageDeflate.extensionName]) {
@@ -15952,8 +15981,11 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
15952
15981
  }
15953
15982
  }));
15954
15983
  require_stream();
15984
+ require_extension();
15985
+ require_permessage_deflate();
15955
15986
  require_receiver();
15956
15987
  require_sender();
15988
+ require_subprotocol();
15957
15989
  require_websocket();
15958
15990
  var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
15959
15991
  //#endregion
@@ -18406,13 +18438,12 @@ function getNodeAssetAttributes(node) {
18406
18438
  value,
18407
18439
  attributes
18408
18440
  })) return;
18409
- const location = node.sourceCodeLocation.attrs[key];
18410
18441
  actions.push({
18411
18442
  type,
18412
18443
  key,
18413
18444
  value,
18414
18445
  attributes,
18415
- location
18446
+ location: node.sourceCodeLocation.attrs[key]
18416
18447
  });
18417
18448
  }
18418
18449
  matched.srcAttributes?.forEach((key) => handleAttributeKey(key, "src"));
@@ -21883,7 +21914,7 @@ const esMap = {
21883
21914
  "opera121"
21884
21915
  ]
21885
21916
  };
21886
- const esRE = /es(\d{4})/;
21917
+ const esRE = /es(6|\d{4})/;
21887
21918
  const versionRE = /\d/;
21888
21919
  const convertTargetsCache = /* @__PURE__ */ new Map();
21889
21920
  const convertTargets = (esbuildTarget) => {
@@ -21894,7 +21925,7 @@ const convertTargets = (esbuildTarget) => {
21894
21925
  const entriesWithoutES = arraify(esbuildTarget).flatMap((e) => {
21895
21926
  const match = esRE.exec(e);
21896
21927
  if (!match) return e;
21897
- const year = Number(match[1]);
21928
+ const year = match[1] === "6" ? 2015 : Number(match[1]);
21898
21929
  if (!esMap[year]) throw new Error(`Unsupported target "${e}"`);
21899
21930
  return esMap[year];
21900
21931
  });
@@ -24658,7 +24689,8 @@ var FullBundleDevEnvironment = class extends DevEnvironment {
24658
24689
  const rolldownOptions = resolveRolldownOptions(this, chunkMetadataMap);
24659
24690
  rolldownOptions.experimental ??= {};
24660
24691
  rolldownOptions.experimental.devMode = { implement: await getHmrImplementation(this.getTopLevelConfig()) };
24661
- if (rolldownOptions.optimization) rolldownOptions.optimization.inlineConst = false;
24692
+ rolldownOptions.optimization ??= {};
24693
+ rolldownOptions.optimization.inlineConst = false;
24662
24694
  if (Array.isArray(rolldownOptions.output)) for (const output of rolldownOptions.output) {
24663
24695
  output.entryFileNames = "assets/[name].js";
24664
24696
  output.chunkFileNames = "assets/[name]-[hash].js";
@@ -25830,8 +25862,8 @@ function memoryFilesMiddleware(server) {
25830
25862
  function rejectNoCorsRequestMiddleware() {
25831
25863
  return function viteRejectNoCorsRequestMiddleware(req, res, next) {
25832
25864
  if (req.headers["sec-fetch-mode"] === "no-cors" && req.headers["sec-fetch-site"] !== "same-origin" && req.headers["sec-fetch-dest"] === "script") {
25833
- res.statusCode = 403;
25834
- res.end("Cross-origin requests for classic scripts must be made with CORS mode enabled. Make sure to set the \"crossorigin\" attribute on your <script> tag.");
25865
+ res.setHeader("Content-Type", "text/javascript");
25866
+ res.end(`throw new Error(${JSON.stringify("[Vite] Cross-origin requests for classic scripts must be made with CORS mode enabled. Make sure to set the \"crossorigin\" attribute on your <script> tag.")});`);
25835
25867
  return;
25836
25868
  }
25837
25869
  return next();
@@ -25899,10 +25931,9 @@ async function _createServer(inlineConfig = {}, options) {
25899
25931
  await Promise.all(Object.entries(config.environments).map(async ([name, environmentOptions]) => {
25900
25932
  const environment = await environmentOptions.dev.createEnvironment(name, config, { ws });
25901
25933
  environments[name] = environment;
25902
- const previousInstance = options.previousEnvironments?.[environment.name];
25903
25934
  await environment.init({
25904
25935
  watcher,
25905
- previousInstance
25936
+ previousInstance: options.previousEnvironments?.[environment.name]
25906
25937
  });
25907
25938
  }));
25908
25939
  let moduleGraph = new ModuleGraph({
@@ -26040,8 +26071,8 @@ async function _createServer(inlineConfig = {}, options) {
26040
26071
  _setInternalServer(_server) {
26041
26072
  server = _server;
26042
26073
  },
26043
- _restartPromise: null,
26044
- _forceOptimizeOnRestart: false,
26074
+ _restartPromise: options.previousRestartPromise ?? null,
26075
+ _forceOptimizeOnRestart: options.previousForceOptimizeOnRestart ?? false,
26045
26076
  _shortcutsState: options.previousShortcutsState
26046
26077
  };
26047
26078
  const reflexServer = new Proxy(server, {
@@ -26283,7 +26314,9 @@ async function restartServer(server) {
26283
26314
  newServer = await _createServer(inlineConfig, {
26284
26315
  listen: false,
26285
26316
  previousEnvironments: server.environments,
26286
- previousShortcutsState: server._shortcutsState
26317
+ previousShortcutsState: server._shortcutsState,
26318
+ previousRestartPromise: server._restartPromise,
26319
+ previousForceOptimizeOnRestart: server._forceOptimizeOnRestart
26287
26320
  });
26288
26321
  } catch (err) {
26289
26322
  server.config.logger.error(err.message, { timestamp: true });
@@ -26295,8 +26328,6 @@ async function restartServer(server) {
26295
26328
  const middlewares = server.middlewares;
26296
26329
  newServer._configServerPort = server._configServerPort;
26297
26330
  newServer._currentServerPort = server._currentServerPort;
26298
- newServer._restartPromise = server._restartPromise;
26299
- newServer._forceOptimizeOnRestart = server._forceOptimizeOnRestart;
26300
26331
  Object.assign(server, newServer);
26301
26332
  middlewares.stack = newServer.middlewares.stack;
26302
26333
  server.middlewares = middlewares;
@@ -27020,7 +27051,11 @@ async function bundleWorkerEntry(config, id) {
27020
27051
  ".css": "js",
27021
27052
  ...rollupOptions.moduleTypes
27022
27053
  },
27023
- preserveEntrySignatures: false
27054
+ preserveEntrySignatures: false,
27055
+ experimental: {
27056
+ ...rollupOptions.experimental,
27057
+ viteMode: true
27058
+ }
27024
27059
  });
27025
27060
  let result;
27026
27061
  let watchedFiles;
@@ -27031,10 +27066,10 @@ async function bundleWorkerEntry(config, id) {
27031
27066
  entryFileNames: path.posix.join(config.build.assetsDir, "[name]-[hash].js"),
27032
27067
  chunkFileNames: path.posix.join(config.build.assetsDir, "[name]-[hash].js"),
27033
27068
  assetFileNames: path.posix.join(config.build.assetsDir, "[name]-[hash].[ext]"),
27034
- minify: config.build.minify === "oxc" ? true : config.build.minify === false ? "dce-only" : void 0,
27069
+ minify: workerEnvironment.config.build.minify === "oxc" ? true : workerEnvironment.config.build.minify === false ? "dce-only" : void 0,
27035
27070
  ...workerConfig,
27036
27071
  format,
27037
- sourcemap: config.build.sourcemap
27072
+ sourcemap: workerEnvironment.config.build.sourcemap
27038
27073
  });
27039
27074
  watchedFiles = (await bundle.watchFiles).map((f) => normalizePath(f));
27040
27075
  } catch (e) {
@@ -27920,7 +27955,7 @@ async function getWorkerType(raw, clean, i) {
27920
27955
  if (workerOpts.type && (workerOpts.type === "module" || workerOpts.type === "classic")) return workerOpts.type;
27921
27956
  return "classic";
27922
27957
  }
27923
- const workerImportMetaUrlRE = /new\s+(?:Worker|SharedWorker)\s*\(\s*new\s+URL.+?import\.meta\.url/s;
27958
+ const workerImportMetaUrlRE = /\bnew\s+(?:Worker|SharedWorker)\s*\(\s*(new\s+URL\s*\(\s*('[^']+'|"[^"]+"|`[^`]+`)\s*,\s*import\.meta\.url\s*(?:,\s*)?\))/dg;
27924
27959
  function workerImportMetaUrlPlugin(config) {
27925
27960
  const isBundled = config.isBundled;
27926
27961
  let workerResolver;
@@ -27942,9 +27977,9 @@ function workerImportMetaUrlPlugin(config) {
27942
27977
  async handler(code, id) {
27943
27978
  let s;
27944
27979
  const cleanString = stripLiteral(code);
27945
- const workerImportMetaUrlRE = /\bnew\s+(?:Worker|SharedWorker)\s*\(\s*(new\s+URL\s*\(\s*('[^']+'|"[^"]+"|`[^`]+`)\s*,\s*import\.meta\.url\s*(?:,\s*)?\))/dg;
27980
+ const re = new RegExp(workerImportMetaUrlRE);
27946
27981
  let match;
27947
- while (match = workerImportMetaUrlRE.exec(cleanString)) {
27982
+ while (match = re.exec(cleanString)) {
27948
27983
  const [[, endIndex], [expStart, expEnd], [urlStart, urlEnd]] = match.indices;
27949
27984
  const rawUrl = code.slice(urlStart, urlEnd);
27950
27985
  if (rawUrl[0] === "`" && rawUrl.includes("${")) this.error(`\`new URL(url, import.meta.url)\` is not supported in dynamic template string.`, expStart);
@@ -28293,6 +28328,7 @@ function buildImportAnalysisPlugin(config) {
28293
28328
  * import.meta.glob('./dir/**.png', { eager: true, import: 'default' })[`./dir/${name}.png`]
28294
28329
  * ```
28295
28330
  */
28331
+ const assetImportMetaUrlRE = /\bnew\s+URL\s*\(\s*('[^']+'|"[^"]+"|`[^`]+`)\s*,\s*import\.meta\.url\s*(?:,\s*)?\)/dg;
28296
28332
  function assetImportMetaUrlPlugin(config) {
28297
28333
  const { publicDir } = config;
28298
28334
  let assetResolver;
@@ -28312,14 +28348,14 @@ function assetImportMetaUrlPlugin(config) {
28312
28348
  transform: {
28313
28349
  filter: {
28314
28350
  id: { exclude: [exactRegex(preloadHelperId), exactRegex(CLIENT_ENTRY)] },
28315
- code: /new\s+URL.+import\.meta\.url/s
28351
+ code: assetImportMetaUrlRE
28316
28352
  },
28317
28353
  async handler(code, id) {
28318
28354
  let s;
28319
- const assetImportMetaUrlRE = /\bnew\s+URL\s*\(\s*('[^']+'|"[^"]+"|`[^`]+`)\s*,\s*import\.meta\.url\s*(?:,\s*)?\)/dg;
28355
+ const re = new RegExp(assetImportMetaUrlRE);
28320
28356
  const cleanString = stripLiteral(code);
28321
28357
  let match;
28322
- while (match = assetImportMetaUrlRE.exec(cleanString)) {
28358
+ while (match = re.exec(cleanString)) {
28323
28359
  const [[startIndex, endIndex], [urlStart, urlEnd]] = match.indices;
28324
28360
  if (hasViteIgnoreRE.test(code.slice(startIndex, urlStart))) continue;
28325
28361
  const rawUrl = code.slice(urlStart, urlEnd);
@@ -29007,7 +29043,7 @@ function createFilterForTransform(idFilter, codeFilter, moduleTypeFilter, cwd) {
29007
29043
  };
29008
29044
  }
29009
29045
  //#endregion
29010
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.0-beta.6/node_modules/@vitest/utils/dist/helpers.js
29046
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.0/node_modules/@vitest/utils/dist/helpers.js
29011
29047
  function notNullish(v) {
29012
29048
  return v != null;
29013
29049
  }
@@ -29015,7 +29051,7 @@ function isPrimitive(value) {
29015
29051
  return value === null || typeof value !== "function" && typeof value !== "object";
29016
29052
  }
29017
29053
  //#endregion
29018
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.0-beta.6/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
29054
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.0/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
29019
29055
  const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
29020
29056
  function normalizeWindowsPath(input = "") {
29021
29057
  if (!input) return input;
@@ -29094,7 +29130,7 @@ const isAbsolute$2 = function(p) {
29094
29130
  return _IS_ABSOLUTE_RE.test(p);
29095
29131
  };
29096
29132
  //#endregion
29097
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.0-beta.6/node_modules/@vitest/utils/dist/source-map.js
29133
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.0/node_modules/@vitest/utils/dist/source-map.js
29098
29134
  var comma = ",".charCodeAt(0);
29099
29135
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
29100
29136
  var intToChar = new Uint8Array(64);
@@ -29604,6 +29640,7 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
29604
29640
  htmlInlineProxyPlugin(config),
29605
29641
  cssPlugin(config),
29606
29642
  esbuildBannerFooterCompatPlugin(config),
29643
+ config.oxc !== false && !isBundled ? oxcRuntimePlugin() : null,
29607
29644
  config.oxc !== false ? oxcPlugin(config) : null,
29608
29645
  viteJsonPlugin({
29609
29646
  ...config.json,
@@ -30636,10 +30673,8 @@ function rolldownScanPlugin(environment, depImports, missing, entries) {
30636
30673
  if (lang === "ts" || lang === "tsx" || lang === "jsx") loader = lang;
30637
30674
  else if (id.endsWith(".astro")) loader = "ts";
30638
30675
  const srcMatch = srcRE.exec(openTag);
30639
- if (srcMatch) {
30640
- const src = srcMatch[1] || srcMatch[2] || srcMatch[3];
30641
- js += `import ${JSON.stringify(src)}\n`;
30642
- } else if (content.trim()) {
30676
+ if (srcMatch) js += `import ${JSON.stringify(srcMatch[1] || srcMatch[2] || srcMatch[3])}\n`;
30677
+ else if (content.trim()) {
30643
30678
  const contents = content + (loader.startsWith("ts") ? extractImportPaths(content) : "");
30644
30679
  const key = `${id}?id=${scriptId++}`;
30645
30680
  if (contents.includes("import.meta.glob")) scripts[key] = {
@@ -31046,13 +31081,13 @@ function rolldownDepPlugin(environment, qualified, external) {
31046
31081
  }
31047
31082
  },
31048
31083
  transform: {
31049
- filter: { code: /new\s+URL.+import\.meta\.url/s },
31084
+ filter: { code: assetImportMetaUrlRE },
31050
31085
  async handler(code, id) {
31051
31086
  let s;
31052
- const assetImportMetaUrlRE = /\bnew\s+URL\s*\(\s*('[^']+'|"[^"]+"|`[^`]+`)\s*,\s*import\.meta\.url\s*(?:,\s*)?\)/dg;
31087
+ const re = new RegExp(assetImportMetaUrlRE);
31053
31088
  const cleanString = stripLiteral(code);
31054
31089
  let match;
31055
- while (match = assetImportMetaUrlRE.exec(cleanString)) {
31090
+ while (match = re.exec(cleanString)) {
31056
31091
  const [[startIndex, endIndex], [urlStart, urlEnd]] = match.indices;
31057
31092
  if (hasViteIgnoreRE.test(code.slice(startIndex, urlStart))) continue;
31058
31093
  const rawUrl = code.slice(urlStart, urlEnd);
@@ -1,3 +1,2 @@
1
- import "./logger.js";
2
1
  import { ct as optimizeDeps } from "./node.js";
3
2
  export { optimizeDeps };
@@ -1,3 +1,2 @@
1
- import "./logger.js";
2
1
  import { S as preview } from "./node.js";
3
2
  export { preview };
@@ -1,3 +1,2 @@
1
- import "./logger.js";
2
1
  import { _t as createServer } from "./node.js";
3
2
  export { createServer };
@@ -31,7 +31,7 @@ import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownA
31
31
 
32
32
  //#region \0rolldown/runtime.js
33
33
  //#endregion
34
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.0.0-alpha.33_typescript@5.9.3_vite@packages+vite_vue@3.5.30_typescript@5.9.3_/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
34
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.5_typescript@5.9.3_vite@packages+vite_vue@3.5.30_typescript@5.9.3_/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
35
35
  //#region src/node/cli-commands.d.ts
36
36
  interface StartOptions {
37
37
  root?: string;
@@ -41,7 +41,7 @@ interface StartOptions {
41
41
  open?: boolean;
42
42
  }
43
43
  //#endregion
44
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.0.0-alpha.33_typescript@5.9.3_vite@packages+vite_vue@3.5.30_typescript@5.9.3_/node_modules/@vitejs/devtools/dist/config.d.ts
44
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.5_typescript@5.9.3_vite@packages+vite_vue@3.5.30_typescript@5.9.3_/node_modules/@vitejs/devtools/dist/config.d.ts
45
45
  //#region src/node/config.d.ts
46
46
  interface DevToolsConfig extends Partial<StartOptions> {
47
47
  enabled: boolean;
@@ -55,6 +55,13 @@ interface DevToolsConfig extends Partial<StartOptions> {
55
55
  * @default true
56
56
  */
57
57
  clientAuth?: boolean;
58
+ /**
59
+ * Pre-configured auth tokens that are automatically trusted.
60
+ *
61
+ * Clients connecting with an auth token matching one of these
62
+ * will be auto-approved without a terminal prompt.
63
+ */
64
+ clientAuthTokens?: string[];
58
65
  }
59
66
  interface ResolvedDevToolsConfig {
60
67
  config: Omit<DevToolsConfig, 'enabled'> & {
@@ -3687,7 +3694,7 @@ declare class RunnableDevEnvironment extends DevEnvironment {
3687
3694
  private _runnerOptions;
3688
3695
  constructor(name: string, config: ResolvedConfig, context: RunnableDevEnvironmentContext);
3689
3696
  get runner(): ModuleRunner;
3690
- close(): Promise<void>;
3697
+ override close(): Promise<void>;
3691
3698
  }
3692
3699
  //#endregion
3693
3700
  //#region src/node/server/environments/fetchableEnvironments.d.ts
@@ -515,7 +515,7 @@ function analyzeImportedModDifference(mod, rawId, moduleType, metadata) {
515
515
  let missingBindings = metadata.importedNames.filter((s) => !(s in mod));
516
516
  if (missingBindings.length) {
517
517
  let lastBinding = missingBindings[missingBindings.length - 1];
518
- throw moduleType === "module" ? SyntaxError(`[vite] The requested module '${rawId}' does not provide an export named '${lastBinding}'`) : SyntaxError(`\
518
+ throw SyntaxError(moduleType === "module" ? `[vite] The requested module '${rawId}' does not provide an export named '${lastBinding}'` : `\
519
519
  [vite] Named export '${lastBinding}' not found. The requested module '${rawId}' is a CommonJS module, which may not support all module.exports as named exports.
520
520
  CommonJS modules can always be imported via the default export, for example using:
521
521
 
@@ -526,7 +526,7 @@ const {${missingBindings.join(", ")}} = pkg;
526
526
  }
527
527
  }
528
528
  //#endregion
529
- //#region ../../node_modules/.pnpm/nanoid@5.1.6/node_modules/nanoid/non-secure/index.js
529
+ //#region ../../node_modules/.pnpm/nanoid@5.1.7/node_modules/nanoid/non-secure/index.js
530
530
  let nanoid = (size = 21) => {
531
531
  let id = "", i = size | 0;
532
532
  for (; i--;) id += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[Math.random() * 64 | 0];
package/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "@depup/vite",
3
- "version": "8.0.0-depup.2",
3
+ "version": "8.0.2-depup.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
7
- "description": "[DepUp] Native-ESM powered web dev build tool",
7
+ "description": "Native-ESM powered web dev build tool (with updated dependencies)",
8
8
  "bin": {
9
9
  "vite": "bin/vite.js"
10
10
  },
11
11
  "keywords": [
12
- "depup",
13
- "dependency-bumped",
14
- "updated-deps",
15
12
  "vite",
13
+ "depup",
14
+ "updated-dependencies",
15
+ "security",
16
+ "latest",
17
+ "patched",
16
18
  "frontend",
17
19
  "framework",
18
20
  "hmr",
@@ -46,7 +48,9 @@
46
48
  "dist",
47
49
  "misc/**/*.js",
48
50
  "client.d.ts",
49
- "types"
51
+ "types",
52
+ "changes.json",
53
+ "README.md"
50
54
  ],
51
55
  "engines": {
52
56
  "node": "^20.19.0 || >=22.12.0"
@@ -63,31 +67,30 @@
63
67
  "funding": "https://github.com/vitejs/vite?sponsor=1",
64
68
  "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
65
69
  "dependencies": {
66
- "@oxc-project/runtime": "^0.120.0",
67
70
  "lightningcss": "^1.32.0",
68
71
  "picomatch": "^4.0.3",
69
72
  "postcss": "^8.5.8",
70
- "rolldown": "1.0.0-rc.9",
73
+ "rolldown": "1.0.0-rc.11",
71
74
  "tinyglobby": "^0.2.15"
72
75
  },
73
76
  "optionalDependencies": {
74
77
  "fsevents": "~2.3.3"
75
78
  },
76
79
  "devDependencies": {
77
- "@babel/parser": "^7.29.0",
80
+ "@babel/parser": "^7.29.2",
78
81
  "@jridgewell/remapping": "^2.3.5",
79
82
  "@jridgewell/trace-mapping": "^0.3.31",
80
83
  "@polka/compression": "^1.0.0-next.25",
81
84
  "@rollup/plugin-alias": "^6.0.0",
82
85
  "@rollup/plugin-dynamic-import-vars": "2.1.4",
83
86
  "@rollup/pluginutils": "^5.3.0",
84
- "@vercel/detect-agent": "^1.1.0",
87
+ "@vercel/detect-agent": "^1.2.1",
85
88
  "@types/escape-html": "^1.0.4",
86
89
  "@types/pnpapi": "^0.0.5",
87
- "@vitest/utils": "4.1.0-beta.6",
88
- "@vitejs/devtools": "^0.0.0-alpha.33",
90
+ "@vitest/utils": "4.1.0",
91
+ "@vitejs/devtools": "^0.1.5",
89
92
  "artichokie": "^0.4.2",
90
- "baseline-browser-mapping": "^2.10.0",
93
+ "baseline-browser-mapping": "^2.10.10",
91
94
  "cac": "^7.0.0",
92
95
  "chokidar": "^3.6.0",
93
96
  "connect": "^3.7.0",
@@ -96,17 +99,17 @@
96
99
  "cross-spawn": "^7.0.6",
97
100
  "dotenv-expand": "^12.0.3",
98
101
  "es-module-lexer": "^1.7.0",
99
- "esbuild": "^0.27.3",
102
+ "esbuild": "^0.27.4",
100
103
  "escape-html": "^1.0.3",
101
104
  "estree-walker": "^3.0.3",
102
105
  "etag": "^1.8.1",
103
106
  "host-validation-middleware": "^0.1.2",
104
107
  "http-proxy-3": "^1.23.2",
105
- "launch-editor-middleware": "^2.13.1",
108
+ "launch-editor-middleware": "^2.13.2",
106
109
  "magic-string": "^0.30.21",
107
- "mlly": "^1.8.1",
110
+ "mlly": "^1.8.2",
108
111
  "mrmime": "^2.0.1",
109
- "nanoid": "^5.1.6",
112
+ "nanoid": "^5.1.7",
110
113
  "obug": "^1.0.2",
111
114
  "open": "^10.2.0",
112
115
  "parse5": "^8.0.0",
@@ -118,20 +121,20 @@
118
121
  "postcss-modules": "^6.0.1",
119
122
  "premove": "^4.0.0",
120
123
  "resolve.exports": "^2.0.3",
121
- "rolldown-plugin-dts": "^0.22.2",
124
+ "rolldown-plugin-dts": "^0.22.5",
122
125
  "rollup": "^4.59.0",
123
126
  "rollup-plugin-license": "^3.7.0",
124
- "sass": "^1.97.3",
125
- "sass-embedded": "^1.97.3",
127
+ "sass": "^1.98.0",
128
+ "sass-embedded": "^1.98.0",
126
129
  "sirv": "^3.0.2",
127
130
  "strip-literal": "^3.1.0",
128
- "terser": "^5.46.0",
131
+ "terser": "^5.46.1",
129
132
  "ufo": "^1.6.3",
130
- "ws": "^8.19.0"
133
+ "ws": "^8.20.0"
131
134
  },
132
135
  "peerDependencies": {
133
136
  "@types/node": "^20.19.0 || >=22.12.0",
134
- "@vitejs/devtools": "^0.0.0-alpha.31",
137
+ "@vitejs/devtools": "^0.1.0",
135
138
  "esbuild": "^0.27.0",
136
139
  "jiti": ">=1.21.0",
137
140
  "less": "^4.0.0",
@@ -194,16 +197,11 @@
194
197
  "generate-target": "tsx scripts/generateTarget.ts"
195
198
  },
196
199
  "depup": {
197
- "changes": {
198
- "@oxc-project/runtime": {
199
- "from": "0.115.0",
200
- "to": "^0.120.0"
201
- }
202
- },
203
- "depsUpdated": 1,
200
+ "changes": {},
201
+ "depsUpdated": 0,
204
202
  "originalPackage": "vite",
205
- "originalVersion": "8.0.0",
206
- "processedAt": "2026-03-16T16:56:10.565Z",
203
+ "originalVersion": "8.0.2",
204
+ "processedAt": "2026-03-23T16:26:41.520Z",
207
205
  "smokeTest": "failed"
208
206
  }
209
207
  }