@rollipop/rolldown 1.0.0-rc.2 → 1.0.0-rc.3
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/cli-setup.mjs +1 -1
- package/dist/cli.mjs +27 -996
- package/dist/config.d.mts +10 -5
- package/dist/config.mjs +9 -12
- package/dist/experimental-index.d.mts +72 -14
- package/dist/experimental-index.mjs +64 -11
- package/dist/experimental-runtime-types.d.ts +0 -5
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +24 -1
- package/dist/get-log-filter.d.mts +3 -7
- package/dist/get-log-filter.mjs +23 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +10 -9
- package/dist/parallel-plugin-worker.mjs +5 -4
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +26 -2
- package/dist/parse-ast-index.mjs +61 -2
- package/dist/plugins-index.d.mts +8 -5
- package/dist/plugins-index.mjs +8 -5
- package/dist/shared/{binding-Bo6UcGYl.d.mts → binding-C4ZlFAt6.d.mts} +302 -117
- package/dist/shared/{binding-9QXxzPo6.mjs → binding-D25Pz9Tj.mjs} +32 -26
- package/dist/shared/{bindingify-input-options-C--dZCPv.mjs → bindingify-input-options-D6jfpJ6l.mjs} +52 -113
- package/dist/shared/{constructors-DsYXT8FB.mjs → constructors-BAGdj697.mjs} +8 -5
- package/dist/shared/{constructors-B64fS2o1.d.mts → constructors-C-tyKVjw.d.mts} +9 -4
- package/dist/shared/{define-config-DT_Hpxdr.d.mts → define-config-BKLqq_zt.d.mts} +148 -43
- package/dist/shared/error-BoaGIj5N.mjs +90 -0
- package/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
- package/dist/shared/{load-config-TBowPn4n.mjs → load-config-CV5K8wKJ.mjs} +10 -2
- package/dist/shared/{logs-NH298mHo.mjs → logs-CCc_0vhs.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-CaBvmZZK.mjs → normalize-string-or-regex-tBSnk6HY.mjs} +2 -2
- package/dist/shared/parse-DWZRPGsB.mjs +77 -0
- package/dist/shared/{rolldown-5hTSdYMy.mjs → rolldown-CZ1SIh-x.mjs} +1 -1
- package/dist/shared/{rolldown-build-B7oitB1K.mjs → rolldown-build-BYA-VVk0.mjs} +1019 -26
- package/dist/shared/transform-CIcvJTbn.mjs +93 -0
- package/dist/shared/transform-DoG7c5_r.d.mts +132 -0
- package/dist/shared/{watch-CkctCkiN.mjs → watch-DV7vV2OV.mjs} +6 -5
- package/dist/utils-index.d.mts +376 -0
- package/dist/utils-index.mjs +2426 -0
- package/package.json +17 -16
- package/dist/shared/parse-ast-index-BQ9Myuc2.mjs +0 -99
- /package/dist/shared/{define-config-BVG4QvnP.mjs → define-config-BMj_QknW.mjs} +0 -0
- /package/dist/shared/{logging-CE90D8JR.d.mts → logging-C6h4g8dA.d.mts} +0 -0
- /package/dist/shared/{misc-CCZIsXVO.mjs → misc-Xty885dB.mjs} +0 -0
- /package/dist/shared/{prompt-CI-U8Lh4.mjs → prompt-B56gTa4S.mjs} +0 -0
|
@@ -110,7 +110,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
110
110
|
try {
|
|
111
111
|
const binding = __require("@rollipop/rolldown-binding-android-arm64");
|
|
112
112
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm64/package.json").version;
|
|
113
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
113
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
114
114
|
return binding;
|
|
115
115
|
} catch (e) {
|
|
116
116
|
loadErrors.push(e);
|
|
@@ -124,7 +124,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
124
124
|
try {
|
|
125
125
|
const binding = __require("@rollipop/rolldown-binding-android-arm-eabi");
|
|
126
126
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm-eabi/package.json").version;
|
|
127
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
127
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
128
128
|
return binding;
|
|
129
129
|
} catch (e) {
|
|
130
130
|
loadErrors.push(e);
|
|
@@ -139,7 +139,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
139
139
|
try {
|
|
140
140
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-gnu");
|
|
141
141
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-gnu/package.json").version;
|
|
142
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
142
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
143
143
|
return binding;
|
|
144
144
|
} catch (e) {
|
|
145
145
|
loadErrors.push(e);
|
|
@@ -153,7 +153,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
153
153
|
try {
|
|
154
154
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-msvc");
|
|
155
155
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-msvc/package.json").version;
|
|
156
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
156
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
157
157
|
return binding;
|
|
158
158
|
} catch (e) {
|
|
159
159
|
loadErrors.push(e);
|
|
@@ -168,7 +168,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
168
168
|
try {
|
|
169
169
|
const binding = __require("@rollipop/rolldown-binding-win32-ia32-msvc");
|
|
170
170
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-ia32-msvc/package.json").version;
|
|
171
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
171
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
172
172
|
return binding;
|
|
173
173
|
} catch (e) {
|
|
174
174
|
loadErrors.push(e);
|
|
@@ -182,7 +182,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
182
182
|
try {
|
|
183
183
|
const binding = __require("@rollipop/rolldown-binding-win32-arm64-msvc");
|
|
184
184
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-arm64-msvc/package.json").version;
|
|
185
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
185
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
186
186
|
return binding;
|
|
187
187
|
} catch (e) {
|
|
188
188
|
loadErrors.push(e);
|
|
@@ -197,7 +197,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
197
197
|
try {
|
|
198
198
|
const binding = __require("@rollipop/rolldown-binding-darwin-universal");
|
|
199
199
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-universal/package.json").version;
|
|
200
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
200
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
201
201
|
return binding;
|
|
202
202
|
} catch (e) {
|
|
203
203
|
loadErrors.push(e);
|
|
@@ -211,7 +211,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
211
211
|
try {
|
|
212
212
|
const binding = __require("@rollipop/rolldown-binding-darwin-x64");
|
|
213
213
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-x64/package.json").version;
|
|
214
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
214
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
215
215
|
return binding;
|
|
216
216
|
} catch (e) {
|
|
217
217
|
loadErrors.push(e);
|
|
@@ -225,7 +225,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
225
225
|
try {
|
|
226
226
|
const binding = __require("@rollipop/rolldown-binding-darwin-arm64");
|
|
227
227
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-arm64/package.json").version;
|
|
228
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
228
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
229
229
|
return binding;
|
|
230
230
|
} catch (e) {
|
|
231
231
|
loadErrors.push(e);
|
|
@@ -240,7 +240,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
240
240
|
try {
|
|
241
241
|
const binding = __require("@rollipop/rolldown-binding-freebsd-x64");
|
|
242
242
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-x64/package.json").version;
|
|
243
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
243
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
244
244
|
return binding;
|
|
245
245
|
} catch (e) {
|
|
246
246
|
loadErrors.push(e);
|
|
@@ -254,7 +254,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
254
254
|
try {
|
|
255
255
|
const binding = __require("@rollipop/rolldown-binding-freebsd-arm64");
|
|
256
256
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-arm64/package.json").version;
|
|
257
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
257
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
258
258
|
return binding;
|
|
259
259
|
} catch (e) {
|
|
260
260
|
loadErrors.push(e);
|
|
@@ -269,7 +269,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
269
269
|
try {
|
|
270
270
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-musl");
|
|
271
271
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-musl/package.json").version;
|
|
272
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
272
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
273
273
|
return binding;
|
|
274
274
|
} catch (e) {
|
|
275
275
|
loadErrors.push(e);
|
|
@@ -283,7 +283,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
283
283
|
try {
|
|
284
284
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-gnu");
|
|
285
285
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-gnu/package.json").version;
|
|
286
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
286
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
287
287
|
return binding;
|
|
288
288
|
} catch (e) {
|
|
289
289
|
loadErrors.push(e);
|
|
@@ -298,7 +298,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
298
298
|
try {
|
|
299
299
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-musl");
|
|
300
300
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-musl/package.json").version;
|
|
301
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
301
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
302
302
|
return binding;
|
|
303
303
|
} catch (e) {
|
|
304
304
|
loadErrors.push(e);
|
|
@@ -312,7 +312,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
312
312
|
try {
|
|
313
313
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-gnu");
|
|
314
314
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-gnu/package.json").version;
|
|
315
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
315
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
316
316
|
return binding;
|
|
317
317
|
} catch (e) {
|
|
318
318
|
loadErrors.push(e);
|
|
@@ -327,7 +327,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
327
327
|
try {
|
|
328
328
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-musleabihf");
|
|
329
329
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-musleabihf/package.json").version;
|
|
330
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
330
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
331
331
|
return binding;
|
|
332
332
|
} catch (e) {
|
|
333
333
|
loadErrors.push(e);
|
|
@@ -341,7 +341,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
341
341
|
try {
|
|
342
342
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf");
|
|
343
343
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf/package.json").version;
|
|
344
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
344
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
345
345
|
return binding;
|
|
346
346
|
} catch (e) {
|
|
347
347
|
loadErrors.push(e);
|
|
@@ -356,7 +356,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
356
356
|
try {
|
|
357
357
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-musl");
|
|
358
358
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-musl/package.json").version;
|
|
359
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
359
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
360
360
|
return binding;
|
|
361
361
|
} catch (e) {
|
|
362
362
|
loadErrors.push(e);
|
|
@@ -370,7 +370,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
370
370
|
try {
|
|
371
371
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-gnu");
|
|
372
372
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-gnu/package.json").version;
|
|
373
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
373
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
374
374
|
return binding;
|
|
375
375
|
} catch (e) {
|
|
376
376
|
loadErrors.push(e);
|
|
@@ -385,7 +385,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
385
385
|
try {
|
|
386
386
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-musl");
|
|
387
387
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-musl/package.json").version;
|
|
388
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
388
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
389
389
|
return binding;
|
|
390
390
|
} catch (e) {
|
|
391
391
|
loadErrors.push(e);
|
|
@@ -399,7 +399,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
399
399
|
try {
|
|
400
400
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-gnu");
|
|
401
401
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-gnu/package.json").version;
|
|
402
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
402
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
403
403
|
return binding;
|
|
404
404
|
} catch (e) {
|
|
405
405
|
loadErrors.push(e);
|
|
@@ -414,7 +414,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
414
414
|
try {
|
|
415
415
|
const binding = __require("@rollipop/rolldown-binding-linux-ppc64-gnu");
|
|
416
416
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-ppc64-gnu/package.json").version;
|
|
417
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
417
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
418
418
|
return binding;
|
|
419
419
|
} catch (e) {
|
|
420
420
|
loadErrors.push(e);
|
|
@@ -428,7 +428,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
428
428
|
try {
|
|
429
429
|
const binding = __require("@rollipop/rolldown-binding-linux-s390x-gnu");
|
|
430
430
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-s390x-gnu/package.json").version;
|
|
431
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
431
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
432
432
|
return binding;
|
|
433
433
|
} catch (e) {
|
|
434
434
|
loadErrors.push(e);
|
|
@@ -443,7 +443,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
443
443
|
try {
|
|
444
444
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm64");
|
|
445
445
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm64/package.json").version;
|
|
446
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
446
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
447
447
|
return binding;
|
|
448
448
|
} catch (e) {
|
|
449
449
|
loadErrors.push(e);
|
|
@@ -457,7 +457,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
457
457
|
try {
|
|
458
458
|
const binding = __require("@rollipop/rolldown-binding-openharmony-x64");
|
|
459
459
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-x64/package.json").version;
|
|
460
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
460
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
461
461
|
return binding;
|
|
462
462
|
} catch (e) {
|
|
463
463
|
loadErrors.push(e);
|
|
@@ -471,7 +471,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
471
471
|
try {
|
|
472
472
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm");
|
|
473
473
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm/package.json").version;
|
|
474
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
474
|
+
if (bindingPackageVersion !== "1.0.0-rc.3" && 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.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
475
475
|
return binding;
|
|
476
476
|
} catch (e) {
|
|
477
477
|
loadErrors.push(e);
|
|
@@ -547,6 +547,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
547
547
|
module.exports.BindingChunkingContext = nativeBinding.BindingChunkingContext;
|
|
548
548
|
module.exports.BindingDecodedMap = nativeBinding.BindingDecodedMap;
|
|
549
549
|
module.exports.BindingDevEngine = nativeBinding.BindingDevEngine;
|
|
550
|
+
module.exports.BindingLoadPluginContext = nativeBinding.BindingLoadPluginContext;
|
|
550
551
|
module.exports.BindingMagicString = nativeBinding.BindingMagicString;
|
|
551
552
|
module.exports.BindingModuleInfo = nativeBinding.BindingModuleInfo;
|
|
552
553
|
module.exports.BindingNormalizedOptions = nativeBinding.BindingNormalizedOptions;
|
|
@@ -565,6 +566,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
565
566
|
module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
|
|
566
567
|
module.exports.ScheduledBuild = nativeBinding.ScheduledBuild;
|
|
567
568
|
module.exports.TraceSubscriberGuard = nativeBinding.TraceSubscriberGuard;
|
|
569
|
+
module.exports.TsconfigCache = nativeBinding.TsconfigCache;
|
|
568
570
|
module.exports.BindingAttachDebugInfo = nativeBinding.BindingAttachDebugInfo;
|
|
569
571
|
module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
|
|
570
572
|
module.exports.BindingChunkModuleOrderBy = nativeBinding.BindingChunkModuleOrderBy;
|
|
@@ -573,10 +575,14 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
573
575
|
module.exports.BindingPropertyReadSideEffects = nativeBinding.BindingPropertyReadSideEffects;
|
|
574
576
|
module.exports.BindingPropertyWriteSideEffects = nativeBinding.BindingPropertyWriteSideEffects;
|
|
575
577
|
module.exports.BindingRebuildStrategy = nativeBinding.BindingRebuildStrategy;
|
|
578
|
+
module.exports.collapseSourcemaps = nativeBinding.collapseSourcemaps;
|
|
576
579
|
module.exports.createTokioRuntime = nativeBinding.createTokioRuntime;
|
|
580
|
+
module.exports.enhancedTransform = nativeBinding.enhancedTransform;
|
|
581
|
+
module.exports.enhancedTransformSync = nativeBinding.enhancedTransformSync;
|
|
577
582
|
module.exports.FilterTokenKind = nativeBinding.FilterTokenKind;
|
|
578
583
|
module.exports.initTraceSubscriber = nativeBinding.initTraceSubscriber;
|
|
579
584
|
module.exports.registerPlugins = nativeBinding.registerPlugins;
|
|
585
|
+
module.exports.resolveTsconfig = nativeBinding.resolveTsconfig;
|
|
580
586
|
module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
|
|
581
587
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
582
588
|
}));
|
package/dist/shared/{bindingify-input-options-C--dZCPv.mjs → bindingify-input-options-D6jfpJ6l.mjs}
RENAMED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-
|
|
3
|
-
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
4
|
-
import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-
|
|
5
|
-
import { t as
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-D25Pz9Tj.mjs";
|
|
2
|
+
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-CCc_0vhs.mjs";
|
|
3
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-tBSnk6HY.mjs";
|
|
4
|
+
import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-Xty885dB.mjs";
|
|
5
|
+
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-BoaGIj5N.mjs";
|
|
6
|
+
import { parseAst } from "../parse-ast-index.mjs";
|
|
6
7
|
import path from "node:path";
|
|
7
8
|
import * as filter from "@rollipop/rolldown-pluginutils";
|
|
8
9
|
import fsp from "node:fs/promises";
|
|
9
10
|
|
|
10
11
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-rc.
|
|
12
|
+
var version = "1.0.0-rc.3";
|
|
12
13
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
14
|
|
|
14
15
|
//#endregion
|
|
15
|
-
//#region src/version.ts
|
|
16
|
+
//#region src/constants/version.ts
|
|
16
17
|
/**
|
|
17
18
|
* The version of Rolldown.
|
|
18
19
|
* @example `'1.0.0'`
|
|
@@ -21,6 +22,13 @@ var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compat
|
|
|
21
22
|
*/
|
|
22
23
|
const VERSION = version;
|
|
23
24
|
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/constants/index.ts
|
|
27
|
+
/**
|
|
28
|
+
* Runtime helper module ID
|
|
29
|
+
*/
|
|
30
|
+
const RUNTIME_MODULE_ID = "\0rolldown/runtime.js";
|
|
31
|
+
|
|
24
32
|
//#endregion
|
|
25
33
|
//#region src/log/logging.ts
|
|
26
34
|
const LOG_LEVEL_SILENT = "silent";
|
|
@@ -220,7 +228,7 @@ function bindingAssetSource(source) {
|
|
|
220
228
|
}
|
|
221
229
|
|
|
222
230
|
//#endregion
|
|
223
|
-
//#region \0@oxc-project+runtime@0.
|
|
231
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/decorate.js
|
|
224
232
|
function __decorate(decorators, target, key, desc) {
|
|
225
233
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
226
234
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -408,22 +416,6 @@ __decorate([lazyProp], OutputChunkImpl.prototype, "dynamicImports", null);
|
|
|
408
416
|
__decorate([lazyProp], OutputChunkImpl.prototype, "moduleIds", null);
|
|
409
417
|
__decorate([lazyProp], OutputChunkImpl.prototype, "map", null);
|
|
410
418
|
|
|
411
|
-
//#endregion
|
|
412
|
-
//#region src/types/sourcemap.ts
|
|
413
|
-
function bindingifySourcemap(map) {
|
|
414
|
-
if (map == null) return;
|
|
415
|
-
return { inner: typeof map === "string" ? map : {
|
|
416
|
-
file: map.file ?? void 0,
|
|
417
|
-
mappings: map.mappings,
|
|
418
|
-
sourceRoot: "sourceRoot" in map ? map.sourceRoot ?? void 0 : void 0,
|
|
419
|
-
sources: map.sources?.map((s) => s ?? void 0),
|
|
420
|
-
sourcesContent: map.sourcesContent?.map((s) => s ?? void 0),
|
|
421
|
-
names: map.names,
|
|
422
|
-
x_google_ignoreList: map.x_google_ignoreList,
|
|
423
|
-
debugId: "debugId" in map ? map.debugId : void 0
|
|
424
|
-
} };
|
|
425
|
-
}
|
|
426
|
-
|
|
427
419
|
//#endregion
|
|
428
420
|
//#region src/utils/transform-to-rollup-output.ts
|
|
429
421
|
function transformToRollupSourceMap(map) {
|
|
@@ -584,77 +576,6 @@ function collectChangedBundle(changed, bundle) {
|
|
|
584
576
|
};
|
|
585
577
|
}
|
|
586
578
|
|
|
587
|
-
//#endregion
|
|
588
|
-
//#region src/utils/error.ts
|
|
589
|
-
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
590
|
-
function unwrapBindingResult(container) {
|
|
591
|
-
if (typeof container === "object" && container !== null && "isBindingErrors" in container && container.isBindingErrors) throw aggregateBindingErrorsIntoJsError(container.errors);
|
|
592
|
-
return container;
|
|
593
|
-
}
|
|
594
|
-
function normalizeBindingResult(container) {
|
|
595
|
-
if (typeof container === "object" && container !== null && "isBindingErrors" in container && container.isBindingErrors) return aggregateBindingErrorsIntoJsError(container.errors);
|
|
596
|
-
return container;
|
|
597
|
-
}
|
|
598
|
-
function normalizeBindingError(e) {
|
|
599
|
-
return e.type === "JsError" ? e.field0 : Object.assign(/* @__PURE__ */ new Error(), {
|
|
600
|
-
code: e.field0.kind,
|
|
601
|
-
kind: e.field0.kind,
|
|
602
|
-
message: e.field0.message,
|
|
603
|
-
id: e.field0.id,
|
|
604
|
-
exporter: e.field0.exporter,
|
|
605
|
-
loc: e.field0.loc,
|
|
606
|
-
pos: e.field0.pos,
|
|
607
|
-
stack: void 0
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
function aggregateBindingErrorsIntoJsError(rawErrors) {
|
|
611
|
-
const errors = rawErrors.map(normalizeBindingError);
|
|
612
|
-
let summary = `Build failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
|
|
613
|
-
for (let i = 0; i < errors.length; i++) {
|
|
614
|
-
summary += "\n";
|
|
615
|
-
if (i >= 5) {
|
|
616
|
-
summary += "...";
|
|
617
|
-
break;
|
|
618
|
-
}
|
|
619
|
-
summary += getErrorMessage(errors[i]);
|
|
620
|
-
}
|
|
621
|
-
const wrapper = new Error(summary);
|
|
622
|
-
Object.defineProperty(wrapper, "errors", {
|
|
623
|
-
configurable: true,
|
|
624
|
-
enumerable: true,
|
|
625
|
-
get: () => errors,
|
|
626
|
-
set: (value) => Object.defineProperty(wrapper, "errors", {
|
|
627
|
-
configurable: true,
|
|
628
|
-
enumerable: true,
|
|
629
|
-
value
|
|
630
|
-
})
|
|
631
|
-
});
|
|
632
|
-
return wrapper;
|
|
633
|
-
}
|
|
634
|
-
function getErrorMessage(e) {
|
|
635
|
-
if (Object.hasOwn(e, "kind")) return e.message;
|
|
636
|
-
let s = "";
|
|
637
|
-
if (e.plugin) s += `[plugin ${e.plugin}]`;
|
|
638
|
-
const id = e.id ?? e.loc?.file;
|
|
639
|
-
if (id) {
|
|
640
|
-
s += " " + id;
|
|
641
|
-
if (e.loc) s += `:${e.loc.line}:${e.loc.column}`;
|
|
642
|
-
}
|
|
643
|
-
if (s) s += "\n";
|
|
644
|
-
const message = `${e.name ?? "Error"}: ${e.message}`;
|
|
645
|
-
s += message;
|
|
646
|
-
if (e.frame) s = joinNewLine(s, e.frame);
|
|
647
|
-
if (e.stack) s = joinNewLine(s, e.stack.replace(message, ""));
|
|
648
|
-
if (e.cause) {
|
|
649
|
-
s = joinNewLine(s, "Caused by:");
|
|
650
|
-
s = joinNewLine(s, getErrorMessage(e.cause).split("\n").map((line) => " " + line).join("\n"));
|
|
651
|
-
}
|
|
652
|
-
return s;
|
|
653
|
-
}
|
|
654
|
-
function joinNewLine(s1, s2) {
|
|
655
|
-
return s1.replace(/\n+$/, "") + "\n" + s2.replace(/^\n+/, "");
|
|
656
|
-
}
|
|
657
|
-
|
|
658
579
|
//#endregion
|
|
659
580
|
//#region src/utils/transform-module-info.ts
|
|
660
581
|
function transformModuleInfo(info, option) {
|
|
@@ -672,6 +593,7 @@ function transformModuleInfo(info, option) {
|
|
|
672
593
|
dynamicallyImportedIds: info.dynamicallyImportedIds,
|
|
673
594
|
exports: info.exports,
|
|
674
595
|
isEntry: info.isEntry,
|
|
596
|
+
inputFormat: info.inputFormat,
|
|
675
597
|
...option
|
|
676
598
|
};
|
|
677
599
|
}
|
|
@@ -692,7 +614,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
692
614
|
}
|
|
693
615
|
|
|
694
616
|
//#endregion
|
|
695
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
617
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
696
618
|
function e(e, t, n) {
|
|
697
619
|
let r = (n) => e(n, ...t);
|
|
698
620
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -702,7 +624,7 @@ function e(e, t, n) {
|
|
|
702
624
|
}
|
|
703
625
|
|
|
704
626
|
//#endregion
|
|
705
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
627
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/purry.js
|
|
706
628
|
function t$1(t, n, r) {
|
|
707
629
|
let i = t.length - n.length;
|
|
708
630
|
if (i === 0) return t(...n);
|
|
@@ -711,7 +633,7 @@ function t$1(t, n, r) {
|
|
|
711
633
|
}
|
|
712
634
|
|
|
713
635
|
//#endregion
|
|
714
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
636
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/partition.js
|
|
715
637
|
function t(...t) {
|
|
716
638
|
return t$1(n, t);
|
|
717
639
|
}
|
|
@@ -885,6 +807,7 @@ function bindingifyRenderChunkFilter(filterOption) {
|
|
|
885
807
|
|
|
886
808
|
//#endregion
|
|
887
809
|
//#region src/plugin/bindingify-plugin-hook-meta.ts
|
|
810
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
888
811
|
function bindingifyPluginHookMeta(options) {
|
|
889
812
|
return { order: bindingPluginOrder(options.order) };
|
|
890
813
|
}
|
|
@@ -1024,6 +947,18 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
1024
947
|
}
|
|
1025
948
|
};
|
|
1026
949
|
|
|
950
|
+
//#endregion
|
|
951
|
+
//#region src/plugin/load-plugin-context.ts
|
|
952
|
+
var LoadPluginContextImpl = class extends PluginContextImpl {
|
|
953
|
+
constructor(outputOptions, context, plugin, data, inner, moduleId, onLog, logLevelOption, watchMode) {
|
|
954
|
+
super(outputOptions, context, plugin, data, onLog, logLevelOption, watchMode, moduleId);
|
|
955
|
+
this.inner = inner;
|
|
956
|
+
}
|
|
957
|
+
addWatchFile(id) {
|
|
958
|
+
this.inner.addWatchFile(id);
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
|
|
1027
962
|
//#endregion
|
|
1028
963
|
//#region src/plugin/transform-plugin-context.ts
|
|
1029
964
|
var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
@@ -1063,13 +998,16 @@ var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
|
1063
998
|
|
|
1064
999
|
//#endregion
|
|
1065
1000
|
//#region src/plugin/bindingify-build-hooks.ts
|
|
1001
|
+
function createPluginContext(args, ctx) {
|
|
1002
|
+
return new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode);
|
|
1003
|
+
}
|
|
1066
1004
|
function bindingifyBuildStart(args) {
|
|
1067
1005
|
const hook = args.plugin.buildStart;
|
|
1068
1006
|
if (!hook) return {};
|
|
1069
1007
|
const { handler, meta } = normalizeHook(hook);
|
|
1070
1008
|
return {
|
|
1071
1009
|
plugin: async (ctx, opts) => {
|
|
1072
|
-
await handler.call(
|
|
1010
|
+
await handler.call(createPluginContext(args, ctx), args.pluginContextData.getInputOptions(opts));
|
|
1073
1011
|
},
|
|
1074
1012
|
meta: bindingifyPluginHookMeta(meta)
|
|
1075
1013
|
};
|
|
@@ -1080,7 +1018,7 @@ function bindingifyBuildEnd(args) {
|
|
|
1080
1018
|
const { handler, meta } = normalizeHook(hook);
|
|
1081
1019
|
return {
|
|
1082
1020
|
plugin: async (ctx, err) => {
|
|
1083
|
-
await handler.call(
|
|
1021
|
+
await handler.call(createPluginContext(args, ctx), err ? aggregateBindingErrorsIntoJsError(err) : void 0);
|
|
1084
1022
|
},
|
|
1085
1023
|
meta: bindingifyPluginHookMeta(meta)
|
|
1086
1024
|
};
|
|
@@ -1092,7 +1030,7 @@ function bindingifyResolveId(args) {
|
|
|
1092
1030
|
return {
|
|
1093
1031
|
plugin: async (ctx, specifier, importer, extraOptions) => {
|
|
1094
1032
|
const contextResolveOptions = extraOptions.custom != null ? args.pluginContextData.getSavedResolveOptions(extraOptions.custom) : void 0;
|
|
1095
|
-
const ret = await handler.call(
|
|
1033
|
+
const ret = await handler.call(createPluginContext(args, ctx), specifier, importer ?? void 0, {
|
|
1096
1034
|
...extraOptions,
|
|
1097
1035
|
custom: contextResolveOptions?.custom
|
|
1098
1036
|
});
|
|
@@ -1129,7 +1067,7 @@ function bindingifyResolveDynamicImport(args) {
|
|
|
1129
1067
|
const { handler, meta } = normalizeHook(hook);
|
|
1130
1068
|
return {
|
|
1131
1069
|
plugin: async (ctx, specifier, importer) => {
|
|
1132
|
-
const ret = await handler.call(
|
|
1070
|
+
const ret = await handler.call(createPluginContext(args, ctx), specifier, importer ?? void 0);
|
|
1133
1071
|
if (ret == null) return;
|
|
1134
1072
|
if (ret === false) return {
|
|
1135
1073
|
id: specifier,
|
|
@@ -1219,7 +1157,7 @@ function bindingifyLoad(args) {
|
|
|
1219
1157
|
const { handler, meta, options } = normalizeHook(hook);
|
|
1220
1158
|
return {
|
|
1221
1159
|
plugin: async (ctx, id) => {
|
|
1222
|
-
const ret = await handler.call(new
|
|
1160
|
+
const ret = await handler.call(new LoadPluginContextImpl(args.outputOptions, ctx.inner(), args.plugin, args.pluginContextData, ctx, id, args.onLog, args.logLevel, args.watchMode), id);
|
|
1223
1161
|
if (ret == null) return;
|
|
1224
1162
|
if (typeof ret === "string") return { code: ret };
|
|
1225
1163
|
let moduleOption = args.pluginContextData.updateModuleOption(id, {
|
|
@@ -1255,7 +1193,7 @@ function bindingifyModuleParsed(args) {
|
|
|
1255
1193
|
const { handler, meta } = normalizeHook(hook);
|
|
1256
1194
|
return {
|
|
1257
1195
|
plugin: async (ctx, moduleInfo) => {
|
|
1258
|
-
await handler.call(
|
|
1196
|
+
await handler.call(createPluginContext(args, ctx), transformModuleInfo(moduleInfo, args.pluginContextData.getModuleOption(moduleInfo.id)));
|
|
1259
1197
|
},
|
|
1260
1198
|
meta: bindingifyPluginHookMeta(meta)
|
|
1261
1199
|
};
|
|
@@ -1729,12 +1667,6 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
1729
1667
|
get sourcemapBaseUrl() {
|
|
1730
1668
|
return this.inner.sourcemapBaseUrl ?? void 0;
|
|
1731
1669
|
}
|
|
1732
|
-
get cssEntryFileNames() {
|
|
1733
|
-
return this.inner.cssEntryFilenames || this.outputOptions.cssEntryFileNames;
|
|
1734
|
-
}
|
|
1735
|
-
get cssChunkFileNames() {
|
|
1736
|
-
return this.inner.cssChunkFilenames || this.outputOptions.cssChunkFileNames;
|
|
1737
|
-
}
|
|
1738
1670
|
get shimMissingExports() {
|
|
1739
1671
|
return this.inner.shimMissingExports;
|
|
1740
1672
|
}
|
|
@@ -1813,6 +1745,14 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
1813
1745
|
get legalComments() {
|
|
1814
1746
|
return this.inner.legalComments;
|
|
1815
1747
|
}
|
|
1748
|
+
get comments() {
|
|
1749
|
+
const c = this.inner.comments;
|
|
1750
|
+
return {
|
|
1751
|
+
legal: c.legal ?? true,
|
|
1752
|
+
annotation: c.annotation ?? true,
|
|
1753
|
+
jsdoc: c.jsdoc ?? true
|
|
1754
|
+
};
|
|
1755
|
+
}
|
|
1816
1756
|
get polyfillRequire() {
|
|
1817
1757
|
return this.inner.polyfillRequire;
|
|
1818
1758
|
}
|
|
@@ -1843,8 +1783,6 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "format", null);
|
|
|
1843
1783
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "exports", null);
|
|
1844
1784
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemap", null);
|
|
1845
1785
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapBaseUrl", null);
|
|
1846
|
-
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "cssEntryFileNames", null);
|
|
1847
|
-
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "cssChunkFileNames", null);
|
|
1848
1786
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "shimMissingExports", null);
|
|
1849
1787
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "name", null);
|
|
1850
1788
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "file", null);
|
|
@@ -1868,6 +1806,7 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapIgnoreLi
|
|
|
1868
1806
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapPathTransform", null);
|
|
1869
1807
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "minify", null);
|
|
1870
1808
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "legalComments", null);
|
|
1809
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "comments", null);
|
|
1871
1810
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "polyfillRequire", null);
|
|
1872
1811
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "plugins", null);
|
|
1873
1812
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "preserveModules", null);
|
|
@@ -2235,4 +2174,4 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
2235
2174
|
}
|
|
2236
2175
|
|
|
2237
2176
|
//#endregion
|
|
2238
|
-
export {
|
|
2177
|
+
export { version as S, LOG_LEVEL_WARN as _, transformToRollupOutput as a, VERSION as b, transformAssetSource as c, MinimalPluginContextImpl as d, normalizeHook as f, LOG_LEVEL_INFO as g, LOG_LEVEL_ERROR as h, transformModuleInfo as i, lazyProp as l, LOG_LEVEL_DEBUG as m, PluginContextData as n, transformRenderedChunk as o, normalizeLog as p, bindingifyPlugin as r, __decorate as s, bindingifyInputOptions as t, PlainObjectLike as u, logLevelPriority as v, description as x, RUNTIME_MODULE_ID as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-tBSnk6HY.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -17,9 +17,6 @@ function viteImportGlobPlugin(config) {
|
|
|
17
17
|
function viteReporterPlugin(config) {
|
|
18
18
|
return new BuiltinPlugin("builtin:vite-reporter", config);
|
|
19
19
|
}
|
|
20
|
-
function viteWasmHelperPlugin(config) {
|
|
21
|
-
return new BuiltinPlugin("builtin:vite-wasm-helper", config);
|
|
22
|
-
}
|
|
23
20
|
function viteWasmFallbackPlugin() {
|
|
24
21
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-wasm-fallback"));
|
|
25
22
|
}
|
|
@@ -44,6 +41,12 @@ function isolatedDeclarationPlugin(config) {
|
|
|
44
41
|
function viteWebWorkerPostPlugin() {
|
|
45
42
|
return new BuiltinPlugin("builtin:vite-web-worker-post");
|
|
46
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* A plugin that converts CommonJS require() calls for external dependencies into ESM import statements.
|
|
46
|
+
*
|
|
47
|
+
* @see https://rolldown.rs/builtin-plugins/esm-external-require
|
|
48
|
+
* @category Builtin Plugins
|
|
49
|
+
*/
|
|
47
50
|
function esmExternalRequirePlugin(config) {
|
|
48
51
|
const plugin = new BuiltinPlugin("builtin:esm-external-require", config);
|
|
49
52
|
plugin.enforce = "pre";
|
|
@@ -58,4 +61,4 @@ function viteReactRefreshWrapperPlugin(config) {
|
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
//#endregion
|
|
61
|
-
export { viteImportGlobPlugin as a, viteModulePreloadPolyfillPlugin as c, viteResolvePlugin as d, viteWasmFallbackPlugin as f, viteDynamicImportVarsPlugin as i, viteReactRefreshWrapperPlugin as l,
|
|
64
|
+
export { viteImportGlobPlugin as a, viteModulePreloadPolyfillPlugin as c, viteResolvePlugin as d, viteWasmFallbackPlugin as f, viteDynamicImportVarsPlugin as i, viteReactRefreshWrapperPlugin as l, isolatedDeclarationPlugin as n, viteJsonPlugin as o, viteWebWorkerPostPlugin as p, viteBuildImportAnalysisPlugin as r, viteLoadFallbackPlugin as s, esmExternalRequirePlugin as t, viteReporterPlugin as u };
|