vite 8.0.12 → 8.0.14
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 +61 -27
- package/dist/node/chunks/build.js +20 -20
- package/dist/node/chunks/lib.js +1 -1
- package/dist/node/chunks/logger.js +37 -2
- package/dist/node/chunks/node.js +255 -163
- package/dist/node/chunks/postcss-import.js +11 -11
- package/dist/node/cli.js +1 -2
- package/dist/node/index.d.ts +28 -13
- package/dist/node/module-runner.js +9 -4
- package/package.json +8 -8
- package/types/customEvent.d.ts +1 -1
- package/dist/node/chunks/chunk.js +0 -37
package/dist/client/client.mjs
CHANGED
|
@@ -8,7 +8,7 @@ let nanoid = (size = 21) => {
|
|
|
8
8
|
return id;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region \0@oxc-project+runtime@0.
|
|
11
|
+
//#region \0@oxc-project+runtime@0.132.0/helpers/typeof.js
|
|
12
12
|
function _typeof(o) {
|
|
13
13
|
"@babel/helpers - typeof";
|
|
14
14
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -18,7 +18,7 @@ function _typeof(o) {
|
|
|
18
18
|
}, _typeof(o);
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region \0@oxc-project+runtime@0.
|
|
21
|
+
//#region \0@oxc-project+runtime@0.132.0/helpers/toPrimitive.js
|
|
22
22
|
function toPrimitive(t, r) {
|
|
23
23
|
if ("object" != _typeof(t) || !t) return t;
|
|
24
24
|
var e = t[Symbol.toPrimitive];
|
|
@@ -30,13 +30,13 @@ function toPrimitive(t, r) {
|
|
|
30
30
|
return ("string" === r ? String : Number)(t);
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.132.0/helpers/toPropertyKey.js
|
|
34
34
|
function toPropertyKey(t) {
|
|
35
35
|
var i = toPrimitive(t, "string");
|
|
36
36
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region \0@oxc-project+runtime@0.
|
|
39
|
+
//#region \0@oxc-project+runtime@0.132.0/helpers/defineProperty.js
|
|
40
40
|
function _defineProperty(e, r, t) {
|
|
41
41
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
42
42
|
value: t,
|
|
@@ -381,16 +381,22 @@ const normalizeModuleRunnerTransport = (transport) => {
|
|
|
381
381
|
async send(data) {
|
|
382
382
|
if (!invokeableTransport.send) return;
|
|
383
383
|
if (!isConnected) if (connectingPromise) await connectingPromise;
|
|
384
|
-
else throw new
|
|
384
|
+
else throw new SendBeforeConnectError("send was called before connect");
|
|
385
385
|
await invokeableTransport.send(data);
|
|
386
386
|
},
|
|
387
387
|
async invoke(name, data) {
|
|
388
388
|
if (!isConnected) if (connectingPromise) await connectingPromise;
|
|
389
|
-
else throw new
|
|
389
|
+
else throw new SendBeforeConnectError("invoke was called before connect");
|
|
390
390
|
return invokeableTransport.invoke(name, data);
|
|
391
391
|
}
|
|
392
392
|
};
|
|
393
393
|
};
|
|
394
|
+
var SendBeforeConnectError = class extends Error {
|
|
395
|
+
constructor(message) {
|
|
396
|
+
super(message);
|
|
397
|
+
this.name = "SendBeforeConnectError";
|
|
398
|
+
}
|
|
399
|
+
};
|
|
394
400
|
const createWebSocketModuleRunnerTransport = (options) => {
|
|
395
401
|
const pingInterval = options.pingInterval ?? 3e4;
|
|
396
402
|
let ws;
|
|
@@ -474,10 +480,10 @@ var Queue = class {
|
|
|
474
480
|
};
|
|
475
481
|
//#endregion
|
|
476
482
|
//#region src/shared/forwardConsole.ts
|
|
477
|
-
function setupForwardConsoleHandler(transport, options) {
|
|
483
|
+
function setupForwardConsoleHandler(transport, options, console = globalThis.console) {
|
|
478
484
|
if (!options.enabled) return;
|
|
479
|
-
function sendError(type, error) {
|
|
480
|
-
transport.send({
|
|
485
|
+
async function sendError(type, error) {
|
|
486
|
+
await transport.send({
|
|
481
487
|
type: "custom",
|
|
482
488
|
event: "vite:forward-console",
|
|
483
489
|
data: {
|
|
@@ -490,19 +496,28 @@ function setupForwardConsoleHandler(transport, options) {
|
|
|
490
496
|
}
|
|
491
497
|
});
|
|
492
498
|
}
|
|
493
|
-
function sendLog(level, args) {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
type: "log",
|
|
499
|
+
async function sendLog(level, args) {
|
|
500
|
+
try {
|
|
501
|
+
await transport.send({
|
|
502
|
+
type: "custom",
|
|
503
|
+
event: "vite:forward-console",
|
|
499
504
|
data: {
|
|
500
|
-
|
|
501
|
-
|
|
505
|
+
type: "log",
|
|
506
|
+
data: {
|
|
507
|
+
level,
|
|
508
|
+
message: formatConsoleArgs(args)
|
|
509
|
+
}
|
|
502
510
|
}
|
|
511
|
+
});
|
|
512
|
+
} catch (err) {
|
|
513
|
+
try {
|
|
514
|
+
await sendError("unhandled-rejection", err);
|
|
515
|
+
} catch (err) {
|
|
516
|
+
if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
|
|
503
517
|
}
|
|
504
|
-
}
|
|
518
|
+
}
|
|
505
519
|
}
|
|
520
|
+
const originalConsoleError = console.error;
|
|
506
521
|
for (const level of options.logLevels) {
|
|
507
522
|
const original = console[level];
|
|
508
523
|
if (typeof original !== "function") continue;
|
|
@@ -512,11 +527,20 @@ function setupForwardConsoleHandler(transport, options) {
|
|
|
512
527
|
};
|
|
513
528
|
}
|
|
514
529
|
if (options.unhandledErrors && typeof window !== "undefined") {
|
|
515
|
-
window.addEventListener("error", (event) => {
|
|
516
|
-
|
|
530
|
+
window.addEventListener("error", async (event) => {
|
|
531
|
+
const error = event.error ?? (event.message ? new Error(event.message) : event);
|
|
532
|
+
try {
|
|
533
|
+
await sendError("error", error);
|
|
534
|
+
} catch (err) {
|
|
535
|
+
if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
|
|
536
|
+
}
|
|
517
537
|
});
|
|
518
|
-
window.addEventListener("unhandledrejection", (event) => {
|
|
519
|
-
|
|
538
|
+
window.addEventListener("unhandledrejection", async (event) => {
|
|
539
|
+
try {
|
|
540
|
+
await sendError("unhandled-rejection", event.reason);
|
|
541
|
+
} catch (err) {
|
|
542
|
+
if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
|
|
543
|
+
}
|
|
520
544
|
});
|
|
521
545
|
}
|
|
522
546
|
}
|
|
@@ -1218,20 +1242,30 @@ if (isBundleMode && typeof DevRuntime !== "undefined") {
|
|
|
1218
1242
|
}
|
|
1219
1243
|
applyUpdates(_boundaries) {}
|
|
1220
1244
|
}
|
|
1221
|
-
const
|
|
1245
|
+
const clientId = nanoid();
|
|
1246
|
+
transport.send({
|
|
1247
|
+
type: "custom",
|
|
1248
|
+
event: "vite:module-loaded",
|
|
1249
|
+
data: {
|
|
1250
|
+
modules: [],
|
|
1251
|
+
clientId
|
|
1252
|
+
}
|
|
1253
|
+
});
|
|
1254
|
+
(_ref = globalThis).__rolldown_runtime__ ?? (_ref.__rolldown_runtime__ = new ViteDevRuntime({ send(message) {
|
|
1222
1255
|
switch (message.type) {
|
|
1223
1256
|
case "hmr:module-registered":
|
|
1224
1257
|
transport.send({
|
|
1225
1258
|
type: "custom",
|
|
1226
1259
|
event: "vite:module-loaded",
|
|
1227
|
-
data: {
|
|
1260
|
+
data: {
|
|
1261
|
+
modules: message.modules.slice(),
|
|
1262
|
+
clientId
|
|
1263
|
+
}
|
|
1228
1264
|
});
|
|
1229
1265
|
break;
|
|
1230
1266
|
default: throw new Error(`Unknown message type: ${JSON.stringify(message)}`);
|
|
1231
1267
|
}
|
|
1232
|
-
} };
|
|
1233
|
-
const clientId = nanoid();
|
|
1234
|
-
(_ref = globalThis).__rolldown_runtime__ ?? (_ref.__rolldown_runtime__ = new ViteDevRuntime(wrappedSocket, clientId));
|
|
1268
|
+
} }, clientId));
|
|
1235
1269
|
}
|
|
1236
1270
|
//#endregion
|
|
1237
1271
|
export { ErrorOverlay, createHotContext, injectQuery, removeStyle, updateStyle };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
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-modules@6.0.1_postcss@8.5.
|
|
3
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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.15/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/lib.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as __commonJSMin } from "./logger.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js
|
|
3
3
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
4
|
var openParentheses = "(".charCodeAt(0);
|
|
@@ -1,8 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import path, { resolve } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import readline from "node:readline";
|
|
6
|
+
//#region \0rolldown/runtime.js
|
|
7
|
+
var __create = Object.create;
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
11
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
12
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13
|
+
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
14
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
15
|
+
var __exportAll = (all, no_symbols) => {
|
|
16
|
+
let target = {};
|
|
17
|
+
for (var name in all) __defProp(target, name, {
|
|
18
|
+
get: all[name],
|
|
19
|
+
enumerable: true
|
|
20
|
+
});
|
|
21
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
22
|
+
return target;
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
26
|
+
key = keys[i];
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
28
|
+
get: ((k) => from[k]).bind(null, key),
|
|
29
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return to;
|
|
33
|
+
};
|
|
34
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
35
|
+
value: mod,
|
|
36
|
+
enumerable: true
|
|
37
|
+
}) : target, mod));
|
|
38
|
+
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
39
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
40
|
+
//#endregion
|
|
6
41
|
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
7
42
|
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8
43
|
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
@@ -319,4 +354,4 @@ function printServerUrls(urls, optionsHost, info) {
|
|
|
319
354
|
if (urls.network.length === 0 && optionsHost === void 0) info(import_picocolors.default.dim(` ${import_picocolors.default.green("➜")} ${import_picocolors.default.bold("Network")}: use `) + import_picocolors.default.bold("--host") + import_picocolors.default.dim(" to expose"));
|
|
320
355
|
}
|
|
321
356
|
//#endregion
|
|
322
|
-
export { OPTIMIZABLE_ENTRY_RE as A, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR as C, JS_TYPES_RE as D, FS_PREFIX as E, defaultAllowedOrigins as F, loopbackHosts as I, wildcardHosts as L, SPECIAL_QUERY_RE as M, VERSION as N, KNOWN_ASSET_TYPES as O, VITE_PACKAGE_DIR as P, require_picocolors as R, ENV_PUBLIC_PATH as S, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET as T, DEFAULT_SERVER_CONDITIONS as _, CLIENT_ENTRY as a, DEV_PROD_CONDITION as b, DEFAULT_ASSETS_INLINE_LIMIT as c, DEFAULT_CLIENT_MAIN_FIELDS as d, DEFAULT_CONFIG_FILES as f, DEFAULT_PREVIEW_PORT as g, DEFAULT_EXTERNAL_CONDITIONS as h, CLIENT_DIR as i, ROLLUP_HOOKS as j, METADATA_FILENAME as k, DEFAULT_ASSETS_RE as l, DEFAULT_EXTENSIONS as m, createLogger as n, CLIENT_PUBLIC_PATH as o, DEFAULT_DEV_PORT as p, printServerUrls as r, CSS_LANGS_RE as s, LogLevels as t, DEFAULT_CLIENT_CONDITIONS as u, DEFAULT_SERVER_MAIN_FIELDS as v, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR as w, ENV_ENTRY as x, DEP_VERSION_RE as y };
|
|
357
|
+
export { OPTIMIZABLE_ENTRY_RE as A, __esmMin as B, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR as C, JS_TYPES_RE as D, FS_PREFIX as E, defaultAllowedOrigins as F, __require as H, loopbackHosts as I, wildcardHosts as L, SPECIAL_QUERY_RE as M, VERSION as N, KNOWN_ASSET_TYPES as O, VITE_PACKAGE_DIR as P, require_picocolors as R, ENV_PUBLIC_PATH as S, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET as T, __toCommonJS as U, __exportAll as V, __toESM as W, DEFAULT_SERVER_CONDITIONS as _, CLIENT_ENTRY as a, DEV_PROD_CONDITION as b, DEFAULT_ASSETS_INLINE_LIMIT as c, DEFAULT_CLIENT_MAIN_FIELDS as d, DEFAULT_CONFIG_FILES as f, DEFAULT_PREVIEW_PORT as g, DEFAULT_EXTERNAL_CONDITIONS as h, CLIENT_DIR as i, ROLLUP_HOOKS as j, METADATA_FILENAME as k, DEFAULT_ASSETS_RE as l, DEFAULT_EXTENSIONS as m, createLogger as n, CLIENT_PUBLIC_PATH as o, DEFAULT_DEV_PORT as p, printServerUrls as r, CSS_LANGS_RE as s, LogLevels as t, DEFAULT_CLIENT_CONDITIONS as u, DEFAULT_SERVER_MAIN_FIELDS as v, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR as w, ENV_ENTRY as x, DEP_VERSION_RE as y, __commonJSMin as z };
|