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.
- package/dist/client/client.mjs +19 -17
- package/dist/node/chunks/build.js +19 -19
- package/dist/node/chunks/dist.js +1 -1
- package/dist/node/chunks/node.js +526 -485
- package/dist/node/chunks/postcss-import.js +10 -10
- package/dist/node/index.d.ts +7 -3
- package/dist/node/module-runner.d.ts +1 -1
- package/dist/node/module-runner.js +5 -5
- package/package.json +14 -14
package/dist/client/client.mjs
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import "@vite/env";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/non-secure/index.js
|
|
3
|
+
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
4
|
+
let nanoid = (size = 21) => {
|
|
5
|
+
let id = "";
|
|
6
|
+
let i = size | 0;
|
|
7
|
+
while (i--) id += urlAlphabet[Math.random() * 64 | 0];
|
|
8
|
+
return id;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region \0@oxc-project+runtime@0.128.0/helpers/typeof.js
|
|
3
12
|
function _typeof(o) {
|
|
4
13
|
"@babel/helpers - typeof";
|
|
5
14
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -9,7 +18,7 @@ function _typeof(o) {
|
|
|
9
18
|
}, _typeof(o);
|
|
10
19
|
}
|
|
11
20
|
//#endregion
|
|
12
|
-
//#region \0@oxc-project+runtime@0.
|
|
21
|
+
//#region \0@oxc-project+runtime@0.128.0/helpers/toPrimitive.js
|
|
13
22
|
function toPrimitive(t, r) {
|
|
14
23
|
if ("object" != _typeof(t) || !t) return t;
|
|
15
24
|
var e = t[Symbol.toPrimitive];
|
|
@@ -21,13 +30,13 @@ function toPrimitive(t, r) {
|
|
|
21
30
|
return ("string" === r ? String : Number)(t);
|
|
22
31
|
}
|
|
23
32
|
//#endregion
|
|
24
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.128.0/helpers/toPropertyKey.js
|
|
25
34
|
function toPropertyKey(t) {
|
|
26
35
|
var i = toPrimitive(t, "string");
|
|
27
36
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
28
37
|
}
|
|
29
38
|
//#endregion
|
|
30
|
-
//#region \0@oxc-project+runtime@0.
|
|
39
|
+
//#region \0@oxc-project+runtime@0.128.0/helpers/defineProperty.js
|
|
31
40
|
function _defineProperty(e, r, t) {
|
|
32
41
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
33
42
|
value: t,
|
|
@@ -220,15 +229,6 @@ var HMRClient = class {
|
|
|
220
229
|
}
|
|
221
230
|
};
|
|
222
231
|
//#endregion
|
|
223
|
-
//#region ../../node_modules/.pnpm/nanoid@5.1.9/node_modules/nanoid/non-secure/index.js
|
|
224
|
-
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
225
|
-
let nanoid = (size = 21) => {
|
|
226
|
-
let id = "";
|
|
227
|
-
let i = size | 0;
|
|
228
|
-
while (i--) id += urlAlphabet[Math.random() * 64 | 0];
|
|
229
|
-
return id;
|
|
230
|
-
};
|
|
231
|
-
//#endregion
|
|
232
232
|
//#region src/shared/constants.ts
|
|
233
233
|
let SOURCEMAPPING_URL = "sourceMa";
|
|
234
234
|
SOURCEMAPPING_URL += "ppingURL";
|
|
@@ -398,7 +398,7 @@ const createWebSocketModuleRunnerTransport = (options) => {
|
|
|
398
398
|
return {
|
|
399
399
|
async connect({ onMessage, onDisconnection }) {
|
|
400
400
|
const socket = options.createConnection();
|
|
401
|
-
socket.addEventListener("message",
|
|
401
|
+
socket.addEventListener("message", ({ data }) => {
|
|
402
402
|
onMessage(JSON.parse(data));
|
|
403
403
|
});
|
|
404
404
|
let isOpened = socket.readyState === socket.OPEN;
|
|
@@ -407,7 +407,7 @@ const createWebSocketModuleRunnerTransport = (options) => {
|
|
|
407
407
|
isOpened = true;
|
|
408
408
|
resolve();
|
|
409
409
|
}, { once: true });
|
|
410
|
-
socket.addEventListener("close",
|
|
410
|
+
socket.addEventListener("close", () => {
|
|
411
411
|
if (!isOpened) {
|
|
412
412
|
reject(/* @__PURE__ */ new Error("WebSocket closed without opened."));
|
|
413
413
|
return;
|
|
@@ -1218,7 +1218,7 @@ if (isBundleMode && typeof DevRuntime !== "undefined") {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
applyUpdates(_boundaries) {}
|
|
1220
1220
|
}
|
|
1221
|
-
|
|
1221
|
+
const wrappedSocket = { send(message) {
|
|
1222
1222
|
switch (message.type) {
|
|
1223
1223
|
case "hmr:module-registered":
|
|
1224
1224
|
transport.send({
|
|
@@ -1229,7 +1229,9 @@ if (isBundleMode && typeof DevRuntime !== "undefined") {
|
|
|
1229
1229
|
break;
|
|
1230
1230
|
default: throw new Error(`Unknown message type: ${JSON.stringify(message)}`);
|
|
1231
1231
|
}
|
|
1232
|
-
} }
|
|
1232
|
+
} };
|
|
1233
|
+
const clientId = nanoid();
|
|
1234
|
+
(_ref = globalThis).__rolldown_runtime__ ?? (_ref.__rolldown_runtime__ = new ViteDevRuntime(wrappedSocket, clientId));
|
|
1233
1235
|
}
|
|
1234
1236
|
//#endregion
|
|
1235
1237
|
export { ErrorOverlay, createHotContext, injectQuery, removeStyle, updateStyle };
|
|
@@ -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-modules@6.0.1_postcss@8.5.
|
|
3
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/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
|
exports.getFileSystem = getFileSystem;
|
|
@@ -22,7 +22,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22
22
|
}
|
|
23
23
|
}));
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
25
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/unquote.js
|
|
26
26
|
var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
exports.default = unquote;
|
|
@@ -35,7 +35,7 @@ var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35
35
|
}
|
|
36
36
|
}));
|
|
37
37
|
//#endregion
|
|
38
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
38
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/replaceValueSymbols.js
|
|
39
39
|
var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40
40
|
const matchValueName = /[$]?[\w-]+/g;
|
|
41
41
|
const replaceValueSymbols = (value, replacements) => {
|
|
@@ -52,7 +52,7 @@ var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
52
52
|
module.exports = replaceValueSymbols;
|
|
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.14/node_modules/icss-utils/src/replaceSymbols.js
|
|
56
56
|
var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
57
57
|
const replaceValueSymbols = require_replaceValueSymbols();
|
|
58
58
|
const replaceSymbols = (css, replacements) => {
|
|
@@ -65,7 +65,7 @@ var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
65
65
|
module.exports = replaceSymbols;
|
|
66
66
|
}));
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
68
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/extractICSS.js
|
|
69
69
|
var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
70
70
|
const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
|
|
71
71
|
const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
|
|
@@ -119,7 +119,7 @@ var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
119
119
|
module.exports = extractICSS;
|
|
120
120
|
}));
|
|
121
121
|
//#endregion
|
|
122
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
122
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/createICSSRules.js
|
|
123
123
|
var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
124
124
|
const createImports = (imports, postcss, mode = "rule") => {
|
|
125
125
|
return Object.keys(imports).map((path) => {
|
|
@@ -163,7 +163,7 @@ var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
163
163
|
module.exports = createICSSRules;
|
|
164
164
|
}));
|
|
165
165
|
//#endregion
|
|
166
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
166
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/index.js
|
|
167
167
|
var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
168
168
|
module.exports = {
|
|
169
169
|
replaceValueSymbols: require_replaceValueSymbols(),
|
|
@@ -173,7 +173,7 @@ var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
173
173
|
};
|
|
174
174
|
}));
|
|
175
175
|
//#endregion
|
|
176
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
176
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/Parser.js
|
|
177
177
|
var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
178
178
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
179
179
|
exports.default = void 0;
|
|
@@ -241,7 +241,7 @@ var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
241
241
|
exports.default = Parser;
|
|
242
242
|
}));
|
|
243
243
|
//#endregion
|
|
244
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
244
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/saveJSON.js
|
|
245
245
|
var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
246
246
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
247
247
|
exports.default = saveJSON;
|
|
@@ -893,7 +893,7 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
893
893
|
module.exports = camelCase;
|
|
894
894
|
}));
|
|
895
895
|
//#endregion
|
|
896
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
896
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/localsConvention.js
|
|
897
897
|
var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
898
898
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
899
899
|
exports.makeLocalsConventionReducer = makeLocalsConventionReducer;
|
|
@@ -933,7 +933,7 @@ var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
933
933
|
}
|
|
934
934
|
}));
|
|
935
935
|
//#endregion
|
|
936
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
936
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/FileSystemLoader.js
|
|
937
937
|
var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
938
938
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
939
939
|
exports.default = void 0;
|
|
@@ -1018,7 +1018,7 @@ var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1018
1018
|
exports.default = FileSystemLoader;
|
|
1019
1019
|
}));
|
|
1020
1020
|
//#endregion
|
|
1021
|
-
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
|
1021
|
+
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.14/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
|
|
1022
1022
|
var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1023
1023
|
const PERMANENT_MARKER = 2;
|
|
1024
1024
|
const TEMPORARY_MARKER = 1;
|
|
@@ -1057,7 +1057,7 @@ var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
1057
1057
|
module.exports = topologicalSort;
|
|
1058
1058
|
}));
|
|
1059
1059
|
//#endregion
|
|
1060
|
-
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
|
1060
|
+
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.14/node_modules/postcss-modules-extract-imports/src/index.js
|
|
1061
1061
|
var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1062
1062
|
const topologicalSort = require_topologicalSort();
|
|
1063
1063
|
const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
@@ -4563,7 +4563,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4563
4563
|
module.exports = exports.default;
|
|
4564
4564
|
}));
|
|
4565
4565
|
//#endregion
|
|
4566
|
-
//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.
|
|
4566
|
+
//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.14/node_modules/postcss-modules-local-by-default/src/index.js
|
|
4567
4567
|
var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4568
4568
|
const selectorParser = require_dist();
|
|
4569
4569
|
const valueParser = require_lib();
|
|
@@ -4961,7 +4961,7 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4961
4961
|
module.exports.postcss = true;
|
|
4962
4962
|
}));
|
|
4963
4963
|
//#endregion
|
|
4964
|
-
//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.
|
|
4964
|
+
//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.14/node_modules/postcss-modules-scope/src/index.js
|
|
4965
4965
|
var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4966
4966
|
const selectorParser = require_dist();
|
|
4967
4967
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -5141,7 +5141,7 @@ var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5141
5141
|
module.exports = hash;
|
|
5142
5142
|
}));
|
|
5143
5143
|
//#endregion
|
|
5144
|
-
//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.
|
|
5144
|
+
//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.14/node_modules/postcss-modules-values/src/index.js
|
|
5145
5145
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5146
5146
|
const ICSSUtils = require_src$4();
|
|
5147
5147
|
const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
@@ -5228,7 +5228,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5228
5228
|
module.exports.postcss = true;
|
|
5229
5229
|
}));
|
|
5230
5230
|
//#endregion
|
|
5231
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
5231
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/scoping.js
|
|
5232
5232
|
var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5233
5233
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5234
5234
|
exports.behaviours = void 0;
|
|
@@ -5290,7 +5290,7 @@ var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5290
5290
|
}
|
|
5291
5291
|
}));
|
|
5292
5292
|
//#endregion
|
|
5293
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
5293
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/pluginFactory.js
|
|
5294
5294
|
var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5295
5295
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5296
5296
|
exports.makePlugin = makePlugin;
|
|
@@ -5364,7 +5364,7 @@ var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5364
5364
|
}
|
|
5365
5365
|
}));
|
|
5366
5366
|
//#endregion
|
|
5367
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
5367
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/index.js
|
|
5368
5368
|
var require_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5369
5369
|
var _fs = __require("fs");
|
|
5370
5370
|
var _fs2 = require_fs();
|
package/dist/node/chunks/dist.js
CHANGED