vite 8.2.2 → 8.3.0-beta.1
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/bin/vite.js +17 -6
- package/dist/client/bundledDevClient.mjs +79 -44
- package/dist/client/client.mjs +288 -260
- package/dist/node/chunks/build.js +19 -19
- package/dist/node/chunks/node.js +29996 -29685
- package/dist/node/chunks/postcss-import.js +10 -10
- package/dist/node/cli.js +12 -8
- package/dist/node/index.d.ts +1568 -1577
- package/dist/node/index.js +1 -1
- package/dist/node/module-runner.d.ts +1 -1
- package/dist/node/module-runner.js +192 -195
- package/package.json +14 -14
- package/types/customEvent.d.ts +2 -0
- package/types/hmrPayload.d.ts +2 -0
- package/types/internal/cssPreprocessorOptions.d.ts +2 -2
- package/types/internal/devtoolsOptions.d.ts +9 -0
|
@@ -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-modules@9.0.1_postcss@8.5.
|
|
3
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.28/node_modules/postcss-modules/build/fs.js
|
|
4
4
|
var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
function _export(target, all) {
|
|
@@ -34,7 +34,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34
34
|
}
|
|
35
35
|
}));
|
|
36
36
|
//#endregion
|
|
37
|
-
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.
|
|
37
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.28/node_modules/postcss-modules/build/unquote.js
|
|
38
38
|
var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
Object.defineProperty(exports, "default", {
|
|
@@ -52,7 +52,7 @@ var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
52
52
|
}
|
|
53
53
|
}));
|
|
54
54
|
//#endregion
|
|
55
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
55
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/replaceValueSymbols.js
|
|
56
56
|
var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
57
57
|
const matchValueName = /[$]?[\w-]+/g;
|
|
58
58
|
const replaceValueSymbols = (value, replacements) => {
|
|
@@ -69,7 +69,7 @@ var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
69
69
|
module.exports = replaceValueSymbols;
|
|
70
70
|
}));
|
|
71
71
|
//#endregion
|
|
72
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
72
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/replaceSymbols.js
|
|
73
73
|
var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
74
74
|
const replaceValueSymbols = require_replaceValueSymbols();
|
|
75
75
|
const replaceSymbols = (css, replacements) => {
|
|
@@ -82,7 +82,7 @@ var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
82
82
|
module.exports = replaceSymbols;
|
|
83
83
|
}));
|
|
84
84
|
//#endregion
|
|
85
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
85
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/extractICSS.js
|
|
86
86
|
var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
87
87
|
const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
|
|
88
88
|
const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
|
|
@@ -136,7 +136,7 @@ var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
136
136
|
module.exports = extractICSS;
|
|
137
137
|
}));
|
|
138
138
|
//#endregion
|
|
139
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
139
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/createICSSRules.js
|
|
140
140
|
var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
141
141
|
const createImports = (imports, postcss, mode = "rule") => {
|
|
142
142
|
return Object.keys(imports).map((path) => {
|
|
@@ -180,7 +180,7 @@ var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
180
180
|
module.exports = createICSSRules;
|
|
181
181
|
}));
|
|
182
182
|
//#endregion
|
|
183
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
183
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/index.js
|
|
184
184
|
var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
185
185
|
module.exports = {
|
|
186
186
|
replaceValueSymbols: require_replaceValueSymbols(),
|
|
@@ -190,7 +190,7 @@ var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
190
190
|
};
|
|
191
191
|
}));
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.
|
|
193
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.28/node_modules/postcss-modules/build/Parser.js
|
|
194
194
|
var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
195
195
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
196
196
|
Object.defineProperty(exports, "default", {
|
|
@@ -262,7 +262,7 @@ var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
262
262
|
};
|
|
263
263
|
}));
|
|
264
264
|
//#endregion
|
|
265
|
-
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.
|
|
265
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.28/node_modules/postcss-modules/build/saveJSON.js
|
|
266
266
|
var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
267
267
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
268
268
|
Object.defineProperty(exports, "default", {
|
|
@@ -944,7 +944,7 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
944
944
|
module.exports = camelCase;
|
|
945
945
|
}));
|
|
946
946
|
//#endregion
|
|
947
|
-
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.
|
|
947
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.28/node_modules/postcss-modules/build/localsConvention.js
|
|
948
948
|
var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
949
949
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
950
950
|
Object.defineProperty(exports, "makeLocalsConventionReducer", {
|
|
@@ -999,7 +999,7 @@ var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
999
999
|
}
|
|
1000
1000
|
}));
|
|
1001
1001
|
//#endregion
|
|
1002
|
-
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.
|
|
1002
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.28/node_modules/postcss-modules/build/FileSystemLoader.js
|
|
1003
1003
|
var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1004
1004
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1005
1005
|
Object.defineProperty(exports, "default", {
|
|
@@ -1088,7 +1088,7 @@ var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1088
1088
|
};
|
|
1089
1089
|
}));
|
|
1090
1090
|
//#endregion
|
|
1091
|
-
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
|
1091
|
+
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.28/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
|
|
1092
1092
|
var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1093
1093
|
const PERMANENT_MARKER = 2;
|
|
1094
1094
|
const TEMPORARY_MARKER = 1;
|
|
@@ -1127,7 +1127,7 @@ var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
1127
1127
|
module.exports = topologicalSort;
|
|
1128
1128
|
}));
|
|
1129
1129
|
//#endregion
|
|
1130
|
-
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
|
1130
|
+
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.28/node_modules/postcss-modules-extract-imports/src/index.js
|
|
1131
1131
|
var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1132
1132
|
const topologicalSort = require_topologicalSort();
|
|
1133
1133
|
const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
@@ -4654,7 +4654,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4654
4654
|
module.exports = exports.default;
|
|
4655
4655
|
}));
|
|
4656
4656
|
//#endregion
|
|
4657
|
-
//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.
|
|
4657
|
+
//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.28/node_modules/postcss-modules-local-by-default/src/index.js
|
|
4658
4658
|
var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4659
4659
|
const selectorParser = require_dist();
|
|
4660
4660
|
const valueParser = require_lib();
|
|
@@ -5050,7 +5050,7 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5050
5050
|
module.exports.postcss = true;
|
|
5051
5051
|
}));
|
|
5052
5052
|
//#endregion
|
|
5053
|
-
//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.
|
|
5053
|
+
//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.28/node_modules/postcss-modules-scope/src/index.js
|
|
5054
5054
|
var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5055
5055
|
const selectorParser = require_dist();
|
|
5056
5056
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -5228,7 +5228,7 @@ var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5228
5228
|
module.exports = hash;
|
|
5229
5229
|
}));
|
|
5230
5230
|
//#endregion
|
|
5231
|
-
//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.
|
|
5231
|
+
//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.28/node_modules/postcss-modules-values/src/index.js
|
|
5232
5232
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5233
5233
|
const ICSSUtils = require_src$4();
|
|
5234
5234
|
const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
@@ -5315,7 +5315,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5315
5315
|
module.exports.postcss = true;
|
|
5316
5316
|
}));
|
|
5317
5317
|
//#endregion
|
|
5318
|
-
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.
|
|
5318
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.28/node_modules/postcss-modules/build/scoping.js
|
|
5319
5319
|
var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5320
5320
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5321
5321
|
function _export(target, all) {
|
|
@@ -5394,7 +5394,7 @@ var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5394
5394
|
}
|
|
5395
5395
|
}));
|
|
5396
5396
|
//#endregion
|
|
5397
|
-
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.
|
|
5397
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.28/node_modules/postcss-modules/build/pluginFactory.js
|
|
5398
5398
|
var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5399
5399
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5400
5400
|
Object.defineProperty(exports, "makePlugin", {
|
|
@@ -5476,7 +5476,7 @@ var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5476
5476
|
}
|
|
5477
5477
|
}));
|
|
5478
5478
|
//#endregion
|
|
5479
|
-
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.
|
|
5479
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.28/node_modules/postcss-modules/build/index.js
|
|
5480
5480
|
var require_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5481
5481
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5482
5482
|
const _fs = __require("fs");
|