@rollipop/rolldown 1.0.0-rc.5 → 1.0.0-rc.6
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.mjs +768 -185
- package/dist/config.d.mts +1 -2
- package/dist/config.mjs +2 -8
- package/dist/experimental-index.d.mts +7 -7
- package/dist/experimental-index.mjs +12 -13
- package/dist/filter-index.d.mts +1 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +5 -10
- package/dist/parallel-plugin-worker.mjs +2 -5
- package/dist/parallel-plugin.d.mts +1 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -3
- package/dist/shared/{binding-MOe7QjvW.d.mts → binding-BEVObikP.d.mts} +29 -17
- package/dist/shared/{binding-BpAdsRMp.mjs → binding-BaD00V3B.mjs} +26 -26
- package/dist/shared/{bindingify-input-options-DlgCN9zc.mjs → bindingify-input-options-KbcygofY.mjs} +50 -12
- package/dist/shared/{constructors-BVMsBEI4.d.mts → constructors-C0o3D5kM.d.mts} +7 -3
- package/dist/shared/{constructors-ByA8Vmcs.mjs → constructors-DoVEGpfv.mjs} +8 -2
- package/dist/shared/{define-config-D2erlXSV.d.mts → define-config-Dcf0-wDh.d.mts} +61 -12
- package/dist/shared/{error-Rnftw-T1.mjs → error-DMdvzIth.mjs} +1 -1
- package/dist/shared/{load-config-C1TxsD8r.mjs → load-config-Cl0c9rzt.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-BFIgWR19.mjs → normalize-string-or-regex-C438JWX3.mjs} +20 -12
- package/dist/shared/{parse-BuECM1WH.mjs → parse-B_pfrOxH.mjs} +2 -2
- package/dist/shared/{transform-CFiExOzd.mjs → resolve-tsconfig-C4k6MVJe.mjs} +28 -5
- package/dist/shared/{rolldown-build-Cc7GWaEw.mjs → rolldown-build-CLB7U-T8.mjs} +16 -11
- package/dist/shared/{rolldown-BpbRpba4.mjs → rolldown-cb9tsyMG.mjs} +1 -1
- package/dist/shared/{transform-DKslvixZ.d.mts → transform-CHWi6pVJ.d.mts} +19 -2
- package/dist/shared/{watch-BBA-reCD.mjs → watch-dXreyeuN.mjs} +4 -4
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +5 -8
- package/package.json +19 -18
|
@@ -103,7 +103,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
103
103
|
try {
|
|
104
104
|
const binding = __require("@rollipop/rolldown-binding-android-arm64");
|
|
105
105
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm64/package.json").version;
|
|
106
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
106
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
107
107
|
return binding;
|
|
108
108
|
} catch (e) {
|
|
109
109
|
loadErrors.push(e);
|
|
@@ -117,7 +117,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
117
117
|
try {
|
|
118
118
|
const binding = __require("@rollipop/rolldown-binding-android-arm-eabi");
|
|
119
119
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm-eabi/package.json").version;
|
|
120
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
120
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
121
121
|
return binding;
|
|
122
122
|
} catch (e) {
|
|
123
123
|
loadErrors.push(e);
|
|
@@ -132,7 +132,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
132
132
|
try {
|
|
133
133
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-gnu");
|
|
134
134
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-gnu/package.json").version;
|
|
135
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
135
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
136
136
|
return binding;
|
|
137
137
|
} catch (e) {
|
|
138
138
|
loadErrors.push(e);
|
|
@@ -146,7 +146,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
146
146
|
try {
|
|
147
147
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-msvc");
|
|
148
148
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-msvc/package.json").version;
|
|
149
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
149
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
150
150
|
return binding;
|
|
151
151
|
} catch (e) {
|
|
152
152
|
loadErrors.push(e);
|
|
@@ -161,7 +161,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
161
161
|
try {
|
|
162
162
|
const binding = __require("@rollipop/rolldown-binding-win32-ia32-msvc");
|
|
163
163
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-ia32-msvc/package.json").version;
|
|
164
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
164
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
165
165
|
return binding;
|
|
166
166
|
} catch (e) {
|
|
167
167
|
loadErrors.push(e);
|
|
@@ -175,7 +175,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
175
175
|
try {
|
|
176
176
|
const binding = __require("@rollipop/rolldown-binding-win32-arm64-msvc");
|
|
177
177
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-arm64-msvc/package.json").version;
|
|
178
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
178
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
179
179
|
return binding;
|
|
180
180
|
} catch (e) {
|
|
181
181
|
loadErrors.push(e);
|
|
@@ -190,7 +190,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
190
190
|
try {
|
|
191
191
|
const binding = __require("@rollipop/rolldown-binding-darwin-universal");
|
|
192
192
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-universal/package.json").version;
|
|
193
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
193
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
194
194
|
return binding;
|
|
195
195
|
} catch (e) {
|
|
196
196
|
loadErrors.push(e);
|
|
@@ -204,7 +204,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
204
204
|
try {
|
|
205
205
|
const binding = __require("@rollipop/rolldown-binding-darwin-x64");
|
|
206
206
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-x64/package.json").version;
|
|
207
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
207
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
208
208
|
return binding;
|
|
209
209
|
} catch (e) {
|
|
210
210
|
loadErrors.push(e);
|
|
@@ -218,7 +218,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
218
218
|
try {
|
|
219
219
|
const binding = __require("@rollipop/rolldown-binding-darwin-arm64");
|
|
220
220
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-arm64/package.json").version;
|
|
221
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
221
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
222
222
|
return binding;
|
|
223
223
|
} catch (e) {
|
|
224
224
|
loadErrors.push(e);
|
|
@@ -233,7 +233,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
233
233
|
try {
|
|
234
234
|
const binding = __require("@rollipop/rolldown-binding-freebsd-x64");
|
|
235
235
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-x64/package.json").version;
|
|
236
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
236
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
237
237
|
return binding;
|
|
238
238
|
} catch (e) {
|
|
239
239
|
loadErrors.push(e);
|
|
@@ -247,7 +247,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
247
247
|
try {
|
|
248
248
|
const binding = __require("@rollipop/rolldown-binding-freebsd-arm64");
|
|
249
249
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-arm64/package.json").version;
|
|
250
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
250
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
251
251
|
return binding;
|
|
252
252
|
} catch (e) {
|
|
253
253
|
loadErrors.push(e);
|
|
@@ -262,7 +262,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
262
262
|
try {
|
|
263
263
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-musl");
|
|
264
264
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-musl/package.json").version;
|
|
265
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
265
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
266
266
|
return binding;
|
|
267
267
|
} catch (e) {
|
|
268
268
|
loadErrors.push(e);
|
|
@@ -276,7 +276,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
276
276
|
try {
|
|
277
277
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-gnu");
|
|
278
278
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-gnu/package.json").version;
|
|
279
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
279
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
280
280
|
return binding;
|
|
281
281
|
} catch (e) {
|
|
282
282
|
loadErrors.push(e);
|
|
@@ -291,7 +291,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
291
291
|
try {
|
|
292
292
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-musl");
|
|
293
293
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-musl/package.json").version;
|
|
294
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
294
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
295
295
|
return binding;
|
|
296
296
|
} catch (e) {
|
|
297
297
|
loadErrors.push(e);
|
|
@@ -305,7 +305,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
305
305
|
try {
|
|
306
306
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-gnu");
|
|
307
307
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-gnu/package.json").version;
|
|
308
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
308
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
309
309
|
return binding;
|
|
310
310
|
} catch (e) {
|
|
311
311
|
loadErrors.push(e);
|
|
@@ -320,7 +320,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
320
320
|
try {
|
|
321
321
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-musleabihf");
|
|
322
322
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-musleabihf/package.json").version;
|
|
323
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
323
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
324
324
|
return binding;
|
|
325
325
|
} catch (e) {
|
|
326
326
|
loadErrors.push(e);
|
|
@@ -334,7 +334,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
334
334
|
try {
|
|
335
335
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf");
|
|
336
336
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf/package.json").version;
|
|
337
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
337
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
338
338
|
return binding;
|
|
339
339
|
} catch (e) {
|
|
340
340
|
loadErrors.push(e);
|
|
@@ -349,7 +349,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
349
349
|
try {
|
|
350
350
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-musl");
|
|
351
351
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-musl/package.json").version;
|
|
352
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
352
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
353
353
|
return binding;
|
|
354
354
|
} catch (e) {
|
|
355
355
|
loadErrors.push(e);
|
|
@@ -363,7 +363,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
363
363
|
try {
|
|
364
364
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-gnu");
|
|
365
365
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-gnu/package.json").version;
|
|
366
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
366
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
367
367
|
return binding;
|
|
368
368
|
} catch (e) {
|
|
369
369
|
loadErrors.push(e);
|
|
@@ -378,7 +378,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
378
378
|
try {
|
|
379
379
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-musl");
|
|
380
380
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-musl/package.json").version;
|
|
381
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
381
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
382
382
|
return binding;
|
|
383
383
|
} catch (e) {
|
|
384
384
|
loadErrors.push(e);
|
|
@@ -392,7 +392,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
392
392
|
try {
|
|
393
393
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-gnu");
|
|
394
394
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-gnu/package.json").version;
|
|
395
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
395
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
396
396
|
return binding;
|
|
397
397
|
} catch (e) {
|
|
398
398
|
loadErrors.push(e);
|
|
@@ -407,7 +407,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
407
407
|
try {
|
|
408
408
|
const binding = __require("@rollipop/rolldown-binding-linux-ppc64-gnu");
|
|
409
409
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-ppc64-gnu/package.json").version;
|
|
410
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
410
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
411
411
|
return binding;
|
|
412
412
|
} catch (e) {
|
|
413
413
|
loadErrors.push(e);
|
|
@@ -421,7 +421,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
421
421
|
try {
|
|
422
422
|
const binding = __require("@rollipop/rolldown-binding-linux-s390x-gnu");
|
|
423
423
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-s390x-gnu/package.json").version;
|
|
424
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
424
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
425
425
|
return binding;
|
|
426
426
|
} catch (e) {
|
|
427
427
|
loadErrors.push(e);
|
|
@@ -436,7 +436,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
436
436
|
try {
|
|
437
437
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm64");
|
|
438
438
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm64/package.json").version;
|
|
439
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
439
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
440
440
|
return binding;
|
|
441
441
|
} catch (e) {
|
|
442
442
|
loadErrors.push(e);
|
|
@@ -450,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
450
450
|
try {
|
|
451
451
|
const binding = __require("@rollipop/rolldown-binding-openharmony-x64");
|
|
452
452
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-x64/package.json").version;
|
|
453
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
453
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
454
454
|
return binding;
|
|
455
455
|
} catch (e) {
|
|
456
456
|
loadErrors.push(e);
|
|
@@ -464,7 +464,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
464
464
|
try {
|
|
465
465
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm");
|
|
466
466
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm/package.json").version;
|
|
467
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
467
|
+
if (bindingPackageVersion !== "1.0.0-rc.6" && 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.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
468
468
|
return binding;
|
|
469
469
|
} catch (e) {
|
|
470
470
|
loadErrors.push(e);
|
package/dist/shared/{bindingify-input-options-DlgCN9zc.mjs → bindingify-input-options-KbcygofY.mjs}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-BaD00V3B.mjs";
|
|
2
2
|
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-D80CXhvg.mjs";
|
|
3
|
-
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
3
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-C438JWX3.mjs";
|
|
4
4
|
import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-DJYbNKZX.mjs";
|
|
5
|
-
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-DMdvzIth.mjs";
|
|
6
6
|
import { parseAst } from "../parse-ast-index.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import * as filter from "@rollipop/rolldown-pluginutils";
|
|
9
9
|
import fsp from "node:fs/promises";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-rc.
|
|
11
|
+
var version = "1.0.0-rc.6";
|
|
12
12
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/constants/version.ts
|
|
@@ -217,7 +217,7 @@ function bindingAssetSource(source) {
|
|
|
217
217
|
return { inner: source };
|
|
218
218
|
}
|
|
219
219
|
//#endregion
|
|
220
|
-
//#region \0@oxc-project+runtime@0.
|
|
220
|
+
//#region \0@oxc-project+runtime@0.121.0/helpers/decorate.js
|
|
221
221
|
function __decorate(decorators, target, key, desc) {
|
|
222
222
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
223
223
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -560,6 +560,38 @@ function collectChangedBundle(changed, bundle) {
|
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
562
|
//#endregion
|
|
563
|
+
//#region src/binding-magic-string.ts
|
|
564
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
565
|
+
Object.defineProperty(import_binding.BindingMagicString.prototype, "isRolldownMagicString", {
|
|
566
|
+
value: true,
|
|
567
|
+
writable: false,
|
|
568
|
+
configurable: false
|
|
569
|
+
});
|
|
570
|
+
const nativeReplace = import_binding.BindingMagicString.prototype.replace;
|
|
571
|
+
const nativeReplaceAll = import_binding.BindingMagicString.prototype.replaceAll;
|
|
572
|
+
import_binding.BindingMagicString.prototype.replace = function(searchValue, replacement) {
|
|
573
|
+
if (typeof searchValue === "string") return nativeReplace.call(this, searchValue, replacement);
|
|
574
|
+
if (searchValue.global) searchValue.lastIndex = 0;
|
|
575
|
+
const lastMatchEnd = this.replaceRegex(searchValue, replacement);
|
|
576
|
+
if (searchValue.global) searchValue.lastIndex = 0;
|
|
577
|
+
else if (searchValue.sticky) searchValue.lastIndex = lastMatchEnd === -1 ? 0 : lastMatchEnd;
|
|
578
|
+
return this;
|
|
579
|
+
};
|
|
580
|
+
import_binding.BindingMagicString.prototype.replaceAll = function(searchValue, replacement) {
|
|
581
|
+
if (typeof searchValue === "string") return nativeReplaceAll.call(this, searchValue, replacement);
|
|
582
|
+
if (!searchValue.global) throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");
|
|
583
|
+
searchValue.lastIndex = 0;
|
|
584
|
+
this.replaceRegex(searchValue, replacement);
|
|
585
|
+
searchValue.lastIndex = 0;
|
|
586
|
+
return this;
|
|
587
|
+
};
|
|
588
|
+
/**
|
|
589
|
+
* A native MagicString implementation powered by Rust.
|
|
590
|
+
*
|
|
591
|
+
* @experimental
|
|
592
|
+
*/
|
|
593
|
+
const RolldownMagicString = import_binding.BindingMagicString;
|
|
594
|
+
//#endregion
|
|
563
595
|
//#region src/utils/transform-module-info.ts
|
|
564
596
|
function transformModuleInfo(info, option) {
|
|
565
597
|
return {
|
|
@@ -784,7 +816,6 @@ function bindingifyRenderChunkFilter(filterOption) {
|
|
|
784
816
|
}
|
|
785
817
|
//#endregion
|
|
786
818
|
//#region src/plugin/bindingify-plugin-hook-meta.ts
|
|
787
|
-
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
788
819
|
function bindingifyPluginHookMeta(options) {
|
|
789
820
|
return { order: bindingPluginOrder(options.order) };
|
|
790
821
|
}
|
|
@@ -1072,7 +1103,7 @@ function bindingifyTransform(args) {
|
|
|
1072
1103
|
Object.defineProperties(meta, {
|
|
1073
1104
|
magicString: { get() {
|
|
1074
1105
|
if (magicStringInstance) return magicStringInstance;
|
|
1075
|
-
magicStringInstance = new
|
|
1106
|
+
magicStringInstance = new RolldownMagicString(code);
|
|
1076
1107
|
return magicStringInstance;
|
|
1077
1108
|
} },
|
|
1078
1109
|
ast: { get() {
|
|
@@ -1106,7 +1137,7 @@ function bindingifyTransform(args) {
|
|
|
1106
1137
|
let normalizedCode = void 0;
|
|
1107
1138
|
let map = ret.map;
|
|
1108
1139
|
if (typeof ret.code === "string") normalizedCode = ret.code;
|
|
1109
|
-
else if (ret.code instanceof
|
|
1140
|
+
else if (ret.code instanceof RolldownMagicString) {
|
|
1110
1141
|
let magicString = ret.code;
|
|
1111
1142
|
normalizedCode = magicString.toString();
|
|
1112
1143
|
let fallbackSourcemap = ctx.sendMagicString(magicString);
|
|
@@ -1195,14 +1226,14 @@ function bindingifyRenderChunk(args) {
|
|
|
1195
1226
|
if (args.options.experimental?.nativeMagicString) Object.defineProperty(renderChunkMeta, "magicString", {
|
|
1196
1227
|
get() {
|
|
1197
1228
|
if (magicStringInstance) return magicStringInstance;
|
|
1198
|
-
magicStringInstance = new
|
|
1229
|
+
magicStringInstance = new RolldownMagicString(code);
|
|
1199
1230
|
return magicStringInstance;
|
|
1200
1231
|
},
|
|
1201
1232
|
configurable: true
|
|
1202
1233
|
});
|
|
1203
1234
|
const ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), code, transformRenderedChunk(chunk), args.pluginContextData.getOutputOptions(opts), renderChunkMeta);
|
|
1204
1235
|
if (ret == null) return;
|
|
1205
|
-
if (ret instanceof
|
|
1236
|
+
if (ret instanceof RolldownMagicString) {
|
|
1206
1237
|
const normalizedCode = ret.toString();
|
|
1207
1238
|
const generatedMap = ret.generateMap();
|
|
1208
1239
|
return {
|
|
@@ -1217,7 +1248,7 @@ function bindingifyRenderChunk(args) {
|
|
|
1217
1248
|
};
|
|
1218
1249
|
}
|
|
1219
1250
|
if (typeof ret === "string") return { code: ret };
|
|
1220
|
-
if (ret.code instanceof
|
|
1251
|
+
if (ret.code instanceof RolldownMagicString) {
|
|
1221
1252
|
const magicString = ret.code;
|
|
1222
1253
|
const normalizedCode = magicString.toString();
|
|
1223
1254
|
if (ret.map === null) return { code: normalizedCode };
|
|
@@ -1697,6 +1728,9 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
1697
1728
|
get sourcemapDebugIds() {
|
|
1698
1729
|
return this.inner.sourcemapDebugIds;
|
|
1699
1730
|
}
|
|
1731
|
+
get sourcemapExcludeSources() {
|
|
1732
|
+
return this.inner.sourcemapExcludeSources;
|
|
1733
|
+
}
|
|
1700
1734
|
get sourcemapIgnoreList() {
|
|
1701
1735
|
return this.outputOptions.sourcemapIgnoreList;
|
|
1702
1736
|
}
|
|
@@ -1772,6 +1806,7 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "globals", null);
|
|
|
1772
1806
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "paths", null);
|
|
1773
1807
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "hashCharacters", null);
|
|
1774
1808
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapDebugIds", null);
|
|
1809
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapExcludeSources", null);
|
|
1775
1810
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapIgnoreList", null);
|
|
1776
1811
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapPathTransform", null);
|
|
1777
1812
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "minify", null);
|
|
@@ -2087,6 +2122,9 @@ function bindingifyWatch(watch) {
|
|
|
2087
2122
|
usePolling: watcher.usePolling,
|
|
2088
2123
|
pollInterval: watcher.pollInterval,
|
|
2089
2124
|
compareContentsForPolling: watcher.compareContentsForPolling,
|
|
2125
|
+
useDebounce: watcher.useDebounce,
|
|
2126
|
+
debounceDelay: watcher.debounceDelay,
|
|
2127
|
+
debounceTickRate: watcher.debounceTickRate,
|
|
2090
2128
|
include: normalizedStringOrRegex(watch.include),
|
|
2091
2129
|
exclude: normalizedStringOrRegex(watch.exclude),
|
|
2092
2130
|
onInvalidate: (...args) => watch.onInvalidate?.(...args)
|
|
@@ -2152,4 +2190,4 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
2152
2190
|
};
|
|
2153
2191
|
}
|
|
2154
2192
|
//#endregion
|
|
2155
|
-
export { version as S,
|
|
2193
|
+
export { version as C, description as S, LOG_LEVEL_INFO as _, RolldownMagicString as a, RUNTIME_MODULE_ID as b, __decorate as c, PlainObjectLike as d, MinimalPluginContextImpl as f, LOG_LEVEL_ERROR as g, LOG_LEVEL_DEBUG as h, transformModuleInfo as i, transformAssetSource as l, normalizeLog as m, PluginContextData as n, transformToRollupOutput as o, normalizeHook as p, bindingifyPlugin as r, transformRenderedChunk as s, bindingifyInputOptions as t, lazyProp as u, LOG_LEVEL_WARN as v, VERSION as x, logLevelPriority as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import {
|
|
1
|
+
import { C as BindingViteImportGlobPluginConfig, D as BindingViteReactRefreshWrapperPluginConfig, E as BindingViteModulePreloadPolyfillPluginConfig, O as BindingViteReporterPluginConfig, S as BindingViteDynamicImportVarsPluginConfig, k as BindingViteResolvePluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteJsonPluginConfig, x as BindingViteBuildImportAnalysisPluginConfig } from "./binding-BEVObikP.mjs";
|
|
2
|
+
import { N as BuiltinPlugin, Vt as StringOrRegExp } from "./define-config-Dcf0-wDh.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -28,6 +28,10 @@ type ViteReactRefreshWrapperPluginConfig = Omit<BindingViteReactRefreshWrapperPl
|
|
|
28
28
|
include?: StringOrRegExp | StringOrRegExp[];
|
|
29
29
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* This plugin should not be used for Rolldown.
|
|
33
|
+
*/
|
|
34
|
+
declare function oxcRuntimePlugin(): BuiltinPlugin;
|
|
31
35
|
declare function viteReactRefreshWrapperPlugin(config: ViteReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
32
36
|
//#endregion
|
|
33
|
-
export {
|
|
37
|
+
export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l, viteWebWorkerPostPlugin as m, isolatedDeclarationPlugin as n, viteImportGlobPlugin as o, viteWasmFallbackPlugin as p, oxcRuntimePlugin as r, viteJsonPlugin as s, esmExternalRequirePlugin as t, viteReactRefreshWrapperPlugin as u };
|
|
@@ -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-C438JWX3.mjs";
|
|
2
2
|
//#region src/builtin-plugin/constructors.ts
|
|
3
3
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
4
4
|
return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
|
|
@@ -51,6 +51,12 @@ function esmExternalRequirePlugin(config) {
|
|
|
51
51
|
plugin.enforce = "pre";
|
|
52
52
|
return plugin;
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* This plugin should not be used for Rolldown.
|
|
56
|
+
*/
|
|
57
|
+
function oxcRuntimePlugin() {
|
|
58
|
+
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:oxc-runtime"));
|
|
59
|
+
}
|
|
54
60
|
function viteReactRefreshWrapperPlugin(config) {
|
|
55
61
|
if (config) {
|
|
56
62
|
config.include = normalizedStringOrRegex(config.include);
|
|
@@ -59,4 +65,4 @@ function viteReactRefreshWrapperPlugin(config) {
|
|
|
59
65
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
|
|
60
66
|
}
|
|
61
67
|
//#endregion
|
|
62
|
-
export {
|
|
68
|
+
export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l, viteWebWorkerPostPlugin as m, isolatedDeclarationPlugin as n, viteImportGlobPlugin as o, viteWasmFallbackPlugin as p, oxcRuntimePlugin as r, viteJsonPlugin as s, esmExternalRequirePlugin as t, viteReactRefreshWrapperPlugin as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-C6h4g8dA.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { B as ParserOptions, F as JsxOptions, G as TransformOptions$1, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, _ as BindingTransformHookExtraArgs, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, j as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString } from "./binding-BEVObikP.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rollipop/rolldown-pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
@@ -465,6 +465,16 @@ interface OutputOptions {
|
|
|
465
465
|
*/
|
|
466
466
|
sourcemapPathTransform?: SourcemapPathTransformOption;
|
|
467
467
|
/**
|
|
468
|
+
* Whether to exclude the original source code from sourcemaps.
|
|
469
|
+
*
|
|
470
|
+
* When `true`, the `sourcesContent` field is omitted from the generated sourcemap,
|
|
471
|
+
* reducing the sourcemap file size. The sourcemap will still contain source file paths
|
|
472
|
+
* and mappings, so debugging works if the original files are available.
|
|
473
|
+
*
|
|
474
|
+
* @default false
|
|
475
|
+
*/
|
|
476
|
+
sourcemapExcludeSources?: boolean;
|
|
477
|
+
/**
|
|
468
478
|
* A string to prepend to the bundle before {@linkcode Plugin.renderChunk | renderChunk} hook.
|
|
469
479
|
*
|
|
470
480
|
* See {@linkcode intro | output.intro}, {@linkcode postBanner | output.postBanner} as well.
|
|
@@ -595,11 +605,11 @@ interface OutputOptions {
|
|
|
595
605
|
* Rolldown uses Oxc Minifier under the hood. See Oxc's [minification documentation](https://oxc.rs/docs/guide/usage/minifier#features) for more details.
|
|
596
606
|
*
|
|
597
607
|
* - `true`: Enable full minification including code compression and dead code elimination
|
|
598
|
-
* - `false`: Disable minification
|
|
599
|
-
* - `'dce-only'`: Only perform dead code elimination without code compression
|
|
608
|
+
* - `false`: Disable minification
|
|
609
|
+
* - `'dce-only'`: Only perform dead code elimination without code compression (default)
|
|
600
610
|
* - `MinifyOptions`: Fine-grained control over minification settings
|
|
601
611
|
*
|
|
602
|
-
* @default
|
|
612
|
+
* @default 'dce-only'
|
|
603
613
|
*/
|
|
604
614
|
minify?: boolean | "dce-only" | MinifyOptions;
|
|
605
615
|
/**
|
|
@@ -1409,6 +1419,25 @@ interface RolldownWatcher {
|
|
|
1409
1419
|
*/
|
|
1410
1420
|
declare function watch(input: WatchOptions | WatchOptions[]): RolldownWatcher;
|
|
1411
1421
|
//#endregion
|
|
1422
|
+
//#region src/binding-magic-string.d.ts
|
|
1423
|
+
interface RolldownMagicString extends BindingMagicString {
|
|
1424
|
+
readonly isRolldownMagicString: true;
|
|
1425
|
+
/** Accepts a string or RegExp pattern. RegExp supports `$&`, `$$`, and `$N` substitutions. */
|
|
1426
|
+
replace(from: string | RegExp, to: string): this;
|
|
1427
|
+
/** Accepts a string or RegExp pattern. RegExp must have the global (`g`) flag. */
|
|
1428
|
+
replaceAll(from: string | RegExp, to: string): this;
|
|
1429
|
+
}
|
|
1430
|
+
type RolldownMagicStringConstructor = Omit<typeof BindingMagicString, "prototype"> & {
|
|
1431
|
+
new (...args: ConstructorParameters<typeof BindingMagicString>): RolldownMagicString;
|
|
1432
|
+
prototype: RolldownMagicString;
|
|
1433
|
+
};
|
|
1434
|
+
/**
|
|
1435
|
+
* A native MagicString implementation powered by Rust.
|
|
1436
|
+
*
|
|
1437
|
+
* @experimental
|
|
1438
|
+
*/
|
|
1439
|
+
declare const RolldownMagicString: RolldownMagicStringConstructor;
|
|
1440
|
+
//#endregion
|
|
1412
1441
|
//#region src/log/log-handler.d.ts
|
|
1413
1442
|
type LoggingFunction = (log: RolldownLog | string | (() => RolldownLog | string)) => void;
|
|
1414
1443
|
type LoggingFunctionWithPosition = (log: RolldownLog | string | (() => RolldownLog | string), pos?: number | {
|
|
@@ -1750,6 +1779,8 @@ interface NormalizedOutputOptions {
|
|
|
1750
1779
|
hashCharacters: "base64" | "base36" | "hex";
|
|
1751
1780
|
/** @see {@linkcode OutputOptions.sourcemapDebugIds | sourcemapDebugIds} */
|
|
1752
1781
|
sourcemapDebugIds: boolean;
|
|
1782
|
+
/** @see {@linkcode OutputOptions.sourcemapExcludeSources | sourcemapExcludeSources} */
|
|
1783
|
+
sourcemapExcludeSources: boolean;
|
|
1753
1784
|
/** @see {@linkcode OutputOptions.sourcemapIgnoreList | sourcemapIgnoreList} */
|
|
1754
1785
|
sourcemapIgnoreList: boolean | SourcemapIgnoreListOption | StringOrRegExp | undefined;
|
|
1755
1786
|
/** @see {@linkcode OutputOptions.sourcemapPathTransform | sourcemapPathTransform} */
|
|
@@ -1934,8 +1965,6 @@ interface PluginContextMeta {
|
|
|
1934
1965
|
}
|
|
1935
1966
|
/** @category Plugin APIs */
|
|
1936
1967
|
interface MinimalPluginContext {
|
|
1937
|
-
/** @hidden */
|
|
1938
|
-
readonly pluginName: string;
|
|
1939
1968
|
/**
|
|
1940
1969
|
* Similar to {@linkcode warn | this.warn}, except that it will also abort
|
|
1941
1970
|
* the bundling process with an error.
|
|
@@ -2651,7 +2680,7 @@ type ResolveIdResult = string | NullValue | false | PartialResolvedId;
|
|
|
2651
2680
|
type LoadResult = NullValue | string | SourceDescription;
|
|
2652
2681
|
/** @inline @category Plugin APIs */
|
|
2653
2682
|
type TransformResult = NullValue | string | (Omit<SourceDescription, "code"> & {
|
|
2654
|
-
code?: string |
|
|
2683
|
+
code?: string | RolldownMagicString;
|
|
2655
2684
|
});
|
|
2656
2685
|
type RenderedChunkMeta = {
|
|
2657
2686
|
/**
|
|
@@ -2664,7 +2693,7 @@ type RenderedChunkMeta = {
|
|
|
2664
2693
|
* Use this to perform string transformations with automatic source map support.
|
|
2665
2694
|
* This is only available when `experimental.nativeMagicString` is enabled.
|
|
2666
2695
|
*/
|
|
2667
|
-
magicString?:
|
|
2696
|
+
magicString?: RolldownMagicString;
|
|
2668
2697
|
};
|
|
2669
2698
|
/** @category Plugin APIs */
|
|
2670
2699
|
interface FunctionPluginHooks {
|
|
@@ -2771,7 +2800,7 @@ interface FunctionPluginHooks {
|
|
|
2771
2800
|
*/
|
|
2772
2801
|
[DEFINED_HOOK_NAMES.transform]: (this: TransformPluginContext, code: string, id: string, meta: BindingTransformHookExtraArgs & {
|
|
2773
2802
|
moduleType: ModuleType;
|
|
2774
|
-
magicString?:
|
|
2803
|
+
magicString?: RolldownMagicString;
|
|
2775
2804
|
ast?: Program;
|
|
2776
2805
|
}) => TransformResult;
|
|
2777
2806
|
/**
|
|
@@ -2824,8 +2853,8 @@ interface FunctionPluginHooks {
|
|
|
2824
2853
|
*
|
|
2825
2854
|
* @group Output Generation Hooks
|
|
2826
2855
|
*/
|
|
2827
|
-
[DEFINED_HOOK_NAMES.renderChunk]: (this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta) => NullValue | string |
|
|
2828
|
-
code: string |
|
|
2856
|
+
[DEFINED_HOOK_NAMES.renderChunk]: (this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta) => NullValue | string | RolldownMagicString | {
|
|
2857
|
+
code: string | RolldownMagicString;
|
|
2829
2858
|
map?: SourceMapInput;
|
|
2830
2859
|
};
|
|
2831
2860
|
/**
|
|
@@ -3056,6 +3085,24 @@ interface WatcherFileWatcherOptions {
|
|
|
3056
3085
|
* @default false
|
|
3057
3086
|
*/
|
|
3058
3087
|
compareContentsForPolling?: boolean;
|
|
3088
|
+
/**
|
|
3089
|
+
* Whether to use debounced event delivery at the filesystem level.
|
|
3090
|
+
* This coalesces rapid filesystem events before they reach the build coordinator.
|
|
3091
|
+
* @default false
|
|
3092
|
+
*/
|
|
3093
|
+
useDebounce?: boolean;
|
|
3094
|
+
/**
|
|
3095
|
+
* Debounce delay in milliseconds for fs-level debounced watchers.
|
|
3096
|
+
* Only used when {@linkcode useDebounce} is `true`.
|
|
3097
|
+
* @default 10
|
|
3098
|
+
*/
|
|
3099
|
+
debounceDelay?: number;
|
|
3100
|
+
/**
|
|
3101
|
+
* Tick rate in milliseconds for the debouncer's internal polling.
|
|
3102
|
+
* Only used when {@linkcode useDebounce} is `true`.
|
|
3103
|
+
* When undefined, auto-selects 1/4 of debounceDelay.
|
|
3104
|
+
*/
|
|
3105
|
+
debounceTickRate?: number;
|
|
3059
3106
|
}
|
|
3060
3107
|
interface WatcherOptions {
|
|
3061
3108
|
/**
|
|
@@ -3660,6 +3707,8 @@ interface InputOptions {
|
|
|
3660
3707
|
*
|
|
3661
3708
|
* These options only take effect when running with the [`--watch`](/apis/cli#w-watch) flag, or using {@linkcode watch | watch()} API.
|
|
3662
3709
|
*
|
|
3710
|
+
*
|
|
3711
|
+
*
|
|
3663
3712
|
* @experimental
|
|
3664
3713
|
*/
|
|
3665
3714
|
watch?: WatcherOptions | false;
|
|
@@ -3758,4 +3807,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
3758
3807
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
3759
3808
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
3760
3809
|
//#endregion
|
|
3761
|
-
export { GeneralHookFilter as $, SourceDescription as A,
|
|
3810
|
+
export { GeneralHookFilter as $, SourceDescription as A, CodeSplittingOptions as At, TreeshakingOptions as B, PartialNull as Bt, PartialResolvedId as C, AddonFunction as Ct, ResolvedId as D, ChunkingContext as Dt, ResolveIdResult as E, ChunkFileNamesFunction as Et, VERSION as F, MinifyOptions as Ft, EmittedPrebuiltChunk as G, RenderedModule as Gt, EmittedAsset as H, OutputAsset as Ht, BundleError as I, ModuleFormat as It, PluginContextResolveOptions as J, freeExternalMemory as Jt, GetModuleInfo as K, RolldownOutput as Kt, ExistingRawSourceMap as L, OutputOptions as Lt, withFilter as M, GeneratedCodeOptions as Mt, BuiltinPlugin as N, GeneratedCodePreset as Nt, RolldownPlugin as O, CodeSplittingGroup as Ot, RUNTIME_MODULE_ID as P, GlobalsFunction as Pt, PluginContextMeta as Q, SourceMapInput as R, PreRenderedAsset as Rt, ParallelPluginHooks as S, build as St, ResolveIdExtraOptions as T, AdvancedChunksOptions as Tt, EmittedChunk as U, OutputChunk as Ut, TransformPluginContext as V, StringOrRegExp as Vt, EmittedFile as W, RenderedChunk as Wt, defineParallelPlugin as X, SourcemapIgnoreListOption as Xt, DefineParallelPluginResult as Y, ModuleInfo as Yt, MinimalPluginContext as Z, ImportKind as _, RolldownWatcherWatcherEventMap as _t, ExternalOption as a, RolldownFsModule as at, ModuleType as b, RolldownBuild as bt, InputOptions as c, NormalizedInputOptions as ct, WatcherFileWatcherOptions as d, LoggingFunction as dt, HookFilter as et, WatcherOptions as f, WarningHandlerWithDefault as ft, HookFilterExtension as g, RolldownWatcherEvent as gt, FunctionPluginHooks as h, RolldownWatcher as ht, RolldownOptions as i, RolldownFileStats as it, TransformResult as j, CommentsOptions as jt, RolldownPluginOption as k, CodeSplittingNameFunction as kt, ModuleTypes as l, TransformOptions as lt, CustomPluginOptions as m, watch as mt, RolldownOptionsFunction as n, BufferEncoding as nt, ExternalOptionFunction as o, InternalModuleFormat as ot, AsyncPluginHooks as p, RolldownMagicString as pt, PluginContext as q, SourceMap as qt, defineConfig as r, RolldownDirectoryEntry as rt, InputOption as s, NormalizedOutputOptions as st, ConfigExport as t, ModuleTypeFilter as tt, OptimizationOptions as u, ChecksOptions as ut, LoadResult as v, WatchOptions as vt, Plugin as w, AdvancedChunksGroup as wt, ObjectHook as x, BuildOptions as xt, ModuleOptions as y, rolldown as yt, OutputBundle as z, MaybePromise as zt };
|