vite 8.3.2 → 8.3.4

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 { ft as __commonJSMin, pt as __require } from "./node.js";
2
2
  import { t as require_lib } from "./lib.js";
3
- //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.28/node_modules/postcss-import/lib/format-import-prelude.js
3
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.29/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.2.0_postcss@8.5.28/node_modules/postcss-import/lib/base64-encoded-import.js
18
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.29/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.2.0_postcss@8.5.28/node_modules/postcss-import/lib/apply-conditions.js
31
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.29/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.2.0_postcss@8.5.28/node_modules/postcss-import/lib/apply-raws.js
106
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.29/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) => {
@@ -114,7 +114,7 @@ var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
114
114
  };
115
115
  }));
116
116
  //#endregion
117
- //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.28/node_modules/postcss-import/lib/apply-styles.js
117
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.29/node_modules/postcss-import/lib/apply-styles.js
118
118
  var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
119
119
  module.exports = function applyStyles(bundle, styles) {
120
120
  styles.nodes = [];
@@ -134,7 +134,7 @@ var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
134
134
  };
135
135
  }));
136
136
  //#endregion
137
- //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.28/node_modules/postcss-import/lib/data-url.js
137
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.29/node_modules/postcss-import/lib/data-url.js
138
138
  var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
139
139
  const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i;
140
140
  const base64DataURLRegexp = /^data:text\/css;base64,/i;
@@ -153,7 +153,7 @@ var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
153
153
  };
154
154
  }));
155
155
  //#endregion
156
- //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.28/node_modules/postcss-import/lib/parse-statements.js
156
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.29/node_modules/postcss-import/lib/parse-statements.js
157
157
  var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module) => {
158
158
  const valueParser = require_lib();
159
159
  const { stringify } = valueParser;
@@ -278,7 +278,7 @@ var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module)
278
278
  }
279
279
  }));
280
280
  //#endregion
281
- //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.28/node_modules/postcss-import/lib/process-content.js
281
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.29/node_modules/postcss-import/lib/process-content.js
282
282
  var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
283
283
  const path$2 = __require("path");
284
284
  let sugarss;
@@ -312,7 +312,7 @@ var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) =
312
312
  }
313
313
  }));
314
314
  //#endregion
315
- //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.28/node_modules/postcss-import/lib/parse-styles.js
315
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.29/node_modules/postcss-import/lib/parse-styles.js
316
316
  var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
317
317
  const path$1 = __require("path");
318
318
  const dataURL = require_data_url();
@@ -416,7 +416,7 @@ var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
416
416
  module.exports = parseStyles;
417
417
  }));
418
418
  //#endregion
419
- //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.28/node_modules/postcss-import/index.js
419
+ //#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.29/node_modules/postcss-import/index.js
420
420
  var require_postcss_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
421
421
  const path = __require("path");
422
422
  const applyConditions = require_apply_conditions();
@@ -1100,6 +1100,7 @@ export declare function optimizeDeps(config: ResolvedConfig, force?: boolean | u
1100
1100
  type MemoryFile = {
1101
1101
  source: string | Uint8Array;
1102
1102
  etag?: string;
1103
+ contentType?: string;
1103
1104
  };
1104
1105
  declare class MemoryFiles {
1105
1106
  private files;
@@ -3132,7 +3133,7 @@ type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: stri
3132
3133
  */
3133
3134
  export declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
3134
3135
  //#endregion
3135
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.28_tsx@4.23.15_yaml@2.9.0/node_modules/postcss-load-config/src/index.d.ts
3136
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.29_tsx@4.23.15_yaml@2.9.1/node_modules/postcss-load-config/src/index.d.ts
3136
3137
  type ConfigPlugin = Transformer | PostCSS.Plugin | Processor;
3137
3138
  interface Config {
3138
3139
  parser?: string | ProcessOptions['parser'] | false;
@@ -37,6 +37,7 @@ interface HotModule {
37
37
  interface HotCallback {
38
38
  deps: string[];
39
39
  fn: (modules: Array<ModuleNamespace | undefined>) => void;
40
+ exports?: readonly string[];
40
41
  }
41
42
  interface HMRLogger {
42
43
  error(msg: string | Error): void;
@@ -402,8 +402,8 @@ var HMRContext = class {
402
402
  else if (Array.isArray(deps)) this.acceptDeps(deps, callback);
403
403
  else throw Error("invalid hot.accept() usage.");
404
404
  }
405
- acceptExports(_, callback) {
406
- this.acceptDeps([this.ownerPath], ([mod]) => callback?.(mod));
405
+ acceptExports(exportNames, callback) {
406
+ this.acceptDeps([this.ownerPath], ([mod]) => callback?.(mod), typeof exportNames == "string" ? [exportNames] : exportNames);
407
407
  }
408
408
  dispose(cb) {
409
409
  this.hmrClient.disposeMap.set(this.ownerPath, cb);
@@ -451,14 +451,15 @@ var HMRContext = class {
451
451
  data
452
452
  });
453
453
  }
454
- acceptDeps(deps, callback = () => {}) {
454
+ acceptDeps(deps, callback = () => {}, exports) {
455
455
  let mod = this.hmrClient.hotModulesMap.get(this.ownerPath) || {
456
456
  id: this.ownerPath,
457
457
  callbacks: []
458
458
  };
459
459
  mod.callbacks.push({
460
460
  deps,
461
- fn: callback
461
+ fn: callback,
462
+ exports
462
463
  }), this.hmrClient.hotModulesMap.set(this.ownerPath, mod);
463
464
  }
464
465
  }, HMRClient = class {
@@ -1073,13 +1074,14 @@ function wrapCallSite(frame, state) {
1073
1074
  }), frame.isNative()) return state.curPosition = null, frame;
1074
1075
  let source = frame.getFileName() || frame.getScriptNameOrSourceURL();
1075
1076
  if (source) {
1076
- let position = mapSourcePosition({
1077
+ let unmapped = {
1077
1078
  name: null,
1078
1079
  source,
1079
1080
  line: frame.getLineNumber() ?? 0,
1080
1081
  column: (frame.getColumnNumber() ?? 1) - 1
1081
- });
1082
- state.curPosition = position, frame = cloneCallSite(frame);
1082
+ }, position = mapSourcePosition(unmapped);
1083
+ if (state.curPosition = position, position === unmapped && !state.nextPosition?.name && frame.getColumnNumber() != null && frame.getScriptNameOrSourceURL() === source) return frame;
1084
+ frame = cloneCallSite(frame);
1083
1085
  let originalFunctionName = frame.getFunctionName;
1084
1086
  return frame.getFunctionName = function() {
1085
1087
  let name = state.nextPosition == null ? originalFunctionName() : state.nextPosition.name || originalFunctionName();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "8.3.2",
3
+ "version": "8.3.4",
4
4
  "description": "Native-ESM powered web dev build tool",
5
5
  "keywords": [
6
6
  "build-tool",
@@ -58,8 +58,8 @@
58
58
  "dependencies": {
59
59
  "lightningcss": "^1.33.0",
60
60
  "picomatch": "^4.0.7",
61
- "postcss": "^8.5.28",
62
- "rolldown": "~1.2.11",
61
+ "postcss": "^8.5.29",
62
+ "rolldown": "~1.2.12",
63
63
  "tinyglobby": "^0.2.17"
64
64
  },
65
65
  "devDependencies": {
@@ -77,7 +77,7 @@
77
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.26",
80
+ "baseline-browser-mapping": "^2.11.27",
81
81
  "cac": "^7.0.0",
82
82
  "chokidar": "^3.6.0",
83
83
  "connect": "^3.7.0",
@@ -92,8 +92,8 @@
92
92
  "fresh-import": "^0.2.1",
93
93
  "host-validation-middleware": "^0.1.4",
94
94
  "http-proxy-3": "^1.23.3",
95
- "launch-editor-middleware": "^2.14.1",
96
- "magic-string": "^1.4.2",
95
+ "launch-editor-middleware": "^2.14.2",
96
+ "magic-string": "^1.4.3",
97
97
  "mlly": "^1.8.2",
98
98
  "mrmime": "^2.0.1",
99
99
  "nanoid": "^5.1.16",
@@ -111,8 +111,8 @@
111
111
  "rolldown-plugin-dts": "^0.28.6",
112
112
  "rollup": "^4.59.0",
113
113
  "rollup-plugin-license": "^3.7.1",
114
- "sass": "^1.105.0",
115
- "sass-embedded": "^1.105.0",
114
+ "sass": "^1.105.1",
115
+ "sass-embedded": "^1.105.1",
116
116
  "sirv": "^3.0.2",
117
117
  "strip-literal": "^4.0.0",
118
118
  "terser": "^5.51.2",