vite 8.3.1 → 8.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.
@@ -1112,7 +1112,8 @@ declare class MemoryFiles {
1112
1112
  declare class BundledDev {
1113
1113
  private environment;
1114
1114
  private _devEngine;
1115
- private viteRuntime?;
1115
+ /** the vite client and the rolldown runtime; set before the first build so `hasBuildOutput` can count them */
1116
+ private staticFiles;
1116
1117
  private initialBuildCompleted;
1117
1118
  private _closed;
1118
1119
  private clients;
@@ -1144,6 +1145,7 @@ declare class BundledDev {
1144
1145
  */
1145
1146
  markPayloadDelivered(filename: string): void;
1146
1147
  close(): Promise<void>;
1148
+ private storeStaticFiles;
1147
1149
  private storeOutputFiles;
1148
1150
  private getRolldownOptions;
1149
1151
  private handleHmrOutput;
@@ -39,6 +39,19 @@ function promiseWithResolvers() {
39
39
  reject
40
40
  };
41
41
  }
42
+ const percentEncodedRE = /(?:%[0-9a-f]{2})+/gi, whitespaceOnlyRE = /^\s+$/;
43
+ /** Reverses {@link encodeSourceURL}. */
44
+ function decodeSourceURL(url) {
45
+ return url.replace(percentEncodedRE, (match) => {
46
+ let decoded;
47
+ try {
48
+ decoded = decodeURIComponent(match);
49
+ } catch {
50
+ return match;
51
+ }
52
+ return whitespaceOnlyRE.test(decoded) ? decoded : match;
53
+ });
54
+ }
42
55
  //#endregion
43
56
  //#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.6.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
44
57
  var comma = 44, chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar = /* @__PURE__ */ new Uint8Array(64), charToInt = /* @__PURE__ */ new Uint8Array(128);
@@ -940,10 +953,11 @@ function supportRelativeURL(file, url) {
940
953
  return protocol && /^\/\w:/.test(startPath) ? (protocol += "/", protocol + slash(posixResolve(startPath, url))) : protocol + posixResolve(startPath, url);
941
954
  }
942
955
  function getRunnerSourceMap(position) {
956
+ let id = decodeSourceURL(position.source);
943
957
  for (let moduleGraph of evaluatedModulesCache) {
944
- let sourceMap = moduleGraph.getModuleSourceMapById(position.source);
958
+ let sourceMap = moduleGraph.getModuleSourceMapById(id);
945
959
  if (sourceMap) return {
946
- url: position.source,
960
+ url: id,
947
961
  map: sourceMap,
948
962
  vite: !0
949
963
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "8.3.1",
3
+ "version": "8.3.3",
4
4
  "description": "Native-ESM powered web dev build tool",
5
5
  "keywords": [
6
6
  "build-tool",
@@ -59,7 +59,7 @@
59
59
  "lightningcss": "^1.33.0",
60
60
  "picomatch": "^4.0.7",
61
61
  "postcss": "^8.5.28",
62
- "rolldown": "~1.2.9",
62
+ "rolldown": "~1.2.11",
63
63
  "tinyglobby": "^0.2.17"
64
64
  },
65
65
  "devDependencies": {
@@ -73,17 +73,16 @@
73
73
  "@types/escape-html": "^1.0.4",
74
74
  "@types/pnpapi": "^0.0.5",
75
75
  "@vercel/detect-agent": "^1.2.5",
76
- "@vitejs/devtools": "^0.7.5",
77
- "@vitest/utils": "4.1.11",
76
+ "@vitejs/devtools": "^0.7.6",
77
+ "@vitest/utils": "^4.1.11",
78
78
  "@voidzero-dev/vite-task-client": "^0.2.0",
79
79
  "artichokie": "^0.4.5",
80
- "baseline-browser-mapping": "^2.11.25",
80
+ "baseline-browser-mapping": "^2.11.26",
81
81
  "cac": "^7.0.0",
82
82
  "chokidar": "^3.6.0",
83
83
  "connect": "^3.7.0",
84
84
  "convert-source-map": "^2.0.0",
85
85
  "cors": "^2.8.6",
86
- "cross-spawn": "^7.0.6",
87
86
  "dotenv-expand": "^13.0.0",
88
87
  "es-module-lexer": "^2.3.2",
89
88
  "esbuild": "^0.28.2",
@@ -93,8 +92,8 @@
93
92
  "fresh-import": "^0.2.1",
94
93
  "host-validation-middleware": "^0.1.4",
95
94
  "http-proxy-3": "^1.23.3",
96
- "launch-editor-middleware": "^2.14.1",
97
- "magic-string": "^1.4.1",
95
+ "launch-editor-middleware": "^2.14.2",
96
+ "magic-string": "^1.4.2",
98
97
  "mlly": "^1.8.2",
99
98
  "mrmime": "^2.0.1",
100
99
  "nanoid": "^5.1.16",
@@ -117,8 +116,9 @@
117
116
  "sirv": "^3.0.2",
118
117
  "strip-literal": "^4.0.0",
119
118
  "terser": "^5.51.2",
119
+ "tinyexec": "^1.3.1",
120
120
  "ufo": "^1.6.4",
121
- "ws": "^8.21.3"
121
+ "ws": "^8.22.0"
122
122
  },
123
123
  "peerDependencies": {
124
124
  "@types/node": "^20.19.0 || >=22.12.0",