@voidzero-dev/vite-plus-core 0.2.6 → 0.2.8
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/LICENSE +35 -0
- package/dist/rolldown/cli.mjs +9 -10
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-default-runtime.mjs +116 -0
- package/dist/rolldown/experimental-index.d.mts +10 -4
- package/dist/rolldown/experimental-index.mjs +32 -16
- package/dist/rolldown/experimental-runtime-base.mjs +95 -0
- package/dist/rolldown/experimental-runtime.d.ts +177 -0
- package/dist/rolldown/experimental-runtime.mjs +257 -0
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/filter-index.mjs +1 -3
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +3 -3
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +2 -2
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-Dbbi0RbO.d.mts → binding-CVtkJvyl.d.mts} +11 -0
- package/dist/rolldown/shared/{binding-Dby9rwGk.mjs → binding-DwUQWZOo.mjs} +178 -104
- package/dist/rolldown/shared/{bindingify-input-options-DVQ4K-zY.mjs → bindingify-input-options-B03y7DfJ.mjs} +448 -268
- package/dist/rolldown/shared/{constructors-CSWbNgBZ.d.mts → constructors-ALilxAii.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-CuGa75s-.mjs → constructors-COwFYQna.mjs} +10 -6
- package/dist/rolldown/shared/{rolldown-build-BGXNOfvH.mjs → create-bundler-option-B-tSTZRt.mjs} +72 -179
- package/dist/rolldown/shared/{define-config-B-IDOhDz.d.mts → define-config-DSMNXceb.d.mts} +85 -22
- package/dist/rolldown/shared/{error-DFGNOCle.mjs → error-nLggAzpQ.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-R0z2olkB.mjs → load-config-O4G7NVNA.mjs} +2 -2
- package/dist/rolldown/shared/{logs-ZGEh6uhb.mjs → logs-DmYCAKcW.mjs} +8 -1
- package/dist/rolldown/shared/{misc-CoQm4NHO.mjs → misc-DOSKtd97.mjs} +9 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-SiXbePVH.mjs → normalize-string-or-regex-Cj-DgIV1.mjs} +2 -2
- package/dist/rolldown/shared/{parse-D5dkElpf.mjs → parse-CQfUbVuN.mjs} +2 -2
- package/dist/rolldown/shared/{prompt-pZFoa1TT.mjs → prompt-uaCPq0_A.mjs} +2 -6
- package/dist/rolldown/shared/{resolve-tsconfig-2TXRF_zr.mjs → resolve-tsconfig-CE3HNSOK.mjs} +2 -2
- package/dist/rolldown/shared/rolldown-qV_fUwyM.mjs +178 -0
- package/dist/rolldown/shared/{transform-Cs2bUDRH.d.mts → transform-WmU_cI8e.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-DVucf-VG.mjs → watch-BNIsji74.mjs} +16 -13
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +5 -5
- package/dist/tsdown/{build-oq13wECG-Bymq3jT5.js → build-D_enfyvD-X5SFXZZc.js} +30 -28
- package/dist/tsdown/{debug-BntVTkRq-BGIoAiTa.js → debug-CKcBYQLP-avlAPNcV.js} +5 -7
- package/dist/tsdown/{detect-DGhJGEqb-S-tkSzpt.js → detect-DGhJGEqb-CGd2brAW.js} +1 -1
- package/dist/tsdown/{dist-CxIM8o7n.js → dist-BZO8q3c0.js} +48 -12
- package/dist/tsdown/{dist-DCMiHFrJ.js → dist-CMKwGGNp.js} +1 -3
- package/dist/tsdown/index-types.d.ts +21 -11
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/internal-DyaNxVWW.js +3 -0
- package/dist/tsdown/{main-BdzlWPt6.js → main-Jz_9T-KA.js} +18 -10
- package/dist/tsdown/npm_entry_picomatch.cjs +1 -1
- package/dist/tsdown/npm_entry_tree-kill.cjs +11 -13
- package/dist/tsdown/{resolver-cwLsPb2o-oj1hqxK6.js → resolver-cwLsPb2o-BqQjnCbF.js} +3 -3
- package/dist/tsdown/run.js +5 -5
- package/dist/tsdown/{src-BV-UJr_R.js → src-D5keKqGd.js} +5 -5
- package/dist/tsdown/{target-CNxIDvSz-eoHNdJNs.js → target-Bab3CUeB-CERZYTwS.js} +34 -28
- package/dist/tsdown/{tsc-zcbB6ZVY.js → tsc-DmzrnJwy.js} +4 -5
- package/dist/tsdown/tsdown-css.js +13 -16
- package/dist/tsdown/tsdown-exe.js +4 -4
- package/dist/vite/client/bundledDevClient.mjs +1465 -0
- package/dist/vite/client/client.mjs +51 -82
- package/dist/vite/node/chunks/build.js +47 -43
- package/dist/vite/node/chunks/dist.js +26 -85
- package/dist/vite/node/chunks/dist2.js +5 -10
- package/dist/vite/node/chunks/node.js +2728 -2311
- package/dist/vite/node/chunks/postcss-import.js +10 -10
- package/dist/vite/node/index.d.ts +68 -14
- package/dist/vite/node/module-runner.js +21 -11
- package/dist/vite/types/customEvent.d.ts +3 -1
- package/dist/vite/types/hmrPayload.d.ts +20 -6
- package/package.json +32 -18
- package/dist/rolldown/shared/rolldown-BnV7isAX.mjs +0 -40
- package/dist/tsdown/internal-C7ewSPAZ.js +0 -3
- package/dist/tsdown/load-tsc-BKULZsrs-BFmeD6Bu.js +0 -18
- package/dist/tsdown/tsc-context-CA76SkkZ.js +0 -23
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import "@vite/env";
|
|
2
|
-
//#region
|
|
3
|
-
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
4
|
-
let nanoid = (size = 21) => {
|
|
5
|
-
let id = "";
|
|
6
|
-
let i = size | 0;
|
|
7
|
-
while (i-- > 0) id += urlAlphabet[Math.random() * 64 | 0];
|
|
8
|
-
return id;
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js
|
|
2
|
+
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
|
|
12
3
|
function _typeof(o) {
|
|
13
4
|
"@babel/helpers - typeof";
|
|
14
5
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -18,7 +9,7 @@ function _typeof(o) {
|
|
|
18
9
|
}, _typeof(o);
|
|
19
10
|
}
|
|
20
11
|
//#endregion
|
|
21
|
-
//#region \0@oxc-project+runtime@0.
|
|
12
|
+
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
|
|
22
13
|
function toPrimitive(t, r) {
|
|
23
14
|
if ("object" != _typeof(t) || !t) return t;
|
|
24
15
|
var e = t[Symbol.toPrimitive];
|
|
@@ -30,13 +21,13 @@ function toPrimitive(t, r) {
|
|
|
30
21
|
return ("string" === r ? String : Number)(t);
|
|
31
22
|
}
|
|
32
23
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
24
|
+
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
|
|
34
25
|
function toPropertyKey(t) {
|
|
35
26
|
var i = toPrimitive(t, "string");
|
|
36
27
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
37
28
|
}
|
|
38
29
|
//#endregion
|
|
39
|
-
//#region \0@oxc-project+runtime@0.
|
|
30
|
+
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
|
|
40
31
|
function _defineProperty(e, r, t) {
|
|
41
32
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
42
33
|
value: t,
|
|
@@ -171,14 +162,18 @@ var HMRClient = class {
|
|
|
171
162
|
this.ctxToListenersMap.clear();
|
|
172
163
|
}
|
|
173
164
|
async prunePaths(paths) {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
165
|
+
try {
|
|
166
|
+
await Promise.all(paths.map((path) => {
|
|
167
|
+
const disposer = this.disposeMap.get(path);
|
|
168
|
+
if (disposer) return disposer(this.dataMap.get(path));
|
|
169
|
+
}));
|
|
170
|
+
await Promise.all(paths.map((path) => {
|
|
171
|
+
const fn = this.pruneMap.get(path);
|
|
172
|
+
if (fn) return fn(this.dataMap.get(path));
|
|
173
|
+
}));
|
|
174
|
+
} finally {
|
|
175
|
+
paths.forEach((path) => this.dataMap.delete(path));
|
|
176
|
+
}
|
|
182
177
|
}
|
|
183
178
|
warnFailedUpdate(err, path) {
|
|
184
179
|
if (!(err instanceof Error) || !err.message.includes("fetch")) this.logger.error(err);
|
|
@@ -229,6 +224,15 @@ var HMRClient = class {
|
|
|
229
224
|
}
|
|
230
225
|
};
|
|
231
226
|
//#endregion
|
|
227
|
+
//#region ../../node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/non-secure/index.js
|
|
228
|
+
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
229
|
+
let nanoid = (size = 21) => {
|
|
230
|
+
let id = "";
|
|
231
|
+
let i = size | 0;
|
|
232
|
+
while (i-- > 0) id += urlAlphabet[Math.random() * 64 | 0];
|
|
233
|
+
return id;
|
|
234
|
+
};
|
|
235
|
+
//#endregion
|
|
232
236
|
//#region ../../vite/packages/vite/src/shared/constants.ts
|
|
233
237
|
let SOURCEMAPPING_URL = "sourceMa";
|
|
234
238
|
SOURCEMAPPING_URL += "ppingURL";
|
|
@@ -860,7 +864,6 @@ const directSocketHost = __HMR_DIRECT_TARGET__;
|
|
|
860
864
|
const base = __BASE__ || "/";
|
|
861
865
|
const hmrTimeout = __HMR_TIMEOUT__;
|
|
862
866
|
const wsToken = __WS_TOKEN__;
|
|
863
|
-
const isBundleMode = __BUNDLED_DEV__;
|
|
864
867
|
const forwardConsole = __SERVER_FORWARD_CONSOLE__;
|
|
865
868
|
const transport = normalizeModuleRunnerTransport((() => {
|
|
866
869
|
let wsTransport = createWebSocketModuleRunnerTransport({
|
|
@@ -930,14 +933,7 @@ const pageReload = debounceReload(20);
|
|
|
930
933
|
const hmrClient = new HMRClient({
|
|
931
934
|
error: (err) => console.error("[vite]", err),
|
|
932
935
|
debug: (...msg) => console.debug("[vite]", ...msg)
|
|
933
|
-
}, transport,
|
|
934
|
-
const importPromise = import(base + url).then(() => globalThis.__rolldown_runtime__.loadExports(acceptedPath));
|
|
935
|
-
if (isWithinCircularImport) importPromise.catch(() => {
|
|
936
|
-
console.info(`[hmr] ${acceptedPath} failed to apply HMR as it's within a circular import. Reloading page to reset the execution order. To debug and break the circular import, you can run \`vite --debug hmr\` to log the circular dependency path if a file change triggered it.`);
|
|
937
|
-
pageReload();
|
|
938
|
-
});
|
|
939
|
-
return await importPromise;
|
|
940
|
-
} : async function importUpdatedModule({ acceptedPath, timestamp, explicitImportRequired, isWithinCircularImport }) {
|
|
936
|
+
}, transport, async function importUpdatedModule({ acceptedPath, timestamp, explicitImportRequired, isWithinCircularImport }) {
|
|
941
937
|
const [acceptedPathWithoutQuery, query] = acceptedPath.split(`?`);
|
|
942
938
|
const importPromise = import(
|
|
943
939
|
/* @vite-ignore */
|
|
@@ -949,22 +945,32 @@ const hmrClient = new HMRClient({
|
|
|
949
945
|
});
|
|
950
946
|
return await importPromise;
|
|
951
947
|
});
|
|
948
|
+
let bundledDevClient;
|
|
952
949
|
transport.connect(createHMRHandler(handleMessage));
|
|
953
950
|
setupForwardConsoleHandler(transport, forwardConsole);
|
|
951
|
+
function clearOverlayOrReloadOnFirstUpdate() {
|
|
952
|
+
if (hasDocument) {
|
|
953
|
+
if (isFirstUpdate && hasErrorOverlay()) {
|
|
954
|
+
location.reload();
|
|
955
|
+
return "reload";
|
|
956
|
+
}
|
|
957
|
+
if (enableOverlay) clearErrorOverlay();
|
|
958
|
+
isFirstUpdate = false;
|
|
959
|
+
}
|
|
960
|
+
return "continue";
|
|
961
|
+
}
|
|
954
962
|
async function handleMessage(payload) {
|
|
963
|
+
const activeHmrClient = hmrClient;
|
|
955
964
|
switch (payload.type) {
|
|
956
965
|
case "connected":
|
|
957
966
|
console.debug(`[vite] connected.`);
|
|
958
967
|
break;
|
|
968
|
+
case "bundled-dev-update":
|
|
969
|
+
bundledDevClient.handlePush(payload);
|
|
970
|
+
break;
|
|
959
971
|
case "update":
|
|
960
|
-
await
|
|
961
|
-
if (
|
|
962
|
-
location.reload();
|
|
963
|
-
return;
|
|
964
|
-
} else {
|
|
965
|
-
if (enableOverlay) clearErrorOverlay();
|
|
966
|
-
isFirstUpdate = false;
|
|
967
|
-
}
|
|
972
|
+
await activeHmrClient.notifyListeners("vite:beforeUpdate", payload);
|
|
973
|
+
if (clearOverlayOrReloadOnFirstUpdate() === "reload") return;
|
|
968
974
|
await Promise.all(payload.updates.map(async (update) => {
|
|
969
975
|
if (update.type === "js-update") return hmrClient.queueUpdate(update);
|
|
970
976
|
const { path, timestamp } = update;
|
|
@@ -986,10 +992,10 @@ async function handleMessage(payload) {
|
|
|
986
992
|
el.after(newLinkTag);
|
|
987
993
|
});
|
|
988
994
|
}));
|
|
989
|
-
await
|
|
995
|
+
await activeHmrClient.notifyListeners("vite:afterUpdate", payload);
|
|
990
996
|
break;
|
|
991
997
|
case "custom":
|
|
992
|
-
await
|
|
998
|
+
await activeHmrClient.notifyListeners(payload.event, payload.data);
|
|
993
999
|
if (payload.event === "vite:ws:disconnect") {
|
|
994
1000
|
if (hasDocument && !willUnload) {
|
|
995
1001
|
console.log(`[vite] server connection lost. Polling for restart...`);
|
|
@@ -1002,7 +1008,8 @@ async function handleMessage(payload) {
|
|
|
1002
1008
|
}
|
|
1003
1009
|
break;
|
|
1004
1010
|
case "full-reload":
|
|
1005
|
-
|
|
1011
|
+
if (payload.ifFallback && !globalThis.__vite_is_fallback_page__) break;
|
|
1012
|
+
await activeHmrClient.notifyListeners("vite:beforeFullReload", payload);
|
|
1006
1013
|
if (hasDocument) if (payload.path && payload.path.endsWith(".html")) {
|
|
1007
1014
|
const pagePath = decodeURI(location.pathname);
|
|
1008
1015
|
const payloadPath = base + payload.path.slice(1);
|
|
@@ -1011,11 +1018,11 @@ async function handleMessage(payload) {
|
|
|
1011
1018
|
} else pageReload();
|
|
1012
1019
|
break;
|
|
1013
1020
|
case "prune":
|
|
1014
|
-
await
|
|
1015
|
-
await
|
|
1021
|
+
await activeHmrClient.notifyListeners("vite:beforePrune", payload);
|
|
1022
|
+
await activeHmrClient.prunePaths(payload.paths);
|
|
1016
1023
|
break;
|
|
1017
1024
|
case "error":
|
|
1018
|
-
await
|
|
1025
|
+
await activeHmrClient.notifyListeners("vite:error", payload);
|
|
1019
1026
|
if (hasDocument) {
|
|
1020
1027
|
const err = payload.err;
|
|
1021
1028
|
if (enableOverlay) createErrorOverlay(err);
|
|
@@ -1229,43 +1236,5 @@ function injectQuery(url, queryToInject) {
|
|
|
1229
1236
|
const { search, hash } = new URL(url, "http://vite.dev");
|
|
1230
1237
|
return `${pathname}?${queryToInject}${search ? `&` + search.slice(1) : ""}${hash || ""}`;
|
|
1231
1238
|
}
|
|
1232
|
-
if (isBundleMode && typeof DevRuntime !== "undefined") {
|
|
1233
|
-
var _ref;
|
|
1234
|
-
class ViteDevRuntime extends DevRuntime {
|
|
1235
|
-
createModuleHotContext(moduleId) {
|
|
1236
|
-
const ctx = createHotContext(moduleId);
|
|
1237
|
-
ctx._internal = {
|
|
1238
|
-
updateStyle,
|
|
1239
|
-
removeStyle
|
|
1240
|
-
};
|
|
1241
|
-
return ctx;
|
|
1242
|
-
}
|
|
1243
|
-
applyUpdates(_boundaries) {}
|
|
1244
|
-
}
|
|
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) {
|
|
1255
|
-
switch (message.type) {
|
|
1256
|
-
case "hmr:module-registered":
|
|
1257
|
-
transport.send({
|
|
1258
|
-
type: "custom",
|
|
1259
|
-
event: "vite:module-loaded",
|
|
1260
|
-
data: {
|
|
1261
|
-
modules: message.modules.slice(),
|
|
1262
|
-
clientId
|
|
1263
|
-
}
|
|
1264
|
-
});
|
|
1265
|
-
break;
|
|
1266
|
-
default: throw new Error(`Unknown message type: ${JSON.stringify(message)}`);
|
|
1267
|
-
}
|
|
1268
|
-
} }, clientId));
|
|
1269
|
-
}
|
|
1270
1239
|
//#endregion
|
|
1271
1240
|
export { ErrorOverlay, createHotContext, injectQuery, removeStyle, updateStyle };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mt as __require, pt as __commonJSMin } 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.25/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.25/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.25/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.25/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.25/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.25/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.25/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.25/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.25/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.25/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", {
|
|
@@ -992,16 +992,14 @@ var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
992
992
|
tokens[className] = value;
|
|
993
993
|
tokens[dashesCamelCase(className)] = value;
|
|
994
994
|
break;
|
|
995
|
-
case "dashesOnly":
|
|
996
|
-
tokens[dashesCamelCase(className)] = value;
|
|
997
|
-
break;
|
|
995
|
+
case "dashesOnly": tokens[dashesCamelCase(className)] = value;
|
|
998
996
|
}
|
|
999
997
|
return tokens;
|
|
1000
998
|
};
|
|
1001
999
|
}
|
|
1002
1000
|
}));
|
|
1003
1001
|
//#endregion
|
|
1004
|
-
//#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.25/node_modules/postcss-modules/build/FileSystemLoader.js
|
|
1005
1003
|
var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1006
1004
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1007
1005
|
Object.defineProperty(exports, "default", {
|
|
@@ -1090,7 +1088,7 @@ var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1090
1088
|
};
|
|
1091
1089
|
}));
|
|
1092
1090
|
//#endregion
|
|
1093
|
-
//#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.25/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
|
|
1094
1092
|
var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1095
1093
|
const PERMANENT_MARKER = 2;
|
|
1096
1094
|
const TEMPORARY_MARKER = 1;
|
|
@@ -1129,7 +1127,7 @@ var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
1129
1127
|
module.exports = topologicalSort;
|
|
1130
1128
|
}));
|
|
1131
1129
|
//#endregion
|
|
1132
|
-
//#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.25/node_modules/postcss-modules-extract-imports/src/index.js
|
|
1133
1131
|
var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1134
1132
|
const topologicalSort = require_topologicalSort();
|
|
1135
1133
|
const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
@@ -3072,7 +3070,20 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3072
3070
|
get: function get() {
|
|
3073
3071
|
return this._value;
|
|
3074
3072
|
},
|
|
3075
|
-
set:
|
|
3073
|
+
set:
|
|
3074
|
+
/**
|
|
3075
|
+
* Before 3.0, the value had to be set to an escaped value including any wrapped
|
|
3076
|
+
* quote marks. In 3.0, the semantics of `Attribute.value` changed so that the value
|
|
3077
|
+
* is unescaped during parsing and any quote marks are removed.
|
|
3078
|
+
*
|
|
3079
|
+
* Because the ambiguity of this semantic change, if you set `attr.value = newValue`,
|
|
3080
|
+
* a deprecation warning is raised when the new value contains any characters that would
|
|
3081
|
+
* require escaping (including if it contains wrapped quotes).
|
|
3082
|
+
*
|
|
3083
|
+
* Instead, you should call `attr.setValue(newValue, opts)` and pass options that describe
|
|
3084
|
+
* how the new value is quoted.
|
|
3085
|
+
*/
|
|
3086
|
+
function set(v) {
|
|
3076
3087
|
if (this._constructed) {
|
|
3077
3088
|
var _unescapeValue2 = unescapeValue(v), deprecatedUsage = _unescapeValue2.deprecatedUsage, unescaped = _unescapeValue2.unescaped, quoteMark = _unescapeValue2.quoteMark;
|
|
3078
3089
|
if (deprecatedUsage) warnOfDeprecatedValueAssignment();
|
|
@@ -3484,7 +3495,6 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3484
3495
|
endColumn = next - offset;
|
|
3485
3496
|
}
|
|
3486
3497
|
end = next + 1;
|
|
3487
|
-
break;
|
|
3488
3498
|
}
|
|
3489
3499
|
tokens.push([
|
|
3490
3500
|
tokenType,
|
|
@@ -4640,7 +4650,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4640
4650
|
module.exports = exports.default;
|
|
4641
4651
|
}));
|
|
4642
4652
|
//#endregion
|
|
4643
|
-
//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.
|
|
4653
|
+
//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.25/node_modules/postcss-modules-local-by-default/src/index.js
|
|
4644
4654
|
var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4645
4655
|
const selectorParser = require_dist();
|
|
4646
4656
|
const valueParser = require_lib();
|
|
@@ -4834,22 +4844,18 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4834
4844
|
}
|
|
4835
4845
|
}
|
|
4836
4846
|
break;
|
|
4837
|
-
case "function":
|
|
4838
|
-
if (
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
}
|
|
4850
|
-
nestedNode.value = newUrl;
|
|
4851
|
-
});
|
|
4852
|
-
break;
|
|
4847
|
+
case "function": if (context.options && context.options.rewriteUrl && node.value.toLowerCase() === "url") node.nodes.map((nestedNode) => {
|
|
4848
|
+
if (nestedNode.type !== "string" && nestedNode.type !== "word") return;
|
|
4849
|
+
let newUrl = context.options.rewriteUrl(context.global, nestedNode.value);
|
|
4850
|
+
switch (nestedNode.type) {
|
|
4851
|
+
case "string":
|
|
4852
|
+
if (nestedNode.quote === "'") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/'/g, "\\'");
|
|
4853
|
+
if (nestedNode.quote === "\"") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/"/g, "\\\"");
|
|
4854
|
+
break;
|
|
4855
|
+
case "word": newUrl = newUrl.replace(/("|'|\)|\\)/g, "\\$1");
|
|
4856
|
+
}
|
|
4857
|
+
nestedNode.value = newUrl;
|
|
4858
|
+
});
|
|
4853
4859
|
}
|
|
4854
4860
|
return node;
|
|
4855
4861
|
}
|
|
@@ -5038,7 +5044,7 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5038
5044
|
module.exports.postcss = true;
|
|
5039
5045
|
}));
|
|
5040
5046
|
//#endregion
|
|
5041
|
-
//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.
|
|
5047
|
+
//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.25/node_modules/postcss-modules-scope/src/index.js
|
|
5042
5048
|
var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5043
5049
|
const selectorParser = require_dist();
|
|
5044
5050
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -5114,9 +5120,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5114
5120
|
node.each((item) => traverseNode(item));
|
|
5115
5121
|
break;
|
|
5116
5122
|
case "id":
|
|
5117
|
-
case "class":
|
|
5118
|
-
if (exportGlobals) exports$1[node.value] = [node.value];
|
|
5119
|
-
break;
|
|
5123
|
+
case "class": if (exportGlobals) exports$1[node.value] = [node.value];
|
|
5120
5124
|
}
|
|
5121
5125
|
return node;
|
|
5122
5126
|
}
|
|
@@ -5218,7 +5222,7 @@ var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5218
5222
|
module.exports = hash;
|
|
5219
5223
|
}));
|
|
5220
5224
|
//#endregion
|
|
5221
|
-
//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.
|
|
5225
|
+
//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.25/node_modules/postcss-modules-values/src/index.js
|
|
5222
5226
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5223
5227
|
const ICSSUtils = require_src$4();
|
|
5224
5228
|
const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
@@ -5305,7 +5309,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5305
5309
|
module.exports.postcss = true;
|
|
5306
5310
|
}));
|
|
5307
5311
|
//#endregion
|
|
5308
|
-
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.
|
|
5312
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/scoping.js
|
|
5309
5313
|
var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5310
5314
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5311
5315
|
function _export(target, all) {
|
|
@@ -5384,7 +5388,7 @@ var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5384
5388
|
}
|
|
5385
5389
|
}));
|
|
5386
5390
|
//#endregion
|
|
5387
|
-
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.
|
|
5391
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/pluginFactory.js
|
|
5388
5392
|
var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5389
5393
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5390
5394
|
Object.defineProperty(exports, "makePlugin", {
|
|
@@ -5466,7 +5470,7 @@ var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5466
5470
|
}
|
|
5467
5471
|
}));
|
|
5468
5472
|
//#endregion
|
|
5469
|
-
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.
|
|
5473
|
+
//#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/index.js
|
|
5470
5474
|
var require_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5471
5475
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5472
5476
|
const _fs = __require("fs");
|