vite 8.0.13 → 8.0.15

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 { H as __require, z as __commonJSMin } from "./logger.js";
2
2
  import { t as require_lib } from "./lib.js";
3
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/format-import-prelude.js
3
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/base64-encoded-import.js
18
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/apply-conditions.js
31
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/apply-raws.js
106
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/apply-styles.js
120
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/data-url.js
140
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/parse-statements.js
159
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/process-content.js
284
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/parse-styles.js
318
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/index.js
421
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.21_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
34
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.3.1_typescript@6.0.3_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,7 +41,7 @@ interface StartOptions {
41
41
  open?: boolean;
42
42
  }
43
43
  //#endregion
44
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.21_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/config.d.ts
44
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.3.1_typescript@6.0.3_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;
@@ -2999,6 +2999,14 @@ type PluginOption = Thenable<Plugin | {
2999
2999
  */
3000
3000
  declare function perEnvironmentPlugin(name: string, applyToEnvironment: (environment: PartialEnvironment) => boolean | Promise<boolean> | PluginOption): Plugin;
3001
3001
  //#endregion
3002
+ //#region src/node/idResolver.d.ts
3003
+ type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: string, aliasOnly?: boolean) => Promise<string | undefined>;
3004
+ /**
3005
+ * Create an internal resolver to be used in special scenarios, e.g.
3006
+ * optimizer and handling css @imports
3007
+ */
3008
+ declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
3009
+ //#endregion
3002
3010
  //#region src/node/plugins/css.d.ts
3003
3011
  interface CSSOptions {
3004
3012
  /**
@@ -3673,14 +3681,6 @@ declare function loadConfigFromFile(configEnv: ConfigEnv, configFile?: string, c
3673
3681
  dependencies: string[];
3674
3682
  } | null>;
3675
3683
  //#endregion
3676
- //#region src/node/idResolver.d.ts
3677
- type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: string, aliasOnly?: boolean) => Promise<string | undefined>;
3678
- /**
3679
- * Create an internal resolver to be used in special scenarios, e.g.
3680
- * optimizer and handling css @imports
3681
- */
3682
- declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
3683
- //#endregion
3684
3684
  //#region src/node/server/middlewares/error.d.ts
3685
3685
  declare function buildErrorMessage(err: RollupError, args?: string[], includeStack?: boolean): string;
3686
3686
  //#endregion
@@ -645,17 +645,23 @@ const createInvokeableTransport = (transport) => {
645
645
  async send(data) {
646
646
  if (invokeableTransport.send) {
647
647
  if (!isConnected) if (connectingPromise) await connectingPromise;
648
- else throw Error("send was called before connect");
648
+ else throw new SendBeforeConnectError("send was called before connect");
649
649
  await invokeableTransport.send(data);
650
650
  }
651
651
  },
652
652
  async invoke(name, data) {
653
653
  if (!isConnected) if (connectingPromise) await connectingPromise;
654
- else throw Error("invoke was called before connect");
654
+ else throw new SendBeforeConnectError("invoke was called before connect");
655
655
  return invokeableTransport.invoke(name, data);
656
656
  }
657
657
  };
658
- }, createWebSocketModuleRunnerTransport = (options) => {
658
+ };
659
+ var SendBeforeConnectError = class extends Error {
660
+ constructor(message) {
661
+ super(message), this.name = "SendBeforeConnectError";
662
+ }
663
+ };
664
+ const createWebSocketModuleRunnerTransport = (options) => {
659
665
  let pingInterval = options.pingInterval ?? 3e4, ws, pingIntervalId;
660
666
  return {
661
667
  async connect({ onMessage, onDisconnection }) {
@@ -1051,7 +1057,6 @@ function createImportMetaResolver() {
1051
1057
  function importMetaResolveWithCustomHook(specifier, importer) {
1052
1058
  return import.meta.resolve(`${customizationHookNamespace}${JSON.stringify([specifier, importer])}`);
1053
1059
  }
1054
- `${customizationHookNamespace}`;
1055
1060
  //#endregion
1056
1061
  //#region src/module-runner/createImportMeta.ts
1057
1062
  const envProxy = new Proxy({}, { get(_, p) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "8.0.13",
3
+ "version": "8.0.15",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -62,28 +62,28 @@
62
62
  "dependencies": {
63
63
  "lightningcss": "^1.32.0",
64
64
  "picomatch": "^4.0.4",
65
- "postcss": "^8.5.14",
66
- "rolldown": "1.0.1",
67
- "tinyglobby": "^0.2.16"
65
+ "postcss": "^8.5.15",
66
+ "rolldown": "1.0.3",
67
+ "tinyglobby": "^0.2.17"
68
68
  },
69
69
  "optionalDependencies": {
70
70
  "fsevents": "~2.3.3"
71
71
  },
72
72
  "devDependencies": {
73
- "@babel/parser": "^7.29.3",
73
+ "@babel/parser": "^7.29.7",
74
74
  "@jridgewell/remapping": "^2.3.5",
75
75
  "@jridgewell/trace-mapping": "^0.3.31",
76
76
  "@polka/compression": "^1.0.0-next.25",
77
77
  "@rollup/plugin-alias": "^6.0.0",
78
78
  "@rollup/plugin-dynamic-import-vars": "2.1.4",
79
- "@rollup/pluginutils": "^5.3.0",
79
+ "@rollup/pluginutils": "^5.4.0",
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.5",
84
- "@vitejs/devtools": "^0.1.21",
83
+ "@vitest/utils": "4.1.7",
84
+ "@vitejs/devtools": "^0.3.1",
85
85
  "artichokie": "^0.4.3",
86
- "baseline-browser-mapping": "^2.10.29",
86
+ "baseline-browser-mapping": "^2.10.33",
87
87
  "cac": "^7.0.0",
88
88
  "chokidar": "^3.6.0",
89
89
  "connect": "^3.7.0",
@@ -98,7 +98,7 @@
98
98
  "etag": "^1.8.1",
99
99
  "host-validation-middleware": "^0.1.4",
100
100
  "http-proxy-3": "^1.23.2",
101
- "launch-editor-middleware": "^2.13.2",
101
+ "launch-editor-middleware": "^2.14.0",
102
102
  "magic-string": "^0.30.21",
103
103
  "mlly": "^1.8.2",
104
104
  "mrmime": "^2.0.1",
@@ -114,16 +114,16 @@
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.25.0",
117
+ "rolldown-plugin-dts": "^0.25.2",
118
118
  "rollup": "^4.59.0",
119
119
  "rollup-plugin-license": "^3.7.1",
120
- "sass": "^1.99.0",
121
- "sass-embedded": "^1.99.0",
120
+ "sass": "^1.100.0",
121
+ "sass-embedded": "^1.100.0",
122
122
  "sirv": "^3.0.2",
123
123
  "strip-literal": "^3.1.0",
124
- "terser": "^5.47.1",
124
+ "terser": "^5.48.0",
125
125
  "ufo": "^1.6.4",
126
- "ws": "^8.20.0"
126
+ "ws": "^8.21.0"
127
127
  },
128
128
  "peerDependencies": {
129
129
  "@types/node": "^20.19.0 || >=22.12.0",