@introspection-ai/recipes 0.27.4 → 0.29.0
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/agents.d.ts +34 -0
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +87 -0
- package/dist/agents.js.map +1 -1
- package/dist/child/agent.d.ts +5 -0
- package/dist/child/agent.d.ts.map +1 -1
- package/dist/child/agent.js +19 -8
- package/dist/child/agent.js.map +1 -1
- package/dist/child/session.d.ts +31 -4
- package/dist/child/session.d.ts.map +1 -1
- package/dist/child/session.js +65 -3
- package/dist/child/session.js.map +1 -1
- package/dist/mcp-chunks/{auth-command-GQFV6QYP.js → auth-command-SDTBVC2R.js} +22 -21
- package/dist/mcp-chunks/call-arguments-ER7NWEPS.js +16 -0
- package/dist/mcp-chunks/{call-command-LMAREWKD.js → call-command-WOZT2DLX.js} +33 -32
- package/dist/mcp-chunks/{chunk-5B7GRMUK.js → chunk-27XDYSXJ.js} +1 -1
- package/dist/mcp-chunks/{chunk-FONFU4G5.js → chunk-2IO3FXZJ.js} +1 -1
- package/dist/mcp-chunks/{chunk-O4JIUOWF.js → chunk-35JUFDQI.js} +2 -2
- package/dist/mcp-chunks/{chunk-UYJZJXC2.js → chunk-43QNQO5C.js} +3 -3
- package/dist/mcp-chunks/{chunk-LIEFPSSB.js → chunk-4IXQQER3.js} +5 -5
- package/dist/mcp-chunks/{chunk-O2VOMKAS.js → chunk-6XBQDCGX.js} +10 -10
- package/dist/mcp-chunks/{chunk-S2YF442K.js → chunk-7CI6DKEP.js} +2 -2
- package/dist/mcp-chunks/{chunk-H7ARMBV7.js → chunk-7OQUF6V6.js} +26 -10
- package/dist/mcp-chunks/{chunk-S6GJ42I2.js → chunk-7X3JHUMH.js} +1 -1
- package/dist/mcp-chunks/{chunk-D6B2M5V7.js → chunk-7ZZZ7MR2.js} +1 -1
- package/dist/mcp-chunks/{chunk-WHJUDBPR.js → chunk-AHDUZPNI.js} +2 -1
- package/dist/mcp-chunks/{chunk-QALB3DRW.js → chunk-ALLS7CUV.js} +1 -1
- package/dist/mcp-chunks/{chunk-6RG6AD5X.js → chunk-ASFI5AJK.js} +17 -11
- package/dist/mcp-chunks/{chunk-LQIE4PKL.js → chunk-CMDB57MS.js} +2 -2
- package/dist/mcp-chunks/{chunk-HZ2SX5U6.js → chunk-CO4CYU5W.js} +11 -11
- package/dist/mcp-chunks/{chunk-TUQGOYK6.js → chunk-CRX2G22W.js} +1 -1
- package/dist/mcp-chunks/{chunk-UKM35J67.js → chunk-DUJ5WAHC.js} +2 -2
- package/dist/mcp-chunks/{chunk-RIHPVCGI.js → chunk-EIF7GALA.js} +1 -1
- package/dist/mcp-chunks/{chunk-QJNF3A3F.js → chunk-EIXFNLU6.js} +1 -1
- package/dist/mcp-chunks/{chunk-77BZYP72.js → chunk-FMYP6JXX.js} +1 -1
- package/dist/mcp-chunks/{chunk-LXHPDKEF.js → chunk-FQAJT6U2.js} +1 -1
- package/dist/mcp-chunks/{chunk-7WL4TMON.js → chunk-FUKRLUU7.js} +4 -4
- package/dist/mcp-chunks/{chunk-L6OOGZVA.js → chunk-FVZKQMZS.js} +21 -7
- package/dist/mcp-chunks/{chunk-RZIJUJGL.js → chunk-FWWPRZ37.js} +31 -40
- package/dist/mcp-chunks/{chunk-KQCLM7R7.js → chunk-GJ7DWMRT.js} +1 -1
- package/dist/mcp-chunks/{chunk-LCBDVFVA.js → chunk-HM26TIPK.js} +1 -1
- package/dist/mcp-chunks/{chunk-JVYCENPP.js → chunk-IJTZ2ZRM.js} +4 -4
- package/dist/mcp-chunks/{chunk-S5F3HEZZ.js → chunk-IR5SMKTP.js} +425 -445
- package/dist/mcp-chunks/{chunk-7PFJCLXL.js → chunk-IWXEOLJL.js} +20 -16
- package/dist/mcp-chunks/{chunk-D6SVCPN6.js → chunk-JQCSGX6E.js} +1 -1
- package/dist/mcp-chunks/{chunk-P463YBJM.js → chunk-JRU5LZJQ.js} +1 -1
- package/dist/mcp-chunks/{chunk-XNHGMWN2.js → chunk-M7VINGHY.js} +9 -7
- package/dist/mcp-chunks/{chunk-IF6LRV3J.js → chunk-OURSGEZX.js} +8 -8
- package/dist/mcp-chunks/{chunk-H4KL74PV.js → chunk-P3S4OJPI.js} +9 -9
- package/dist/mcp-chunks/{chunk-P3UVILEW.js → chunk-POYT6GCW.js} +29 -5
- package/dist/mcp-chunks/{chunk-5BMCVE2J.js → chunk-R636HUNL.js} +17 -13
- package/dist/mcp-chunks/{chunk-TYYSBILI.js → chunk-SONMFI3S.js} +70 -28
- package/dist/mcp-chunks/{chunk-I6UMKX5E.js → chunk-SVCKS5MW.js} +4 -4
- package/dist/mcp-chunks/{chunk-NQW3ES2G.js → chunk-TDBM2UIR.js} +1 -1
- package/dist/mcp-chunks/{chunk-VJIAHZZG.js → chunk-TKZA4MPW.js} +4 -4
- package/dist/mcp-chunks/{chunk-2P2HVZ3G.js → chunk-UHXTAPEC.js} +1 -1
- package/dist/mcp-chunks/{chunk-CLR6DJV3.js → chunk-UXI26V4F.js} +1 -1
- package/dist/mcp-chunks/{chunk-UIPG6W7N.js → chunk-UYG7PAN2.js} +2 -2
- package/dist/mcp-chunks/{chunk-2HOMVWSA.js → chunk-VCPUZFU7.js} +2 -2
- package/dist/mcp-chunks/{chunk-FBVRU4Y3.js → chunk-VRTH73R5.js} +40 -33
- package/dist/mcp-chunks/{chunk-KOWNVUL2.js → chunk-VWNF5PIF.js} +2 -2
- package/dist/mcp-chunks/{chunk-MJFZM5EV.js → chunk-WQBESOWG.js} +22 -5
- package/dist/mcp-chunks/chunk-XDARNDP3.js +25 -0
- package/dist/mcp-chunks/{chunk-OSYB5GNF.js → chunk-XUJQ6U6M.js} +3 -3
- package/dist/mcp-chunks/{chunk-PJCMJ65D.js → chunk-YGRORKGT.js} +226 -101
- package/dist/mcp-chunks/{chunk-C2VLY7ED.js → chunk-YM7ZVYI2.js} +4 -4
- package/dist/mcp-chunks/{chunk-6QZQZXDJ.js → chunk-YTO7DITJ.js} +3 -3
- package/dist/mcp-chunks/{chunk-UHO6KIUJ.js → chunk-ZLV5S5UP.js} +2 -2
- package/dist/mcp-chunks/{cli-JI7MEAAX.js → cli-67GWFF4R.js} +69 -68
- package/dist/mcp-chunks/client-MQMNAYYW.js +31 -0
- package/dist/mcp-chunks/{config-command-GRZLKD3R.js → config-command-3IKIRWMW.js} +41 -27
- package/dist/mcp-chunks/daemon-command-OMOZ5MP7.js +31 -0
- package/dist/mcp-chunks/{dist-USMCQ22V.js → dist-YL3LFKVP.js} +219 -202
- package/dist/mcp-chunks/{emit-ts-command-7VLESP7H.js → emit-ts-command-YWKROLL2.js} +84 -70
- package/dist/mcp-chunks/{generate-cli-runner-SSW2B72K.js → generate-cli-runner-CZEVY2Y7.js} +51 -48
- package/dist/mcp-chunks/generated-daemon-runtime-SRFULTIT.js +31 -0
- package/dist/mcp-chunks/{inspect-cli-command-NCGCMOIS.js → inspect-cli-command-5Y2LORK5.js} +9 -9
- package/dist/mcp-chunks/{launch-NBONSPNK.js → launch-43TA3HYF.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-CXAKUCN4.js → lifecycle-BY2ILXTB.js} +1 -1
- package/dist/mcp-chunks/{list-command-5T4UF4PF.js → list-command-7RU7NNAV.js} +56 -43
- package/dist/mcp-chunks/{output-utils-YFTWQZ5V.js → output-utils-2R3SA6KR.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-6DI4RA4E.js → prompt-CH6TK0bC-GKQOEUY4.js} +1 -1
- package/dist/mcp-chunks/{record-command-TE5O7WBL.js → record-command-ROIRRNFS.js} +5 -5
- package/dist/mcp-chunks/{replay-command-QCUL5ASR.js → replay-command-Y2MYVQTL.js} +6 -6
- package/dist/mcp-chunks/{resource-command-XMGF7EAK.js → resource-command-VUV7AYYQ.js} +9 -9
- package/dist/mcp-chunks/{result-utils-HKB42M7Y.js → result-utils-5U7NVXDZ.js} +3 -3
- package/dist/mcp-chunks/runtime-Q4SCCOQE.js +38 -0
- package/dist/mcp-chunks/{runtime-wrapper-MI3HF45J.js → runtime-wrapper-3BVFTSWJ.js} +3 -3
- package/dist/mcp-chunks/{serve-command-5HV3ZE25.js → serve-command-BXLQWHFW.js} +8969 -1147
- package/dist/mcp-chunks/{timeouts-YBFBTLV2.js → timeouts-6GL2F44N.js} +3 -3
- package/dist/mcp-chunks/{vault-command-FC2PD5U6.js → vault-command-JCMW3DQA.js} +4 -4
- package/dist/mcp-chunks/{webapi-IFUPO72B.js → webapi-UMWFGMQV.js} +46 -46
- package/dist/mcp-daemon.js +27 -26
- package/dist/mcp-run-worker.js +27 -26
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +22 -19
- package/dist/pi-extension.js.map +1 -1
- package/dist/recipe/model.d.ts.map +1 -1
- package/dist/recipe/model.js +25 -1
- package/dist/recipe/model.js.map +1 -1
- package/dist/run-controller.d.ts +10 -3
- package/dist/run-controller.d.ts.map +1 -1
- package/dist/run-controller.js +23 -11
- package/dist/run-controller.js.map +1 -1
- package/dist/session.d.ts +13 -0
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +15 -9
- package/dist/session.js.map +1 -1
- package/docs/agent-composition.md +27 -6
- package/docs/host-api.md +32 -4
- package/docs/mcp-configuration.md +12 -3
- package/docs/pi-extension.md +7 -4
- package/docs/recipe-format.md +14 -5
- package/package.json +11 -11
- package/dist/mcp-chunks/call-arguments-VT7JLNJY.js +0 -16
- package/dist/mcp-chunks/client-QU7ABSNB.js +0 -30
- package/dist/mcp-chunks/daemon-command-3266CYHO.js +0 -30
- package/dist/mcp-chunks/generated-daemon-runtime-7CFVWLC7.js +0 -30
- package/dist/mcp-chunks/runtime-3X2XVS6X.js +0 -37
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import "./chunk-LRKZP7DJ.js";
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
4
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/binding-BY0qR5iS.mjs
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
var __create = Object.create;
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
@@ -49,6 +49,7 @@ var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
49
49
|
var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50
50
|
const { readFileSync } = __require("fs");
|
|
51
51
|
let nativeBinding = null;
|
|
52
|
+
let __napiLoadedBindingTarget = "native";
|
|
52
53
|
const loadErrors = [];
|
|
53
54
|
const isMusl = () => {
|
|
54
55
|
let musl = false;
|
|
@@ -89,7 +90,9 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89
90
|
};
|
|
90
91
|
function requireNative() {
|
|
91
92
|
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) try {
|
|
92
|
-
|
|
93
|
+
const overrideBinding = __require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
|
|
94
|
+
__napiLoadedBindingTarget = overrideBinding && typeof overrideBinding.__napiBindingTarget === "string" ? overrideBinding.__napiBindingTarget : "native";
|
|
95
|
+
return overrideBinding;
|
|
93
96
|
} catch (err) {
|
|
94
97
|
loadErrors.push(err);
|
|
95
98
|
}
|
|
@@ -103,7 +106,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
103
106
|
try {
|
|
104
107
|
const binding = __require("@rolldown/binding-android-arm64");
|
|
105
108
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
106
|
-
if (bindingPackageVersion !== "1.2.
|
|
109
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
107
110
|
return binding;
|
|
108
111
|
} catch (e2) {
|
|
109
112
|
loadErrors.push(e2);
|
|
@@ -117,7 +120,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
117
120
|
try {
|
|
118
121
|
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
119
122
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
120
|
-
if (bindingPackageVersion !== "1.2.
|
|
123
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
121
124
|
return binding;
|
|
122
125
|
} catch (e2) {
|
|
123
126
|
loadErrors.push(e2);
|
|
@@ -134,7 +137,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
134
137
|
try {
|
|
135
138
|
const binding = __require("@rolldown/binding-win32-x64-gnu");
|
|
136
139
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
|
|
137
|
-
if (bindingPackageVersion !== "1.2.
|
|
140
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
138
141
|
return binding;
|
|
139
142
|
} catch (e2) {
|
|
140
143
|
loadErrors.push(e2);
|
|
@@ -148,7 +151,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
148
151
|
try {
|
|
149
152
|
const binding = __require("@rolldown/binding-win32-x64-msvc");
|
|
150
153
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
151
|
-
if (bindingPackageVersion !== "1.2.
|
|
154
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
152
155
|
return binding;
|
|
153
156
|
} catch (e2) {
|
|
154
157
|
loadErrors.push(e2);
|
|
@@ -163,7 +166,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
163
166
|
try {
|
|
164
167
|
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
165
168
|
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
166
|
-
if (bindingPackageVersion !== "1.2.
|
|
169
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
167
170
|
return binding;
|
|
168
171
|
} catch (e2) {
|
|
169
172
|
loadErrors.push(e2);
|
|
@@ -177,7 +180,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
177
180
|
try {
|
|
178
181
|
const binding = __require("@rolldown/binding-win32-arm64-msvc");
|
|
179
182
|
const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
180
|
-
if (bindingPackageVersion !== "1.2.
|
|
183
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
181
184
|
return binding;
|
|
182
185
|
} catch (e2) {
|
|
183
186
|
loadErrors.push(e2);
|
|
@@ -192,7 +195,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
192
195
|
try {
|
|
193
196
|
const binding = __require("@rolldown/binding-darwin-universal");
|
|
194
197
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
195
|
-
if (bindingPackageVersion !== "1.2.
|
|
198
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
196
199
|
return binding;
|
|
197
200
|
} catch (e2) {
|
|
198
201
|
loadErrors.push(e2);
|
|
@@ -206,7 +209,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
206
209
|
try {
|
|
207
210
|
const binding = __require("@rolldown/binding-darwin-x64");
|
|
208
211
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
|
|
209
|
-
if (bindingPackageVersion !== "1.2.
|
|
212
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
210
213
|
return binding;
|
|
211
214
|
} catch (e2) {
|
|
212
215
|
loadErrors.push(e2);
|
|
@@ -220,7 +223,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
220
223
|
try {
|
|
221
224
|
const binding = __require("@rolldown/binding-darwin-arm64");
|
|
222
225
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
223
|
-
if (bindingPackageVersion !== "1.2.
|
|
226
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
224
227
|
return binding;
|
|
225
228
|
} catch (e2) {
|
|
226
229
|
loadErrors.push(e2);
|
|
@@ -236,7 +239,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
236
239
|
try {
|
|
237
240
|
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
238
241
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
239
|
-
if (bindingPackageVersion !== "1.2.
|
|
242
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
240
243
|
return binding;
|
|
241
244
|
} catch (e2) {
|
|
242
245
|
loadErrors.push(e2);
|
|
@@ -250,7 +253,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
250
253
|
try {
|
|
251
254
|
const binding = __require("@rolldown/binding-freebsd-arm64");
|
|
252
255
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
253
|
-
if (bindingPackageVersion !== "1.2.
|
|
256
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
254
257
|
return binding;
|
|
255
258
|
} catch (e2) {
|
|
256
259
|
loadErrors.push(e2);
|
|
@@ -267,7 +270,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
267
270
|
try {
|
|
268
271
|
const binding = __require("@rolldown/binding-linux-x64-musl");
|
|
269
272
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
270
|
-
if (bindingPackageVersion !== "1.2.
|
|
273
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
271
274
|
return binding;
|
|
272
275
|
} catch (e2) {
|
|
273
276
|
loadErrors.push(e2);
|
|
@@ -281,7 +284,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
281
284
|
try {
|
|
282
285
|
const binding = __require("@rolldown/binding-linux-x64-gnu");
|
|
283
286
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
284
|
-
if (bindingPackageVersion !== "1.2.
|
|
287
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
285
288
|
return binding;
|
|
286
289
|
} catch (e2) {
|
|
287
290
|
loadErrors.push(e2);
|
|
@@ -297,7 +300,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
297
300
|
try {
|
|
298
301
|
const binding = __require("@rolldown/binding-linux-arm64-musl");
|
|
299
302
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
300
|
-
if (bindingPackageVersion !== "1.2.
|
|
303
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
301
304
|
return binding;
|
|
302
305
|
} catch (e2) {
|
|
303
306
|
loadErrors.push(e2);
|
|
@@ -311,7 +314,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
311
314
|
try {
|
|
312
315
|
const binding = __require("@rolldown/binding-linux-arm64-gnu");
|
|
313
316
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
314
|
-
if (bindingPackageVersion !== "1.2.
|
|
317
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
315
318
|
return binding;
|
|
316
319
|
} catch (e2) {
|
|
317
320
|
loadErrors.push(e2);
|
|
@@ -327,7 +330,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
327
330
|
try {
|
|
328
331
|
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
329
332
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
330
|
-
if (bindingPackageVersion !== "1.2.
|
|
333
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
331
334
|
return binding;
|
|
332
335
|
} catch (e2) {
|
|
333
336
|
loadErrors.push(e2);
|
|
@@ -341,7 +344,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
341
344
|
try {
|
|
342
345
|
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
343
346
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
344
|
-
if (bindingPackageVersion !== "1.2.
|
|
347
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
345
348
|
return binding;
|
|
346
349
|
} catch (e2) {
|
|
347
350
|
loadErrors.push(e2);
|
|
@@ -357,7 +360,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
357
360
|
try {
|
|
358
361
|
const binding = __require("@rolldown/binding-linux-loong64-musl");
|
|
359
362
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
|
|
360
|
-
if (bindingPackageVersion !== "1.2.
|
|
363
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
361
364
|
return binding;
|
|
362
365
|
} catch (e2) {
|
|
363
366
|
loadErrors.push(e2);
|
|
@@ -371,7 +374,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
371
374
|
try {
|
|
372
375
|
const binding = __require("@rolldown/binding-linux-loong64-gnu");
|
|
373
376
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
|
|
374
|
-
if (bindingPackageVersion !== "1.2.
|
|
377
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
375
378
|
return binding;
|
|
376
379
|
} catch (e2) {
|
|
377
380
|
loadErrors.push(e2);
|
|
@@ -387,7 +390,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
387
390
|
try {
|
|
388
391
|
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
389
392
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
390
|
-
if (bindingPackageVersion !== "1.2.
|
|
393
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
391
394
|
return binding;
|
|
392
395
|
} catch (e2) {
|
|
393
396
|
loadErrors.push(e2);
|
|
@@ -401,7 +404,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
401
404
|
try {
|
|
402
405
|
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
403
406
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
404
|
-
if (bindingPackageVersion !== "1.2.
|
|
407
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
405
408
|
return binding;
|
|
406
409
|
} catch (e2) {
|
|
407
410
|
loadErrors.push(e2);
|
|
@@ -416,7 +419,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
416
419
|
try {
|
|
417
420
|
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
418
421
|
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
419
|
-
if (bindingPackageVersion !== "1.2.
|
|
422
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
420
423
|
return binding;
|
|
421
424
|
} catch (e2) {
|
|
422
425
|
loadErrors.push(e2);
|
|
@@ -430,7 +433,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
430
433
|
try {
|
|
431
434
|
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
432
435
|
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
433
|
-
if (bindingPackageVersion !== "1.2.
|
|
436
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
434
437
|
return binding;
|
|
435
438
|
} catch (e2) {
|
|
436
439
|
loadErrors.push(e2);
|
|
@@ -446,7 +449,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
446
449
|
try {
|
|
447
450
|
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
448
451
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
449
|
-
if (bindingPackageVersion !== "1.2.
|
|
452
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
450
453
|
return binding;
|
|
451
454
|
} catch (e2) {
|
|
452
455
|
loadErrors.push(e2);
|
|
@@ -460,7 +463,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
460
463
|
try {
|
|
461
464
|
const binding = __require("@rolldown/binding-openharmony-x64");
|
|
462
465
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
463
|
-
if (bindingPackageVersion !== "1.2.
|
|
466
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
464
467
|
return binding;
|
|
465
468
|
} catch (e2) {
|
|
466
469
|
loadErrors.push(e2);
|
|
@@ -474,7 +477,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
474
477
|
try {
|
|
475
478
|
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
476
479
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
477
|
-
if (bindingPackageVersion !== "1.2.
|
|
480
|
+
if (bindingPackageVersion !== "1.2.11" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
478
481
|
return binding;
|
|
479
482
|
} catch (e2) {
|
|
480
483
|
loadErrors.push(e2);
|
|
@@ -544,6 +547,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
544
547
|
if (!candidateFailed) {
|
|
545
548
|
wasiBinding = __require("../rolldown-binding.wasi.cjs");
|
|
546
549
|
nativeBinding = wasiBinding;
|
|
550
|
+
__napiLoadedBindingTarget = "wasm32-wasi";
|
|
547
551
|
wasiBindingLoaded = true;
|
|
548
552
|
}
|
|
549
553
|
} catch (err) {
|
|
@@ -564,10 +568,11 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
564
568
|
if (!candidateFailed) {
|
|
565
569
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
566
570
|
const bindingPackageVersion = __require("@rolldown/binding-wasm32-wasi/package.json").version;
|
|
567
|
-
if (bindingPackageVersion !== "1.2.
|
|
571
|
+
if (bindingPackageVersion !== "1.2.11") throw new Error(`WASI binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
568
572
|
}
|
|
569
573
|
wasiBinding = __require("@rolldown/binding-wasm32-wasi");
|
|
570
574
|
nativeBinding = wasiBinding;
|
|
575
|
+
__napiLoadedBindingTarget = "wasm32-wasi";
|
|
571
576
|
wasiBindingLoaded = true;
|
|
572
577
|
}
|
|
573
578
|
} catch (err) {
|
|
@@ -588,6 +593,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
588
593
|
}
|
|
589
594
|
if (!nativeBinding && globalThis.process?.versions?.["webcontainer"]) try {
|
|
590
595
|
nativeBinding = require_webcontainer_fallback();
|
|
596
|
+
__napiLoadedBindingTarget = "wasm32-wasi";
|
|
591
597
|
} catch (err) {
|
|
592
598
|
loadErrors.push(err);
|
|
593
599
|
}
|
|
@@ -599,6 +605,26 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
599
605
|
}
|
|
600
606
|
throw new Error(`Failed to load native binding`);
|
|
601
607
|
}
|
|
608
|
+
function __napiStampBindingTarget(exportsObject, target) {
|
|
609
|
+
if (Object.prototype.hasOwnProperty.call(exportsObject, "__napiBindingTarget")) {
|
|
610
|
+
if (exportsObject.__napiBindingTarget === target) return target;
|
|
611
|
+
const error2 = /* @__PURE__ */ new Error('`__napiBindingTarget` is reserved by the generated binding loader, but the loaded binding already exports it. Rename the export, e.g. #[napi(js_name = "...")].');
|
|
612
|
+
error2.code = "ERR_NAPI_BINDING_TARGET_CONFLICT";
|
|
613
|
+
throw error2;
|
|
614
|
+
}
|
|
615
|
+
if (!Object.isExtensible(exportsObject)) return target;
|
|
616
|
+
try {
|
|
617
|
+
Object.defineProperty(exportsObject, "__napiBindingTarget", {
|
|
618
|
+
configurable: true,
|
|
619
|
+
enumerable: true,
|
|
620
|
+
value: target,
|
|
621
|
+
writable: true
|
|
622
|
+
});
|
|
623
|
+
} catch {
|
|
624
|
+
}
|
|
625
|
+
return target;
|
|
626
|
+
}
|
|
627
|
+
module.exports.__napiBindingTarget = __napiStampBindingTarget(nativeBinding, __napiLoadedBindingTarget);
|
|
602
628
|
module.exports = nativeBinding;
|
|
603
629
|
module.exports.LegalCommentsMode = nativeBinding.LegalCommentsMode;
|
|
604
630
|
module.exports.minify = nativeBinding.minify;
|
|
@@ -649,6 +675,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
649
675
|
module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
|
|
650
676
|
module.exports.TraceSubscriberGuard = nativeBinding.TraceSubscriberGuard;
|
|
651
677
|
module.exports.TsconfigCache = nativeBinding.TsconfigCache;
|
|
678
|
+
module.exports.__internalForcePanic = nativeBinding.__internalForcePanic;
|
|
652
679
|
module.exports.BindingAttachDebugInfo = nativeBinding.BindingAttachDebugInfo;
|
|
653
680
|
module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
|
|
654
681
|
module.exports.BindingChunkModuleOrderBy = nativeBinding.BindingChunkModuleOrderBy;
|
|
@@ -671,7 +698,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
671
698
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
672
699
|
}));
|
|
673
700
|
|
|
674
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
701
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/logs-D6uA606S.mjs
|
|
675
702
|
function spaces(index) {
|
|
676
703
|
let result = "";
|
|
677
704
|
while (index--) result += " ";
|
|
@@ -751,6 +778,7 @@ var PLUGIN_ERROR = "PLUGIN_ERROR";
|
|
|
751
778
|
var INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN";
|
|
752
779
|
var CYCLE_LOADING = "CYCLE_LOADING";
|
|
753
780
|
var MULTIPLE_WATCHER_OPTION = "MULTIPLE_WATCHER_OPTION";
|
|
781
|
+
var MISSING_CODE_SPLITTING_GROUP_DEBUG_NAME = "MISSING_CODE_SPLITTING_GROUP_DEBUG_NAME";
|
|
754
782
|
var PARSE_ERROR = "PARSE_ERROR";
|
|
755
783
|
var VALIDATION_ERROR = "VALIDATION_ERROR";
|
|
756
784
|
function logParseError(message, id2, pos) {
|
|
@@ -791,6 +819,12 @@ function logMultipleWatcherOption() {
|
|
|
791
819
|
message: `Found multiple watcher options at watch options, using first one to start watcher.`
|
|
792
820
|
};
|
|
793
821
|
}
|
|
822
|
+
function logMissingCodeSplittingGroupDebugName(groupPath) {
|
|
823
|
+
return {
|
|
824
|
+
code: MISSING_CODE_SPLITTING_GROUP_DEBUG_NAME,
|
|
825
|
+
message: `\`${groupPath}.name\` is a function. Set \`${groupPath}.debugName\` so the bundler timing report can identify this group.`
|
|
826
|
+
};
|
|
827
|
+
}
|
|
794
828
|
function logPluginError(error2, plugin, { hook, id: id2 } = {}) {
|
|
795
829
|
try {
|
|
796
830
|
const code2 = error2.code;
|
|
@@ -839,7 +873,7 @@ function augmentCodeLocation(properties, pos, source, id2) {
|
|
|
839
873
|
}
|
|
840
874
|
}
|
|
841
875
|
|
|
842
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
876
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/normalize-string-or-regex-F14uvr6D.mjs
|
|
843
877
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
844
878
|
var BuiltinPlugin = class {
|
|
845
879
|
name;
|
|
@@ -878,7 +912,7 @@ function isReadonlyArray(input) {
|
|
|
878
912
|
return Array.isArray(input);
|
|
879
913
|
}
|
|
880
914
|
|
|
881
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
915
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/misc-DOSKtd97.mjs
|
|
882
916
|
function arraify(value) {
|
|
883
917
|
return Array.isArray(value) ? value : [value];
|
|
884
918
|
}
|
|
@@ -900,7 +934,7 @@ function isPathFragment(name) {
|
|
|
900
934
|
return name[0] === "/" || name[0] === "." && (name[1] === "/" || name[1] === ".") || ABSOLUTE_PATH_REGEX.test(name);
|
|
901
935
|
}
|
|
902
936
|
|
|
903
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
937
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/error-C7pxws0W.mjs
|
|
904
938
|
function bindingifySourcemap(map) {
|
|
905
939
|
if (map == null) return;
|
|
906
940
|
return { inner: typeof map === "string" ? map : {
|
|
@@ -980,7 +1014,7 @@ function joinNewLine(s1, s2) {
|
|
|
980
1014
|
return s1.replace(/\n+$/, "") + "\n" + s2.replace(/^\n+/, "");
|
|
981
1015
|
}
|
|
982
1016
|
|
|
983
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
1017
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/parse-WKtEKiA6.mjs
|
|
984
1018
|
var import_binding2 = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
985
1019
|
function wrap(result) {
|
|
986
1020
|
let program, module, comments, errors;
|
|
@@ -1021,7 +1055,7 @@ function parseSync(filename, sourceText, options) {
|
|
|
1021
1055
|
return wrap((0, import_binding2.parseSync)(filename, sourceText, options));
|
|
1022
1056
|
}
|
|
1023
1057
|
|
|
1024
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
1058
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/parse-ast-index.mjs
|
|
1025
1059
|
function wrap2(result, filename, sourceText) {
|
|
1026
1060
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
1027
1061
|
return result.program;
|
|
@@ -1057,7 +1091,7 @@ function parseAst(sourceText, options, filename) {
|
|
|
1057
1091
|
}), filename, sourceText);
|
|
1058
1092
|
}
|
|
1059
1093
|
|
|
1060
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
1094
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/bindingify-input-options-XrReX_BJ.mjs
|
|
1061
1095
|
import fs from "node:fs";
|
|
1062
1096
|
import path from "node:path";
|
|
1063
1097
|
|
|
@@ -1144,10 +1178,10 @@ function exclude(expr) {
|
|
|
1144
1178
|
return new Exclude(expr);
|
|
1145
1179
|
}
|
|
1146
1180
|
|
|
1147
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
1181
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/bindingify-input-options-XrReX_BJ.mjs
|
|
1148
1182
|
import fsp from "node:fs/promises";
|
|
1149
1183
|
import { fileURLToPath } from "node:url";
|
|
1150
|
-
var version = "1.2.
|
|
1184
|
+
var version = "1.2.11";
|
|
1151
1185
|
var VERSION = version;
|
|
1152
1186
|
var LOG_LEVEL_SILENT = "silent";
|
|
1153
1187
|
var LOG_LEVEL_WARN = "warn";
|
|
@@ -1561,6 +1595,7 @@ function transformToOutputBundle(context, output, changed) {
|
|
|
1561
1595
|
},
|
|
1562
1596
|
deleteProperty(target, property) {
|
|
1563
1597
|
if (typeof property === "string") changed.deleted.add(property);
|
|
1598
|
+
delete target[property];
|
|
1564
1599
|
return true;
|
|
1565
1600
|
}
|
|
1566
1601
|
});
|
|
@@ -2783,6 +2818,7 @@ function pluginTimingsRecorderFor(key) {
|
|
|
2783
2818
|
if (recorder === void 0) {
|
|
2784
2819
|
recorder = {
|
|
2785
2820
|
costs: /* @__PURE__ */ new Map(),
|
|
2821
|
+
warnedMissingGroupLabels: /* @__PURE__ */ new Set(),
|
|
2786
2822
|
busyMs: 0,
|
|
2787
2823
|
inFlight: 0,
|
|
2788
2824
|
busyStart: 0
|
|
@@ -3308,7 +3344,7 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
3308
3344
|
};
|
|
3309
3345
|
}
|
|
3310
3346
|
|
|
3311
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
3347
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/create-bundler-option-YGKfBl_D.mjs
|
|
3312
3348
|
import { Worker } from "node:worker_threads";
|
|
3313
3349
|
import path2, { sep } from "node:path";
|
|
3314
3350
|
import { formatWithOptions, styleText } from "node:util";
|
|
@@ -3562,21 +3598,9 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
3562
3598
|
if (dataset.issues) dataset.issues.push(issue);
|
|
3563
3599
|
else dataset.issues = [issue];
|
|
3564
3600
|
}
|
|
3565
|
-
var _standardCache = /* @__PURE__ */ new WeakMap();
|
|
3566
3601
|
// @__NO_SIDE_EFFECTS__
|
|
3567
|
-
function
|
|
3568
|
-
|
|
3569
|
-
if (!cached) {
|
|
3570
|
-
cached = {
|
|
3571
|
-
version: 1,
|
|
3572
|
-
vendor: "valibot",
|
|
3573
|
-
validate(value$1) {
|
|
3574
|
-
return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
|
|
3575
|
-
}
|
|
3576
|
-
};
|
|
3577
|
-
_standardCache.set(context, cached);
|
|
3578
|
-
}
|
|
3579
|
-
return cached;
|
|
3602
|
+
function _isSameValueZero(value1, value2) {
|
|
3603
|
+
return value1 === value2 || Number.isNaN(value1) && Number.isNaN(value2);
|
|
3580
3604
|
}
|
|
3581
3605
|
// @__NO_SIDE_EFFECTS__
|
|
3582
3606
|
function _isValidObjectKey(object$1, key) {
|
|
@@ -3588,6 +3612,14 @@ function _joinExpects(values$1, separator) {
|
|
|
3588
3612
|
if (list.length > 1) return `(${list.join(` ${separator} `)})`;
|
|
3589
3613
|
return list[0] ?? "never";
|
|
3590
3614
|
}
|
|
3615
|
+
function _standardSchema(schema) {
|
|
3616
|
+
schema["~standard"] = {
|
|
3617
|
+
version: 1,
|
|
3618
|
+
vendor: "valibot",
|
|
3619
|
+
validate: (value$1) => schema["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig())
|
|
3620
|
+
};
|
|
3621
|
+
return schema;
|
|
3622
|
+
}
|
|
3591
3623
|
var ValiError = class extends Error {
|
|
3592
3624
|
/**
|
|
3593
3625
|
* Creates a Valibot error with useful information.
|
|
@@ -3694,24 +3726,21 @@ function is(schema, input) {
|
|
|
3694
3726
|
}
|
|
3695
3727
|
// @__NO_SIDE_EFFECTS__
|
|
3696
3728
|
function any() {
|
|
3697
|
-
return {
|
|
3729
|
+
return _standardSchema({
|
|
3698
3730
|
kind: "schema",
|
|
3699
3731
|
type: "any",
|
|
3700
3732
|
reference: any,
|
|
3701
3733
|
expects: "any",
|
|
3702
3734
|
async: false,
|
|
3703
|
-
get "~standard"() {
|
|
3704
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3705
|
-
},
|
|
3706
3735
|
"~run"(dataset) {
|
|
3707
3736
|
dataset.typed = true;
|
|
3708
3737
|
return dataset;
|
|
3709
3738
|
}
|
|
3710
|
-
};
|
|
3739
|
+
});
|
|
3711
3740
|
}
|
|
3712
3741
|
// @__NO_SIDE_EFFECTS__
|
|
3713
3742
|
function array(item, message$1) {
|
|
3714
|
-
return {
|
|
3743
|
+
return _standardSchema({
|
|
3715
3744
|
kind: "schema",
|
|
3716
3745
|
type: "array",
|
|
3717
3746
|
reference: array,
|
|
@@ -3719,9 +3748,6 @@ function array(item, message$1) {
|
|
|
3719
3748
|
async: false,
|
|
3720
3749
|
item,
|
|
3721
3750
|
message: message$1,
|
|
3722
|
-
get "~standard"() {
|
|
3723
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3724
|
-
},
|
|
3725
3751
|
"~run"(dataset, config$1) {
|
|
3726
3752
|
const input = dataset.value;
|
|
3727
3753
|
if (Array.isArray(input)) {
|
|
@@ -3755,30 +3781,27 @@ function array(item, message$1) {
|
|
|
3755
3781
|
} else _addIssue(this, "type", dataset, config$1);
|
|
3756
3782
|
return dataset;
|
|
3757
3783
|
}
|
|
3758
|
-
};
|
|
3784
|
+
});
|
|
3759
3785
|
}
|
|
3760
3786
|
// @__NO_SIDE_EFFECTS__
|
|
3761
3787
|
function boolean(message$1) {
|
|
3762
|
-
return {
|
|
3788
|
+
return _standardSchema({
|
|
3763
3789
|
kind: "schema",
|
|
3764
3790
|
type: "boolean",
|
|
3765
3791
|
reference: boolean,
|
|
3766
3792
|
expects: "boolean",
|
|
3767
3793
|
async: false,
|
|
3768
3794
|
message: message$1,
|
|
3769
|
-
get "~standard"() {
|
|
3770
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3771
|
-
},
|
|
3772
3795
|
"~run"(dataset, config$1) {
|
|
3773
3796
|
if (typeof dataset.value === "boolean") dataset.typed = true;
|
|
3774
3797
|
else _addIssue(this, "type", dataset, config$1);
|
|
3775
3798
|
return dataset;
|
|
3776
3799
|
}
|
|
3777
|
-
};
|
|
3800
|
+
});
|
|
3778
3801
|
}
|
|
3779
3802
|
// @__NO_SIDE_EFFECTS__
|
|
3780
3803
|
function custom(check$1, message$1) {
|
|
3781
|
-
return {
|
|
3804
|
+
return _standardSchema({
|
|
3782
3805
|
kind: "schema",
|
|
3783
3806
|
type: "custom",
|
|
3784
3807
|
reference: custom,
|
|
@@ -3786,38 +3809,32 @@ function custom(check$1, message$1) {
|
|
|
3786
3809
|
async: false,
|
|
3787
3810
|
check: check$1,
|
|
3788
3811
|
message: message$1,
|
|
3789
|
-
get "~standard"() {
|
|
3790
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3791
|
-
},
|
|
3792
3812
|
"~run"(dataset, config$1) {
|
|
3793
3813
|
if (this.check(dataset.value)) dataset.typed = true;
|
|
3794
3814
|
else _addIssue(this, "type", dataset, config$1);
|
|
3795
3815
|
return dataset;
|
|
3796
3816
|
}
|
|
3797
|
-
};
|
|
3817
|
+
});
|
|
3798
3818
|
}
|
|
3799
3819
|
// @__NO_SIDE_EFFECTS__
|
|
3800
3820
|
function function_(message$1) {
|
|
3801
|
-
return {
|
|
3821
|
+
return _standardSchema({
|
|
3802
3822
|
kind: "schema",
|
|
3803
3823
|
type: "function",
|
|
3804
3824
|
reference: function_,
|
|
3805
3825
|
expects: "Function",
|
|
3806
3826
|
async: false,
|
|
3807
3827
|
message: message$1,
|
|
3808
|
-
get "~standard"() {
|
|
3809
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3810
|
-
},
|
|
3811
3828
|
"~run"(dataset, config$1) {
|
|
3812
3829
|
if (typeof dataset.value === "function") dataset.typed = true;
|
|
3813
3830
|
else _addIssue(this, "type", dataset, config$1);
|
|
3814
3831
|
return dataset;
|
|
3815
3832
|
}
|
|
3816
|
-
};
|
|
3833
|
+
});
|
|
3817
3834
|
}
|
|
3818
3835
|
// @__NO_SIDE_EFFECTS__
|
|
3819
3836
|
function instance(class_, message$1) {
|
|
3820
|
-
return {
|
|
3837
|
+
return _standardSchema({
|
|
3821
3838
|
kind: "schema",
|
|
3822
3839
|
type: "instance",
|
|
3823
3840
|
reference: instance,
|
|
@@ -3825,19 +3842,16 @@ function instance(class_, message$1) {
|
|
|
3825
3842
|
async: false,
|
|
3826
3843
|
class: class_,
|
|
3827
3844
|
message: message$1,
|
|
3828
|
-
get "~standard"() {
|
|
3829
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3830
|
-
},
|
|
3831
3845
|
"~run"(dataset, config$1) {
|
|
3832
3846
|
if (dataset.value instanceof this.class) dataset.typed = true;
|
|
3833
3847
|
else _addIssue(this, "type", dataset, config$1);
|
|
3834
3848
|
return dataset;
|
|
3835
3849
|
}
|
|
3836
|
-
};
|
|
3850
|
+
});
|
|
3837
3851
|
}
|
|
3838
3852
|
// @__NO_SIDE_EFFECTS__
|
|
3839
3853
|
function literal(literal_, message$1) {
|
|
3840
|
-
return {
|
|
3854
|
+
return _standardSchema({
|
|
3841
3855
|
kind: "schema",
|
|
3842
3856
|
type: "literal",
|
|
3843
3857
|
reference: literal,
|
|
@@ -3845,37 +3859,31 @@ function literal(literal_, message$1) {
|
|
|
3845
3859
|
async: false,
|
|
3846
3860
|
literal: literal_,
|
|
3847
3861
|
message: message$1,
|
|
3848
|
-
get "~standard"() {
|
|
3849
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3850
|
-
},
|
|
3851
3862
|
"~run"(dataset, config$1) {
|
|
3852
|
-
if (dataset.value
|
|
3863
|
+
if (/* @__PURE__ */ _isSameValueZero(dataset.value, this.literal)) dataset.typed = true;
|
|
3853
3864
|
else _addIssue(this, "type", dataset, config$1);
|
|
3854
3865
|
return dataset;
|
|
3855
3866
|
}
|
|
3856
|
-
};
|
|
3867
|
+
});
|
|
3857
3868
|
}
|
|
3858
3869
|
// @__NO_SIDE_EFFECTS__
|
|
3859
3870
|
function never(message$1) {
|
|
3860
|
-
return {
|
|
3871
|
+
return _standardSchema({
|
|
3861
3872
|
kind: "schema",
|
|
3862
3873
|
type: "never",
|
|
3863
3874
|
reference: never,
|
|
3864
3875
|
expects: "never",
|
|
3865
3876
|
async: false,
|
|
3866
3877
|
message: message$1,
|
|
3867
|
-
get "~standard"() {
|
|
3868
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3869
|
-
},
|
|
3870
3878
|
"~run"(dataset, config$1) {
|
|
3871
3879
|
_addIssue(this, "type", dataset, config$1);
|
|
3872
3880
|
return dataset;
|
|
3873
3881
|
}
|
|
3874
|
-
};
|
|
3882
|
+
});
|
|
3875
3883
|
}
|
|
3876
3884
|
// @__NO_SIDE_EFFECTS__
|
|
3877
3885
|
function nullish(wrapped, default_) {
|
|
3878
|
-
return {
|
|
3886
|
+
return _standardSchema({
|
|
3879
3887
|
kind: "schema",
|
|
3880
3888
|
type: "nullish",
|
|
3881
3889
|
reference: nullish,
|
|
@@ -3883,9 +3891,6 @@ function nullish(wrapped, default_) {
|
|
|
3883
3891
|
async: false,
|
|
3884
3892
|
wrapped,
|
|
3885
3893
|
default: default_,
|
|
3886
|
-
get "~standard"() {
|
|
3887
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3888
|
-
},
|
|
3889
3894
|
"~run"(dataset, config$1) {
|
|
3890
3895
|
if (dataset.value === null || dataset.value === void 0) {
|
|
3891
3896
|
if (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
@@ -3896,30 +3901,27 @@ function nullish(wrapped, default_) {
|
|
|
3896
3901
|
}
|
|
3897
3902
|
return this.wrapped["~run"](dataset, config$1);
|
|
3898
3903
|
}
|
|
3899
|
-
};
|
|
3904
|
+
});
|
|
3900
3905
|
}
|
|
3901
3906
|
// @__NO_SIDE_EFFECTS__
|
|
3902
3907
|
function number(message$1) {
|
|
3903
|
-
return {
|
|
3908
|
+
return _standardSchema({
|
|
3904
3909
|
kind: "schema",
|
|
3905
3910
|
type: "number",
|
|
3906
3911
|
reference: number,
|
|
3907
3912
|
expects: "number",
|
|
3908
3913
|
async: false,
|
|
3909
3914
|
message: message$1,
|
|
3910
|
-
get "~standard"() {
|
|
3911
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3912
|
-
},
|
|
3913
3915
|
"~run"(dataset, config$1) {
|
|
3914
3916
|
if (typeof dataset.value === "number" && !isNaN(dataset.value)) dataset.typed = true;
|
|
3915
3917
|
else _addIssue(this, "type", dataset, config$1);
|
|
3916
3918
|
return dataset;
|
|
3917
3919
|
}
|
|
3918
|
-
};
|
|
3920
|
+
});
|
|
3919
3921
|
}
|
|
3920
3922
|
// @__NO_SIDE_EFFECTS__
|
|
3921
3923
|
function object(entries$1, message$1) {
|
|
3922
|
-
return {
|
|
3924
|
+
return _standardSchema({
|
|
3923
3925
|
kind: "schema",
|
|
3924
3926
|
type: "object",
|
|
3925
3927
|
reference: object,
|
|
@@ -3927,9 +3929,6 @@ function object(entries$1, message$1) {
|
|
|
3927
3929
|
async: false,
|
|
3928
3930
|
entries: entries$1,
|
|
3929
3931
|
message: message$1,
|
|
3930
|
-
get "~standard"() {
|
|
3931
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3932
|
-
},
|
|
3933
3932
|
"~run"(dataset, config$1) {
|
|
3934
3933
|
const input = dataset.value;
|
|
3935
3934
|
if (input && typeof input === "object") {
|
|
@@ -3980,11 +3979,11 @@ function object(entries$1, message$1) {
|
|
|
3980
3979
|
} else _addIssue(this, "type", dataset, config$1);
|
|
3981
3980
|
return dataset;
|
|
3982
3981
|
}
|
|
3983
|
-
};
|
|
3982
|
+
});
|
|
3984
3983
|
}
|
|
3985
3984
|
// @__NO_SIDE_EFFECTS__
|
|
3986
3985
|
function optional(wrapped, default_) {
|
|
3987
|
-
return {
|
|
3986
|
+
return _standardSchema({
|
|
3988
3987
|
kind: "schema",
|
|
3989
3988
|
type: "optional",
|
|
3990
3989
|
reference: optional,
|
|
@@ -3992,9 +3991,6 @@ function optional(wrapped, default_) {
|
|
|
3992
3991
|
async: false,
|
|
3993
3992
|
wrapped,
|
|
3994
3993
|
default: default_,
|
|
3995
|
-
get "~standard"() {
|
|
3996
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3997
|
-
},
|
|
3998
3994
|
"~run"(dataset, config$1) {
|
|
3999
3995
|
if (dataset.value === void 0) {
|
|
4000
3996
|
if (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
@@ -4005,30 +4001,27 @@ function optional(wrapped, default_) {
|
|
|
4005
4001
|
}
|
|
4006
4002
|
return this.wrapped["~run"](dataset, config$1);
|
|
4007
4003
|
}
|
|
4008
|
-
};
|
|
4004
|
+
});
|
|
4009
4005
|
}
|
|
4010
4006
|
// @__NO_SIDE_EFFECTS__
|
|
4011
4007
|
function promise(message$1) {
|
|
4012
|
-
return {
|
|
4008
|
+
return _standardSchema({
|
|
4013
4009
|
kind: "schema",
|
|
4014
4010
|
type: "promise",
|
|
4015
4011
|
reference: promise,
|
|
4016
4012
|
expects: "Promise",
|
|
4017
4013
|
async: false,
|
|
4018
4014
|
message: message$1,
|
|
4019
|
-
get "~standard"() {
|
|
4020
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4021
|
-
},
|
|
4022
4015
|
"~run"(dataset, config$1) {
|
|
4023
4016
|
if (dataset.value instanceof Promise) dataset.typed = true;
|
|
4024
4017
|
else _addIssue(this, "type", dataset, config$1);
|
|
4025
4018
|
return dataset;
|
|
4026
4019
|
}
|
|
4027
|
-
};
|
|
4020
|
+
});
|
|
4028
4021
|
}
|
|
4029
4022
|
// @__NO_SIDE_EFFECTS__
|
|
4030
4023
|
function record(key, value$1, message$1) {
|
|
4031
|
-
return {
|
|
4024
|
+
return _standardSchema({
|
|
4032
4025
|
kind: "schema",
|
|
4033
4026
|
type: "record",
|
|
4034
4027
|
reference: record,
|
|
@@ -4037,9 +4030,6 @@ function record(key, value$1, message$1) {
|
|
|
4037
4030
|
key,
|
|
4038
4031
|
value: value$1,
|
|
4039
4032
|
message: message$1,
|
|
4040
|
-
get "~standard"() {
|
|
4041
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4042
|
-
},
|
|
4043
4033
|
"~run"(dataset, config$1) {
|
|
4044
4034
|
const input = dataset.value;
|
|
4045
4035
|
if (input && typeof input === "object") {
|
|
@@ -4092,11 +4082,11 @@ function record(key, value$1, message$1) {
|
|
|
4092
4082
|
} else _addIssue(this, "type", dataset, config$1);
|
|
4093
4083
|
return dataset;
|
|
4094
4084
|
}
|
|
4095
|
-
};
|
|
4085
|
+
});
|
|
4096
4086
|
}
|
|
4097
4087
|
// @__NO_SIDE_EFFECTS__
|
|
4098
4088
|
function strictObject(entries$1, message$1) {
|
|
4099
|
-
return {
|
|
4089
|
+
return _standardSchema({
|
|
4100
4090
|
kind: "schema",
|
|
4101
4091
|
type: "strict_object",
|
|
4102
4092
|
reference: strictObject,
|
|
@@ -4104,9 +4094,6 @@ function strictObject(entries$1, message$1) {
|
|
|
4104
4094
|
async: false,
|
|
4105
4095
|
entries: entries$1,
|
|
4106
4096
|
message: message$1,
|
|
4107
|
-
get "~standard"() {
|
|
4108
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4109
|
-
},
|
|
4110
4097
|
"~run"(dataset, config$1) {
|
|
4111
4098
|
const input = dataset.value;
|
|
4112
4099
|
if (input && typeof input === "object") {
|
|
@@ -4155,7 +4142,7 @@ function strictObject(entries$1, message$1) {
|
|
|
4155
4142
|
}
|
|
4156
4143
|
}
|
|
4157
4144
|
if (!dataset.issues || !config$1.abortEarly) {
|
|
4158
|
-
for (const key in input) if (!(
|
|
4145
|
+
for (const key in input) if (!Object.prototype.hasOwnProperty.call(this.entries, key)) {
|
|
4159
4146
|
_addIssue(this, "key", dataset, config$1, {
|
|
4160
4147
|
input: key,
|
|
4161
4148
|
expected: "never",
|
|
@@ -4173,30 +4160,27 @@ function strictObject(entries$1, message$1) {
|
|
|
4173
4160
|
} else _addIssue(this, "type", dataset, config$1);
|
|
4174
4161
|
return dataset;
|
|
4175
4162
|
}
|
|
4176
|
-
};
|
|
4163
|
+
});
|
|
4177
4164
|
}
|
|
4178
4165
|
// @__NO_SIDE_EFFECTS__
|
|
4179
4166
|
function string(message$1) {
|
|
4180
|
-
return {
|
|
4167
|
+
return _standardSchema({
|
|
4181
4168
|
kind: "schema",
|
|
4182
4169
|
type: "string",
|
|
4183
4170
|
reference: string,
|
|
4184
4171
|
expects: "string",
|
|
4185
4172
|
async: false,
|
|
4186
4173
|
message: message$1,
|
|
4187
|
-
get "~standard"() {
|
|
4188
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4189
|
-
},
|
|
4190
4174
|
"~run"(dataset, config$1) {
|
|
4191
4175
|
if (typeof dataset.value === "string") dataset.typed = true;
|
|
4192
4176
|
else _addIssue(this, "type", dataset, config$1);
|
|
4193
4177
|
return dataset;
|
|
4194
4178
|
}
|
|
4195
|
-
};
|
|
4179
|
+
});
|
|
4196
4180
|
}
|
|
4197
4181
|
// @__NO_SIDE_EFFECTS__
|
|
4198
4182
|
function tuple(items, message$1) {
|
|
4199
|
-
return {
|
|
4183
|
+
return _standardSchema({
|
|
4200
4184
|
kind: "schema",
|
|
4201
4185
|
type: "tuple",
|
|
4202
4186
|
reference: tuple,
|
|
@@ -4204,9 +4188,6 @@ function tuple(items, message$1) {
|
|
|
4204
4188
|
async: false,
|
|
4205
4189
|
items,
|
|
4206
4190
|
message: message$1,
|
|
4207
|
-
get "~standard"() {
|
|
4208
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4209
|
-
},
|
|
4210
4191
|
"~run"(dataset, config$1) {
|
|
4211
4192
|
const input = dataset.value;
|
|
4212
4193
|
if (Array.isArray(input)) {
|
|
@@ -4240,26 +4221,23 @@ function tuple(items, message$1) {
|
|
|
4240
4221
|
} else _addIssue(this, "type", dataset, config$1);
|
|
4241
4222
|
return dataset;
|
|
4242
4223
|
}
|
|
4243
|
-
};
|
|
4224
|
+
});
|
|
4244
4225
|
}
|
|
4245
4226
|
// @__NO_SIDE_EFFECTS__
|
|
4246
4227
|
function undefined_(message$1) {
|
|
4247
|
-
return {
|
|
4228
|
+
return _standardSchema({
|
|
4248
4229
|
kind: "schema",
|
|
4249
4230
|
type: "undefined",
|
|
4250
4231
|
reference: undefined_,
|
|
4251
4232
|
expects: "undefined",
|
|
4252
4233
|
async: false,
|
|
4253
4234
|
message: message$1,
|
|
4254
|
-
get "~standard"() {
|
|
4255
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4256
|
-
},
|
|
4257
4235
|
"~run"(dataset, config$1) {
|
|
4258
4236
|
if (dataset.value === void 0) dataset.typed = true;
|
|
4259
4237
|
else _addIssue(this, "type", dataset, config$1);
|
|
4260
4238
|
return dataset;
|
|
4261
4239
|
}
|
|
4262
|
-
};
|
|
4240
|
+
});
|
|
4263
4241
|
}
|
|
4264
4242
|
// @__NO_SIDE_EFFECTS__
|
|
4265
4243
|
function _subIssues(datasets) {
|
|
@@ -4270,7 +4248,7 @@ function _subIssues(datasets) {
|
|
|
4270
4248
|
}
|
|
4271
4249
|
// @__NO_SIDE_EFFECTS__
|
|
4272
4250
|
function union(options, message$1) {
|
|
4273
|
-
return {
|
|
4251
|
+
return _standardSchema({
|
|
4274
4252
|
kind: "schema",
|
|
4275
4253
|
type: "union",
|
|
4276
4254
|
reference: union,
|
|
@@ -4278,9 +4256,6 @@ function union(options, message$1) {
|
|
|
4278
4256
|
async: false,
|
|
4279
4257
|
options,
|
|
4280
4258
|
message: message$1,
|
|
4281
|
-
get "~standard"() {
|
|
4282
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4283
|
-
},
|
|
4284
4259
|
"~run"(dataset, config$1) {
|
|
4285
4260
|
let validDataset;
|
|
4286
4261
|
let typedDatasets;
|
|
@@ -4305,11 +4280,11 @@ function union(options, message$1) {
|
|
|
4305
4280
|
else _addIssue(this, "type", dataset, config$1, { issues: /* @__PURE__ */ _subIssues(untypedDatasets) });
|
|
4306
4281
|
return dataset;
|
|
4307
4282
|
}
|
|
4308
|
-
};
|
|
4283
|
+
});
|
|
4309
4284
|
}
|
|
4310
4285
|
// @__NO_SIDE_EFFECTS__
|
|
4311
4286
|
function unionAsync(options, message$1) {
|
|
4312
|
-
return {
|
|
4287
|
+
return _standardSchema({
|
|
4313
4288
|
kind: "schema",
|
|
4314
4289
|
type: "union",
|
|
4315
4290
|
reference: unionAsync,
|
|
@@ -4317,9 +4292,6 @@ function unionAsync(options, message$1) {
|
|
|
4317
4292
|
async: true,
|
|
4318
4293
|
options,
|
|
4319
4294
|
message: message$1,
|
|
4320
|
-
get "~standard"() {
|
|
4321
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4322
|
-
},
|
|
4323
4295
|
async "~run"(dataset, config$1) {
|
|
4324
4296
|
let validDataset;
|
|
4325
4297
|
let typedDatasets;
|
|
@@ -4344,59 +4316,47 @@ function unionAsync(options, message$1) {
|
|
|
4344
4316
|
else _addIssue(this, "type", dataset, config$1, { issues: /* @__PURE__ */ _subIssues(untypedDatasets) });
|
|
4345
4317
|
return dataset;
|
|
4346
4318
|
}
|
|
4347
|
-
};
|
|
4319
|
+
});
|
|
4348
4320
|
}
|
|
4349
4321
|
// @__NO_SIDE_EFFECTS__
|
|
4350
4322
|
function void_(message$1) {
|
|
4351
|
-
return {
|
|
4323
|
+
return _standardSchema({
|
|
4352
4324
|
kind: "schema",
|
|
4353
4325
|
type: "void",
|
|
4354
4326
|
reference: void_,
|
|
4355
4327
|
expects: "void",
|
|
4356
4328
|
async: false,
|
|
4357
4329
|
message: message$1,
|
|
4358
|
-
get "~standard"() {
|
|
4359
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4360
|
-
},
|
|
4361
4330
|
"~run"(dataset, config$1) {
|
|
4362
4331
|
if (dataset.value === void 0) dataset.typed = true;
|
|
4363
4332
|
else _addIssue(this, "type", dataset, config$1);
|
|
4364
4333
|
return dataset;
|
|
4365
4334
|
}
|
|
4366
|
-
};
|
|
4335
|
+
});
|
|
4367
4336
|
}
|
|
4368
4337
|
// @__NO_SIDE_EFFECTS__
|
|
4369
4338
|
function omit(schema, keys) {
|
|
4370
4339
|
const entries$1 = { ...schema.entries };
|
|
4371
4340
|
for (const key of keys) delete entries$1[key];
|
|
4372
|
-
return {
|
|
4341
|
+
return _standardSchema({
|
|
4373
4342
|
...schema,
|
|
4374
|
-
entries: entries$1
|
|
4375
|
-
|
|
4376
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4377
|
-
}
|
|
4378
|
-
};
|
|
4343
|
+
entries: entries$1
|
|
4344
|
+
});
|
|
4379
4345
|
}
|
|
4380
4346
|
// @__NO_SIDE_EFFECTS__
|
|
4381
4347
|
function partial(schema, keys) {
|
|
4382
4348
|
const entries$1 = {};
|
|
4383
4349
|
for (const key in schema.entries) entries$1[key] = !keys || keys.includes(key) ? /* @__PURE__ */ optional(schema.entries[key]) : schema.entries[key];
|
|
4384
|
-
return {
|
|
4350
|
+
return _standardSchema({
|
|
4385
4351
|
...schema,
|
|
4386
|
-
entries: entries$1
|
|
4387
|
-
|
|
4388
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4389
|
-
}
|
|
4390
|
-
};
|
|
4352
|
+
entries: entries$1
|
|
4353
|
+
});
|
|
4391
4354
|
}
|
|
4392
4355
|
// @__NO_SIDE_EFFECTS__
|
|
4393
4356
|
function pipe(...pipe$1) {
|
|
4394
|
-
return {
|
|
4357
|
+
return _standardSchema({
|
|
4395
4358
|
...pipe$1[0],
|
|
4396
4359
|
pipe: pipe$1,
|
|
4397
|
-
get "~standard"() {
|
|
4398
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4399
|
-
},
|
|
4400
4360
|
"~run"(dataset, config$1) {
|
|
4401
4361
|
for (const item of pipe$1) if (item.kind !== "metadata") {
|
|
4402
4362
|
if (dataset.issues && (item.kind === "schema" || item.kind === "transformation")) {
|
|
@@ -4407,17 +4367,14 @@ function pipe(...pipe$1) {
|
|
|
4407
4367
|
}
|
|
4408
4368
|
return dataset;
|
|
4409
4369
|
}
|
|
4410
|
-
};
|
|
4370
|
+
});
|
|
4411
4371
|
}
|
|
4412
4372
|
// @__NO_SIDE_EFFECTS__
|
|
4413
4373
|
function pipeAsync(...pipe$1) {
|
|
4414
|
-
return {
|
|
4374
|
+
return _standardSchema({
|
|
4415
4375
|
...pipe$1[0],
|
|
4416
4376
|
pipe: pipe$1,
|
|
4417
4377
|
async: true,
|
|
4418
|
-
get "~standard"() {
|
|
4419
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4420
|
-
},
|
|
4421
4378
|
async "~run"(dataset, config$1) {
|
|
4422
4379
|
for (const item of pipe$1) if (item.kind !== "metadata") {
|
|
4423
4380
|
if (dataset.issues && (item.kind === "schema" || item.kind === "transformation")) {
|
|
@@ -4428,7 +4385,7 @@ function pipeAsync(...pipe$1) {
|
|
|
4428
4385
|
}
|
|
4429
4386
|
return dataset;
|
|
4430
4387
|
}
|
|
4431
|
-
};
|
|
4388
|
+
});
|
|
4432
4389
|
}
|
|
4433
4390
|
// @__NO_SIDE_EFFECTS__
|
|
4434
4391
|
function safeParse(schema, input, config$1) {
|
|
@@ -4573,6 +4530,7 @@ var ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
4573
4530
|
unresolvedEntry: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an entrypoint cannot be resolved")),
|
|
4574
4531
|
unresolvedImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an import cannot be resolved")),
|
|
4575
4532
|
filenameConflict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when files generated have the same name with different contents")),
|
|
4533
|
+
moduleLevelDirective: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings for module-level directives other than `use strict`")),
|
|
4576
4534
|
commonJsVariableInEsm: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a CommonJS variable is used in an ES module")),
|
|
4577
4535
|
importIsUndefined: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an imported variable is not exported")),
|
|
4578
4536
|
emptyImportMeta: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when `import.meta` is not supported with the output format and is replaced with an empty object (`{}`)")),
|
|
@@ -4581,7 +4539,8 @@ var ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
4581
4539
|
configurationFieldConflict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a config value is overridden by another config value with a higher priority")),
|
|
4582
4540
|
preferBuiltinFeature: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a plugin that is covered by a built-in feature is used")),
|
|
4583
4541
|
couldNotCleanDirectory: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when Rolldown could not clean the output directory")),
|
|
4584
|
-
|
|
4542
|
+
bundlerTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when plugins and option callbacks take significant time during the build process")),
|
|
4543
|
+
pluginTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Deprecated alias for bundlerTimings. Rolldown uses bundlerTimings if both options have values.")),
|
|
4585
4544
|
duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
|
|
4586
4545
|
unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
4587
4546
|
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),
|
|
@@ -4631,6 +4590,7 @@ var MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
4631
4590
|
})),
|
|
4632
4591
|
codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
4633
4592
|
removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
4593
|
+
asciiOnly: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
4634
4594
|
legalComments: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
4635
4595
|
/* @__PURE__ */ literal("none"),
|
|
4636
4596
|
/* @__PURE__ */ literal("inline"),
|
|
@@ -4795,6 +4755,7 @@ var AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
|
4795
4755
|
maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
4796
4756
|
minShareCount: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
4797
4757
|
groups: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ strictObject({
|
|
4758
|
+
debugName: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
4798
4759
|
name: /* @__PURE__ */ union([/* @__PURE__ */ string(), AdvancedChunksNameFunctionSchema]),
|
|
4799
4760
|
test: /* @__PURE__ */ optional(/* @__PURE__ */ union([StringOrRegExpSchema, AdvancedChunksTestFunctionSchema])),
|
|
4800
4761
|
priority: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
@@ -5942,7 +5903,7 @@ function createConsola(options = {}) {
|
|
|
5942
5903
|
defaults: { level },
|
|
5943
5904
|
stdout: process.stdout,
|
|
5944
5905
|
stderr: process.stderr,
|
|
5945
|
-
prompt: (...args2) => import("./prompt-CH6TK0bC-
|
|
5906
|
+
prompt: (...args2) => import("./prompt-CH6TK0bC-GKQOEUY4.js").then((m) => m.prompt(...args2)),
|
|
5946
5907
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
5947
5908
|
...options
|
|
5948
5909
|
});
|
|
@@ -5975,10 +5936,10 @@ function createTestingLogger() {
|
|
|
5975
5936
|
for (const type of types) ret[type] = (...args2) => console.log(...args2);
|
|
5976
5937
|
return ret;
|
|
5977
5938
|
}
|
|
5978
|
-
function bindingifyOutputOptions(outputOptions, pluginContextData, timings) {
|
|
5939
|
+
function bindingifyOutputOptions(outputOptions, pluginContextData, onLog, timings) {
|
|
5979
5940
|
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapFileNames, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
|
|
5980
5941
|
if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
|
|
5981
|
-
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks, pluginContextData, timings);
|
|
5942
|
+
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks, pluginContextData, onLog, timings);
|
|
5982
5943
|
return {
|
|
5983
5944
|
dir,
|
|
5984
5945
|
file: file == null ? void 0 : file,
|
|
@@ -5990,8 +5951,8 @@ function bindingifyOutputOptions(outputOptions, pluginContextData, timings) {
|
|
|
5990
5951
|
sourcemapDebugIds,
|
|
5991
5952
|
sourcemapFileNames: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapFileNames", sourcemapFileNames),
|
|
5992
5953
|
sourcemapExcludeSources,
|
|
5993
|
-
sourcemapIgnoreList: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapIgnoreList", sourcemapIgnoreList ?? /node_modules/),
|
|
5994
|
-
sourcemapPathTransform: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapPathTransform", sourcemapPathTransform),
|
|
5954
|
+
sourcemapIgnoreList: batchSourcemapIgnoreList(measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapIgnoreList", sourcemapIgnoreList ?? /node_modules/)),
|
|
5955
|
+
sourcemapPathTransform: batchSourcemapPathTransform(measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapPathTransform", sourcemapPathTransform)),
|
|
5995
5956
|
banner: bindingifyAddon(banner, "banner", timings),
|
|
5996
5957
|
footer: bindingifyAddon(footer, "footer", timings),
|
|
5997
5958
|
postBanner: bindingifyAddon(postBanner, "postBanner", timings),
|
|
@@ -6086,9 +6047,11 @@ function bindingifyComments(comments) {
|
|
|
6086
6047
|
if (typeof comments === "boolean") return comments;
|
|
6087
6048
|
return comments;
|
|
6088
6049
|
}
|
|
6089
|
-
function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, advancedChunks, manualChunks, pluginContextData, timings) {
|
|
6050
|
+
function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, advancedChunks, manualChunks, pluginContextData, onLog, timings) {
|
|
6090
6051
|
let inlineDynamicImports;
|
|
6091
6052
|
let effectiveChunksOption;
|
|
6053
|
+
let migratedManualChunksGroup;
|
|
6054
|
+
let chunksOptionName = "codeSplitting";
|
|
6092
6055
|
if (codeSplitting === false) {
|
|
6093
6056
|
if (inlineDynamicImportsOption != null) logger.warn("`inlineDynamicImports` option is ignored because `codeSplitting: false` is set.");
|
|
6094
6057
|
if (manualChunks != null) throw new Error('Invalid configuration: "output.manualChunks" cannot be used when "output.codeSplitting" is set to false.');
|
|
@@ -6106,6 +6069,7 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
|
|
|
6106
6069
|
}
|
|
6107
6070
|
} else {
|
|
6108
6071
|
effectiveChunksOption = codeSplitting;
|
|
6072
|
+
chunksOptionName = "codeSplitting";
|
|
6109
6073
|
if (inlineDynamicImportsOption != null) logger.warn("`inlineDynamicImports` option is ignored because the `codeSplitting` option is specified.");
|
|
6110
6074
|
}
|
|
6111
6075
|
if (inlineDynamicImports === true && manualChunks != null) throw new Error('Invalid value "true" for option "output.inlineDynamicImports" - this option is not supported for "output.manualChunks".');
|
|
@@ -6113,12 +6077,17 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
|
|
|
6113
6077
|
if (advancedChunks != null) {
|
|
6114
6078
|
logger.warn("`advancedChunks` option is deprecated, please use `codeSplitting` instead.");
|
|
6115
6079
|
effectiveChunksOption = advancedChunks;
|
|
6080
|
+
chunksOptionName = "advancedChunks";
|
|
6116
6081
|
}
|
|
6117
6082
|
} else if (advancedChunks != null) logger.warn("`advancedChunks` option is ignored because the `codeSplitting` option is specified.");
|
|
6118
6083
|
if (manualChunks != null && effectiveChunksOption != null) logger.warn("`manualChunks` option is ignored because the `codeSplitting` option is specified.");
|
|
6119
|
-
else if (manualChunks != null)
|
|
6120
|
-
|
|
6121
|
-
|
|
6084
|
+
else if (manualChunks != null) {
|
|
6085
|
+
chunksOptionName = "manualChunks";
|
|
6086
|
+
migratedManualChunksGroup = { name(moduleId, ctx) {
|
|
6087
|
+
return manualChunks(moduleId, { getModuleInfo: (id2) => ctx.getModuleInfo(id2) });
|
|
6088
|
+
} };
|
|
6089
|
+
effectiveChunksOption = { groups: [migratedManualChunksGroup] };
|
|
6090
|
+
}
|
|
6122
6091
|
if (inlineDynamicImports === true && effectiveChunksOption != null) {
|
|
6123
6092
|
logger.warn("`advancedChunks` option is ignored because `inlineDynamicImports: true` disables code splitting.");
|
|
6124
6093
|
effectiveChunksOption = void 0;
|
|
@@ -6134,12 +6103,36 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
|
|
|
6134
6103
|
chunkingContext?.clearModuleInfoCache();
|
|
6135
6104
|
chunkingContext = void 0;
|
|
6136
6105
|
},
|
|
6137
|
-
groups: groups?.map((group) => {
|
|
6138
|
-
const { name, test, ...restGroup } = group;
|
|
6106
|
+
groups: groups?.map((group, index) => {
|
|
6107
|
+
const { debugName, name, test, ...restGroup } = group;
|
|
6108
|
+
const timingKey = group === migratedManualChunksGroup ? manualChunks ?? group : group;
|
|
6109
|
+
const timingOwner = timings === void 0 ? OUTPUT_OPTIONS_OWNER : {
|
|
6110
|
+
...OUTPUT_OPTIONS_OWNER,
|
|
6111
|
+
key: timingKey
|
|
6112
|
+
};
|
|
6113
|
+
const groupName = `${chunksOptionName} groups[${index}]`;
|
|
6114
|
+
let testTimingName = `${groupName}.test`;
|
|
6115
|
+
let nameTimingName = `${groupName}.name`;
|
|
6116
|
+
if (timings !== void 0) {
|
|
6117
|
+
if (chunksOptionName === "manualChunks") nameTimingName = "manualChunks";
|
|
6118
|
+
else {
|
|
6119
|
+
const label = debugName ?? (typeof name === "string" ? name : void 0);
|
|
6120
|
+
if (label === void 0) {
|
|
6121
|
+
if (typeof name === "function" && !timings.warnedMissingGroupLabels.has(timingKey)) {
|
|
6122
|
+
timings.warnedMissingGroupLabels.add(timingKey);
|
|
6123
|
+
onLog(LOG_LEVEL_WARN, logMissingCodeSplittingGroupDebugName(`output.${chunksOptionName}.groups[${index}]`));
|
|
6124
|
+
}
|
|
6125
|
+
} else {
|
|
6126
|
+
const labelSuffix = ` ${JSON.stringify(label)}`;
|
|
6127
|
+
testTimingName = `${groupName}.test${labelSuffix}`;
|
|
6128
|
+
nameTimingName = `${groupName}.name${labelSuffix}`;
|
|
6129
|
+
}
|
|
6130
|
+
}
|
|
6131
|
+
}
|
|
6139
6132
|
return {
|
|
6140
6133
|
...restGroup,
|
|
6141
|
-
test: typeof test === "function" ? batchTest(measureHookCost(timings,
|
|
6142
|
-
name: typeof name === "function" ? batchName(measureHookCost(timings,
|
|
6134
|
+
test: typeof test === "function" ? batchTest(measureHookCost(timings, timingOwner, testTimingName, test)) : test,
|
|
6135
|
+
name: typeof name === "function" ? batchName(measureHookCost(timings, timingOwner, nameTimingName, name), getChunkingContext) : name
|
|
6143
6136
|
};
|
|
6144
6137
|
})
|
|
6145
6138
|
};
|
|
@@ -6172,6 +6165,30 @@ function batchName(name, getChunkingContext) {
|
|
|
6172
6165
|
return results;
|
|
6173
6166
|
};
|
|
6174
6167
|
}
|
|
6168
|
+
function batchSourcemapIgnoreList(ignoreList) {
|
|
6169
|
+
if (typeof ignoreList !== "function") return ignoreList;
|
|
6170
|
+
return (sources, sourcemapPath) => {
|
|
6171
|
+
const results = new Uint8Array(sources.length);
|
|
6172
|
+
for (let index = 0; index < sources.length; index++) {
|
|
6173
|
+
const result = ignoreList(sources[index], sourcemapPath);
|
|
6174
|
+
if (typeof result !== "boolean") throw new TypeError(`\`output.sourcemapIgnoreList\` returned ${typeof result} for source "${sources[index]}", but expected a boolean.`);
|
|
6175
|
+
results[index] = result ? 1 : 0;
|
|
6176
|
+
}
|
|
6177
|
+
return results;
|
|
6178
|
+
};
|
|
6179
|
+
}
|
|
6180
|
+
function batchSourcemapPathTransform(pathTransform) {
|
|
6181
|
+
if (typeof pathTransform !== "function") return pathTransform;
|
|
6182
|
+
return (sources, sourcemapPath) => {
|
|
6183
|
+
const results = [];
|
|
6184
|
+
for (let index = 0; index < sources.length; index++) {
|
|
6185
|
+
const result = pathTransform(sources[index], sourcemapPath);
|
|
6186
|
+
if (typeof result !== "string") throw new TypeError(`\`output.sourcemapPathTransform\` returned ${typeof result} for source "${sources[index]}", but expected a string.`);
|
|
6187
|
+
results.push(result);
|
|
6188
|
+
}
|
|
6189
|
+
return results;
|
|
6190
|
+
};
|
|
6191
|
+
}
|
|
6175
6192
|
var import_binding4 = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
6176
6193
|
async function initializeParallelPlugins(plugins) {
|
|
6177
6194
|
const pluginInfos = [];
|
|
@@ -6245,7 +6262,7 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, meas
|
|
|
6245
6262
|
const normalizedInputPlugins = normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX);
|
|
6246
6263
|
const normalizedOutputPlugins = normalizePlugins(hookOutputPlugins, ANONYMOUS_OUTPUT_PLUGIN_PREFIX);
|
|
6247
6264
|
let plugins = [...normalizedInputPlugins, ...checkOutputPluginOption(normalizedOutputPlugins, onLog)];
|
|
6248
|
-
const timings = measureTimings && inputOptions.checks?.pluginTimings
|
|
6265
|
+
const timings = measureTimings && (inputOptions.checks?.bundlerTimings ?? inputOptions.checks?.pluginTimings ?? true) ? pluginTimingsRecorderFor(inputOptions) : void 0;
|
|
6249
6266
|
if (timings) outputOptions = {
|
|
6250
6267
|
...outputOptions,
|
|
6251
6268
|
assetFileNames: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "assetFileNames", outputOptions.assetFileNames),
|
|
@@ -6258,7 +6275,7 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, meas
|
|
|
6258
6275
|
return {
|
|
6259
6276
|
bundlerOptions: {
|
|
6260
6277
|
inputOptions: bindingifyInputOptions(plugins, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode, timings),
|
|
6261
|
-
outputOptions: bindingifyOutputOptions(outputOptions, pluginContextData, timings),
|
|
6278
|
+
outputOptions: bindingifyOutputOptions(outputOptions, pluginContextData, onLog, timings),
|
|
6262
6279
|
parallelPluginsRegistry: parallelPluginInitResult?.registry
|
|
6263
6280
|
},
|
|
6264
6281
|
inputOptions,
|
|
@@ -6271,7 +6288,7 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, meas
|
|
|
6271
6288
|
}
|
|
6272
6289
|
}
|
|
6273
6290
|
|
|
6274
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
6291
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/watch-DUTFlQ6u.mjs
|
|
6275
6292
|
var signals = [];
|
|
6276
6293
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
6277
6294
|
if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
@@ -6570,7 +6587,7 @@ function watch(input) {
|
|
|
6570
6587
|
return emitter;
|
|
6571
6588
|
}
|
|
6572
6589
|
|
|
6573
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
6590
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/rolldown-CgWItHdG.mjs
|
|
6574
6591
|
var import_binding6 = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
6575
6592
|
var RolldownOutputImpl = class extends PlainObjectLike {
|
|
6576
6593
|
bindingOutputs;
|
|
@@ -6703,12 +6720,12 @@ var rolldown = async (input) => {
|
|
|
6703
6720
|
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
6704
6721
|
};
|
|
6705
6722
|
|
|
6706
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
6723
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/define-config-Demdg3_4.mjs
|
|
6707
6724
|
function defineConfig(config) {
|
|
6708
6725
|
return config;
|
|
6709
6726
|
}
|
|
6710
6727
|
|
|
6711
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
6728
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/index.mjs
|
|
6712
6729
|
import { isMainThread } from "node:worker_threads";
|
|
6713
6730
|
var import_binding7 = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
6714
6731
|
if (isMainThread) {
|