vite 8.0.9 → 8.0.11

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,6 +1,6 @@
1
1
  import { i as __require, t as __commonJSMin } from "./chunk.js";
2
2
  import { t as require_lib } from "./lib.js";
3
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/format-import-prelude.js
3
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/format-import-prelude.js
4
4
  var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
5
  module.exports = function formatImportPrelude(layer, media, supports) {
6
6
  const parts = [];
@@ -15,7 +15,7 @@ var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, mod
15
15
  };
16
16
  }));
17
17
  //#endregion
18
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/base64-encoded-import.js
18
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/base64-encoded-import.js
19
19
  var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20
20
  const formatImportPrelude = require_format_import_prelude();
21
21
  module.exports = function base64EncodedConditionalImport(prelude, conditions) {
@@ -28,7 +28,7 @@ var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, mod
28
28
  };
29
29
  }));
30
30
  //#endregion
31
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/apply-conditions.js
31
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/apply-conditions.js
32
32
  var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
33
33
  const base64EncodedConditionalImport = require_base64_encoded_import();
34
34
  module.exports = function applyConditions(bundle, atRule) {
@@ -103,7 +103,7 @@ var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module)
103
103
  };
104
104
  }));
105
105
  //#endregion
106
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/apply-raws.js
106
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/apply-raws.js
107
107
  var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
108
108
  module.exports = function applyRaws(bundle) {
109
109
  bundle.forEach((stmt, index) => {
@@ -117,7 +117,7 @@ var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
117
117
  };
118
118
  }));
119
119
  //#endregion
120
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/apply-styles.js
120
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/apply-styles.js
121
121
  var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
122
122
  module.exports = function applyStyles(bundle, styles) {
123
123
  styles.nodes = [];
@@ -137,7 +137,7 @@ var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137
137
  };
138
138
  }));
139
139
  //#endregion
140
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/data-url.js
140
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/data-url.js
141
141
  var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142
142
  const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i;
143
143
  const base64DataURLRegexp = /^data:text\/css;base64,/i;
@@ -156,7 +156,7 @@ var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
156
156
  };
157
157
  }));
158
158
  //#endregion
159
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/parse-statements.js
159
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/parse-statements.js
160
160
  var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module) => {
161
161
  const valueParser = require_lib();
162
162
  const { stringify } = valueParser;
@@ -281,7 +281,7 @@ var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module)
281
281
  }
282
282
  }));
283
283
  //#endregion
284
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/process-content.js
284
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/process-content.js
285
285
  var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
286
286
  const path$2 = __require("path");
287
287
  let sugarss;
@@ -315,7 +315,7 @@ var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) =
315
315
  }
316
316
  }));
317
317
  //#endregion
318
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/parse-styles.js
318
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/parse-styles.js
319
319
  var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
320
320
  const path$1 = __require("path");
321
321
  const dataURL = require_data_url();
@@ -418,7 +418,7 @@ var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
418
418
  module.exports = parseStyles;
419
419
  }));
420
420
  //#endregion
421
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/index.js
421
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/index.js
422
422
  var require_postcss_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
423
423
  const path = __require("path");
424
424
  const applyConditions = require_apply_conditions();
@@ -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.1.14_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
34
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.19_typescript@6.0.2_vite@packages+vite/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,10 +41,14 @@ interface StartOptions {
41
41
  open?: boolean;
42
42
  }
43
43
  //#endregion
44
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.14_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/config.d.ts
44
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.19_typescript@6.0.2_vite@packages+vite/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;
48
+ /**
49
+ * Vite environments to enable DevTools for. Defaults to all environments.
50
+ */
51
+ environments?: string[];
48
52
  /**
49
53
  * Disable client authentication.
50
54
  *
@@ -3768,7 +3772,7 @@ declare const defaultAllowedOrigins: RegExp;
3768
3772
  type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
3769
3773
  declare const createFilter: (include?: FilterPattern, exclude?: FilterPattern, options?: {
3770
3774
  resolve?: string | false | null;
3771
- }) => (id: string | unknown) => boolean;
3775
+ }) => (id: unknown) => boolean;
3772
3776
  declare const rollupVersion = "4.23.0";
3773
3777
  declare function normalizePath(id: string): string;
3774
3778
  declare const isCSSRequest: (request: string) => boolean;
@@ -249,7 +249,7 @@ declare class EvaluatedModuleNode {
249
249
  evaluated: boolean;
250
250
  meta: ResolvedResult | undefined;
251
251
  promise: Promise<any> | undefined;
252
- exports: any | undefined;
252
+ exports: any;
253
253
  file: string;
254
254
  map: DecodedMap | undefined;
255
255
  constructor(id: string, url: string);
@@ -90,12 +90,12 @@ const isAbsolute = function(p) {
90
90
  return segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute(p) ? "/" : ".");
91
91
  }, textDecoder = new TextDecoder(), decodeBase64 = typeof Buffer == "function" && typeof Buffer.from == "function" ? (base64) => Buffer.from(base64, "base64").toString("utf-8") : (base64) => textDecoder.decode(Uint8Array.from(atob(base64), (c) => c.charCodeAt(0))), percentRegEx = /%/g, backslashRegEx = /\\/g, newlineRegEx = /\n/g, carriageReturnRegEx = /\r/g, tabRegEx = /\t/g, questionRegex = /\?/g, hashRegex = /#/g;
92
92
  function encodePathChars(filepath) {
93
- return filepath.indexOf("%") !== -1 && (filepath = filepath.replace(percentRegEx, "%25")), !isWindows && filepath.indexOf("\\") !== -1 && (filepath = filepath.replace(backslashRegEx, "%5C")), filepath.indexOf("\n") !== -1 && (filepath = filepath.replace(newlineRegEx, "%0A")), filepath.indexOf("\r") !== -1 && (filepath = filepath.replace(carriageReturnRegEx, "%0D")), filepath.indexOf(" ") !== -1 && (filepath = filepath.replace(tabRegEx, "%09")), filepath;
93
+ return filepath.includes("%") && (filepath = filepath.replace(percentRegEx, "%25")), !isWindows && filepath.includes("\\") && (filepath = filepath.replace(backslashRegEx, "%5C")), filepath.includes("\n") && (filepath = filepath.replace(newlineRegEx, "%0A")), filepath.includes("\r") && (filepath = filepath.replace(carriageReturnRegEx, "%0D")), filepath.includes(" ") && (filepath = filepath.replace(tabRegEx, "%09")), filepath;
94
94
  }
95
95
  const posixDirname = dirname, posixResolve = resolve;
96
96
  function posixPathToFileHref(posixPath) {
97
97
  let resolved = posixResolve(posixPath), filePathLast = posixPath.charCodeAt(posixPath.length - 1);
98
- return (filePathLast === 47 || isWindows && filePathLast === 92) && resolved[resolved.length - 1] !== "/" && (resolved += "/"), resolved = encodePathChars(resolved), resolved.indexOf("?") !== -1 && (resolved = resolved.replace(questionRegex, "%3F")), resolved.indexOf("#") !== -1 && (resolved = resolved.replace(hashRegex, "%23")), new URL(`file://${resolved}`).href;
98
+ return (filePathLast === 47 || isWindows && filePathLast === 92) && resolved[resolved.length - 1] !== "/" && (resolved += "/"), resolved = encodePathChars(resolved), resolved.includes("?") && (resolved = resolved.replace(questionRegex, "%3F")), resolved.includes("#") && (resolved = resolved.replace(hashRegex, "%23")), new URL(`file://${resolved}`).href;
99
99
  }
100
100
  function toWindowsPath(path) {
101
101
  return path.replace(/\//g, "\\");
@@ -526,7 +526,7 @@ const {${missingBindings.join(", ")}} = pkg;
526
526
  }
527
527
  }
528
528
  //#endregion
529
- //#region ../../node_modules/.pnpm/nanoid@5.1.9/node_modules/nanoid/non-secure/index.js
529
+ //#region ../../node_modules/.pnpm/nanoid@5.1.11/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];
@@ -652,14 +652,14 @@ const createInvokeableTransport = (transport) => {
652
652
  return {
653
653
  async connect({ onMessage, onDisconnection }) {
654
654
  let socket = options.createConnection();
655
- socket.addEventListener("message", async ({ data }) => {
655
+ socket.addEventListener("message", ({ data }) => {
656
656
  onMessage(JSON.parse(data));
657
657
  });
658
658
  let isOpened = socket.readyState === socket.OPEN;
659
659
  isOpened || await new Promise((resolve, reject) => {
660
660
  socket.addEventListener("open", () => {
661
661
  isOpened = !0, resolve();
662
- }, { once: !0 }), socket.addEventListener("close", async () => {
662
+ }, { once: !0 }), socket.addEventListener("close", () => {
663
663
  if (!isOpened) {
664
664
  reject(/* @__PURE__ */ Error("WebSocket closed without opened."));
665
665
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "8.0.9",
3
+ "version": "8.0.11",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -62,15 +62,15 @@
62
62
  "dependencies": {
63
63
  "lightningcss": "^1.32.0",
64
64
  "picomatch": "^4.0.4",
65
- "postcss": "^8.5.10",
66
- "rolldown": "1.0.0-rc.16",
65
+ "postcss": "^8.5.14",
66
+ "rolldown": "1.0.0-rc.18",
67
67
  "tinyglobby": "^0.2.16"
68
68
  },
69
69
  "optionalDependencies": {
70
70
  "fsevents": "~2.3.3"
71
71
  },
72
72
  "devDependencies": {
73
- "@babel/parser": "^7.29.2",
73
+ "@babel/parser": "^7.29.3",
74
74
  "@jridgewell/remapping": "^2.3.5",
75
75
  "@jridgewell/trace-mapping": "^0.3.31",
76
76
  "@polka/compression": "^1.0.0-next.25",
@@ -80,10 +80,10 @@
80
80
  "@vercel/detect-agent": "^1.2.3",
81
81
  "@types/escape-html": "^1.0.4",
82
82
  "@types/pnpapi": "^0.0.5",
83
- "@vitest/utils": "4.1.4",
84
- "@vitejs/devtools": "^0.1.14",
83
+ "@vitest/utils": "4.1.5",
84
+ "@vitejs/devtools": "^0.1.19",
85
85
  "artichokie": "^0.4.3",
86
- "baseline-browser-mapping": "^2.10.20",
86
+ "baseline-browser-mapping": "^2.10.27",
87
87
  "cac": "^7.0.0",
88
88
  "chokidar": "^3.6.0",
89
89
  "connect": "^3.7.0",
@@ -102,32 +102,32 @@
102
102
  "magic-string": "^0.30.21",
103
103
  "mlly": "^1.8.2",
104
104
  "mrmime": "^2.0.1",
105
- "nanoid": "^5.1.9",
105
+ "nanoid": "^5.1.11",
106
106
  "obug": "^1.0.2",
107
107
  "open": "^10.2.0",
108
108
  "parse5": "^8.0.1",
109
109
  "pathe": "^2.0.3",
110
- "periscopic": "^4.0.2",
110
+ "periscopic": "^4.0.3",
111
111
  "picocolors": "^1.1.1",
112
112
  "postcss-import": "^16.1.1",
113
113
  "postcss-load-config": "^6.0.1",
114
114
  "postcss-modules": "^6.0.1",
115
115
  "premove": "^4.0.0",
116
116
  "resolve.exports": "^2.0.3",
117
- "rolldown-plugin-dts": "^0.23.2",
117
+ "rolldown-plugin-dts": "^0.24.1",
118
118
  "rollup": "^4.59.0",
119
119
  "rollup-plugin-license": "^3.7.1",
120
120
  "sass": "^1.99.0",
121
121
  "sass-embedded": "^1.99.0",
122
122
  "sirv": "^3.0.2",
123
123
  "strip-literal": "^3.1.0",
124
- "terser": "^5.46.1",
125
- "ufo": "^1.6.3",
124
+ "terser": "^5.46.2",
125
+ "ufo": "^1.6.4",
126
126
  "ws": "^8.20.0"
127
127
  },
128
128
  "peerDependencies": {
129
129
  "@types/node": "^20.19.0 || >=22.12.0",
130
- "@vitejs/devtools": "^0.1.0",
130
+ "@vitejs/devtools": "^0.1.18",
131
131
  "esbuild": "^0.27.0 || ^0.28.0",
132
132
  "jiti": ">=1.21.0",
133
133
  "less": "^4.0.0",
@@ -184,7 +184,7 @@
184
184
  "build-types": "pnpm build-types-roll && pnpm build-types-check",
185
185
  "build-types-roll": "rolldown --config rolldown.dts.config.ts",
186
186
  "build-types-check": "tsc --project tsconfig.check.json",
187
- "typecheck": "tsc && tsc -p src/node && tsc -p src/module-runner && tsc -p src/shared && tsc -p src/node/__tests_dts__ && tsc -p src/module-runner/__tests_dts__",
187
+ "typecheck": "tsc && tsc -p src/node && tsc -p src/client && tsc -p src/module-runner && tsc -p src/shared && tsc -p src/node/__tests_dts__ && tsc -p src/module-runner/__tests_dts__",
188
188
  "lint": "eslint --cache --ext .ts src/**",
189
189
  "format": "oxfmt",
190
190
  "generate-target": "tsx scripts/generateTarget.ts"