@rollipop/rolldown 1.0.0-rc.9 → 1.0.1
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 +6 -6
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.d.mts +5 -8
- package/dist/experimental-index.mjs +9 -14
- package/dist/experimental-runtime-types.d.ts +14 -5
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/{binding-hSQGgsUz.d.mts → binding-87e5dhsA.d.mts} +39 -11
- package/dist/shared/{binding-Bl6c6z8s.mjs → binding-DUKw6_Oz.mjs} +27 -27
- package/dist/shared/{bindingify-input-options-CG-zr72D.mjs → bindingify-input-options-I9YOS-fH.mjs} +93 -52
- package/dist/shared/{constructors-9XhoSpN5.mjs → constructors-DFmmZhz1.mjs} +1 -1
- package/dist/shared/{constructors-DMl58KN5.d.mts → constructors-Dk1hSC1s.d.mts} +2 -2
- package/dist/shared/{define-config-BSxBeCq6.d.mts → define-config-zdYh2BE8.d.mts} +36 -2
- package/dist/shared/{error-DkpaAqUJ.mjs → error-Bdico8El.mjs} +1 -1
- package/dist/shared/{load-config-C2OQbyVD.mjs → load-config-CpsLqlZ5.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-CyjcHyFr.mjs → normalize-string-or-regex-BJ769uZ_.mjs} +3 -1
- package/dist/shared/{parse-BZ2yiInp.mjs → parse-nkDF8VUS.mjs} +3 -3
- package/dist/shared/{prompt-BYQIwEjg.mjs → prompt-U5ajztzG.mjs} +4 -2
- package/dist/shared/{resolve-tsconfig-eAEuR0Fg.mjs → resolve-tsconfig-uzcNee7s.mjs} +2 -2
- package/dist/shared/{rolldown-DmwmSODb.mjs → rolldown-DrhOhRCx.mjs} +1 -1
- package/dist/shared/{rolldown-build-CwfkzKYx.mjs → rolldown-build-DfXmP5hj.mjs} +89 -145
- package/dist/shared/{transform-DY2pi3Qm.d.mts → transform-SYT5xWOy.d.mts} +1 -1
- package/dist/shared/{watch-CUV8riOa.mjs → watch-Bp7l3KQc.mjs} +4 -4
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +5 -5
- package/package.json +18 -18
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __copyProps = (to, from, except, desc) => {
|
|
11
11
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
12
|
key = keys[i];
|
|
@@ -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.
|
|
106
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
120
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
135
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
149
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
164
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
178
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
193
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
207
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
221
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
236
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
250
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
265
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
279
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
294
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
308
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
323
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
337
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
352
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
366
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
381
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
395
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
410
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
424
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
439
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
453
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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.
|
|
467
|
+
if (bindingPackageVersion !== "1.0.1" && 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.1 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-CG-zr72D.mjs → bindingify-input-options-I9YOS-fH.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-DUKw6_Oz.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-BJ769uZ_.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-Bdico8El.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.
|
|
11
|
+
var version = "1.0.1";
|
|
12
12
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/constants/version.ts
|
|
@@ -73,6 +73,8 @@ function normalizeHook(hook) {
|
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region src/plugin/minimal-plugin-context.ts
|
|
75
75
|
var MinimalPluginContextImpl = class {
|
|
76
|
+
pluginName;
|
|
77
|
+
hookName;
|
|
76
78
|
info;
|
|
77
79
|
warn;
|
|
78
80
|
debug;
|
|
@@ -217,7 +219,7 @@ function bindingAssetSource(source) {
|
|
|
217
219
|
return { inner: source };
|
|
218
220
|
}
|
|
219
221
|
//#endregion
|
|
220
|
-
//#region \0@oxc-project+runtime@0.
|
|
222
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
|
|
221
223
|
function __decorate(decorators, target, key, desc) {
|
|
222
224
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
223
225
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -227,6 +229,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
227
229
|
//#endregion
|
|
228
230
|
//#region src/types/output-asset-impl.ts
|
|
229
231
|
var OutputAssetImpl = class extends PlainObjectLike {
|
|
232
|
+
bindingAsset;
|
|
230
233
|
type = "asset";
|
|
231
234
|
constructor(bindingAsset) {
|
|
232
235
|
super();
|
|
@@ -330,6 +333,7 @@ function transformChunkModules(modules) {
|
|
|
330
333
|
//#endregion
|
|
331
334
|
//#region src/types/output-chunk-impl.ts
|
|
332
335
|
var OutputChunkImpl = class extends PlainObjectLike {
|
|
336
|
+
bindingChunk;
|
|
333
337
|
type = "chunk";
|
|
334
338
|
constructor(bindingChunk) {
|
|
335
339
|
super();
|
|
@@ -567,6 +571,49 @@ Object.defineProperty(import_binding.BindingMagicString.prototype, "isRolldownMa
|
|
|
567
571
|
writable: false,
|
|
568
572
|
configurable: false
|
|
569
573
|
});
|
|
574
|
+
function assertString(content, msg) {
|
|
575
|
+
if (typeof content !== "string") throw new TypeError(msg);
|
|
576
|
+
}
|
|
577
|
+
const nativeAppend = import_binding.BindingMagicString.prototype.append;
|
|
578
|
+
const nativePrepend = import_binding.BindingMagicString.prototype.prepend;
|
|
579
|
+
const nativeAppendLeft = import_binding.BindingMagicString.prototype.appendLeft;
|
|
580
|
+
const nativeAppendRight = import_binding.BindingMagicString.prototype.appendRight;
|
|
581
|
+
const nativePrependLeft = import_binding.BindingMagicString.prototype.prependLeft;
|
|
582
|
+
const nativePrependRight = import_binding.BindingMagicString.prototype.prependRight;
|
|
583
|
+
const nativeOverwrite = import_binding.BindingMagicString.prototype.overwrite;
|
|
584
|
+
const nativeUpdate = import_binding.BindingMagicString.prototype.update;
|
|
585
|
+
import_binding.BindingMagicString.prototype.append = function(content) {
|
|
586
|
+
assertString(content, "outro content must be a string");
|
|
587
|
+
return nativeAppend.call(this, content);
|
|
588
|
+
};
|
|
589
|
+
import_binding.BindingMagicString.prototype.prepend = function(content) {
|
|
590
|
+
assertString(content, "outro content must be a string");
|
|
591
|
+
return nativePrepend.call(this, content);
|
|
592
|
+
};
|
|
593
|
+
import_binding.BindingMagicString.prototype.appendLeft = function(index, content) {
|
|
594
|
+
assertString(content, "inserted content must be a string");
|
|
595
|
+
return nativeAppendLeft.call(this, index, content);
|
|
596
|
+
};
|
|
597
|
+
import_binding.BindingMagicString.prototype.appendRight = function(index, content) {
|
|
598
|
+
assertString(content, "inserted content must be a string");
|
|
599
|
+
return nativeAppendRight.call(this, index, content);
|
|
600
|
+
};
|
|
601
|
+
import_binding.BindingMagicString.prototype.prependLeft = function(index, content) {
|
|
602
|
+
assertString(content, "inserted content must be a string");
|
|
603
|
+
return nativePrependLeft.call(this, index, content);
|
|
604
|
+
};
|
|
605
|
+
import_binding.BindingMagicString.prototype.prependRight = function(index, content) {
|
|
606
|
+
assertString(content, "inserted content must be a string");
|
|
607
|
+
return nativePrependRight.call(this, index, content);
|
|
608
|
+
};
|
|
609
|
+
import_binding.BindingMagicString.prototype.overwrite = function(start, end, content, options) {
|
|
610
|
+
assertString(content, "replacement content must be a string");
|
|
611
|
+
return nativeOverwrite.call(this, start, end, content, options);
|
|
612
|
+
};
|
|
613
|
+
import_binding.BindingMagicString.prototype.update = function(start, end, content, options) {
|
|
614
|
+
assertString(content, "replacement content must be a string");
|
|
615
|
+
return nativeUpdate.call(this, start, end, content, options);
|
|
616
|
+
};
|
|
570
617
|
const nativeReplace = import_binding.BindingMagicString.prototype.replace;
|
|
571
618
|
const nativeReplaceAll = import_binding.BindingMagicString.prototype.replaceAll;
|
|
572
619
|
import_binding.BindingMagicString.prototype.replace = function(searchValue, replacement) {
|
|
@@ -627,7 +674,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
627
674
|
return map;
|
|
628
675
|
}
|
|
629
676
|
//#endregion
|
|
630
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
677
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
631
678
|
function e(e, t, n) {
|
|
632
679
|
let r = (n) => e(n, ...t);
|
|
633
680
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -636,7 +683,7 @@ function e(e, t, n) {
|
|
|
636
683
|
});
|
|
637
684
|
}
|
|
638
685
|
//#endregion
|
|
639
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
686
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/purry.js
|
|
640
687
|
function t$1(t, n, r) {
|
|
641
688
|
let i = t.length - n.length;
|
|
642
689
|
if (i === 0) return t(...n);
|
|
@@ -644,7 +691,7 @@ function t$1(t, n, r) {
|
|
|
644
691
|
throw Error(`Wrong number of arguments`);
|
|
645
692
|
}
|
|
646
693
|
//#endregion
|
|
647
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
694
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/partition.js
|
|
648
695
|
function t(...t) {
|
|
649
696
|
return t$1(n, t);
|
|
650
697
|
}
|
|
@@ -848,6 +895,11 @@ const fsModule = {
|
|
|
848
895
|
//#endregion
|
|
849
896
|
//#region src/plugin/plugin-context.ts
|
|
850
897
|
var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
898
|
+
outputOptions;
|
|
899
|
+
context;
|
|
900
|
+
data;
|
|
901
|
+
onLog;
|
|
902
|
+
currentLoadingModule;
|
|
851
903
|
fs = fsModule;
|
|
852
904
|
getModuleInfo;
|
|
853
905
|
constructor(outputOptions, context, plugin, data, onLog, logLevel, watchMode, currentLoadingModule) {
|
|
@@ -955,6 +1007,7 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
955
1007
|
//#endregion
|
|
956
1008
|
//#region src/plugin/load-plugin-context.ts
|
|
957
1009
|
var LoadPluginContextImpl = class extends PluginContextImpl {
|
|
1010
|
+
inner;
|
|
958
1011
|
constructor(outputOptions, context, plugin, data, inner, moduleId, onLog, logLevelOption, watchMode) {
|
|
959
1012
|
super(outputOptions, context, plugin, data, onLog, logLevelOption, watchMode, moduleId);
|
|
960
1013
|
this.inner = inner;
|
|
@@ -966,6 +1019,9 @@ var LoadPluginContextImpl = class extends PluginContextImpl {
|
|
|
966
1019
|
//#endregion
|
|
967
1020
|
//#region src/plugin/transform-plugin-context.ts
|
|
968
1021
|
var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
1022
|
+
inner;
|
|
1023
|
+
moduleId;
|
|
1024
|
+
moduleSource;
|
|
969
1025
|
constructor(outputOptions, context, plugin, data, inner, moduleId, moduleSource, onLog, LogLevelOption, watchMode) {
|
|
970
1026
|
super(outputOptions, context, plugin, data, onLog, LogLevelOption, watchMode, moduleId);
|
|
971
1027
|
this.inner = inner;
|
|
@@ -1423,30 +1479,6 @@ function bindingifyCloseWatcher(args) {
|
|
|
1423
1479
|
}
|
|
1424
1480
|
//#endregion
|
|
1425
1481
|
//#region src/plugin/generated/hook-usage.ts
|
|
1426
|
-
let HookUsageKind = /* @__PURE__ */ function(HookUsageKind) {
|
|
1427
|
-
HookUsageKind[HookUsageKind["buildStart"] = 1] = "buildStart";
|
|
1428
|
-
HookUsageKind[HookUsageKind["resolveId"] = 2] = "resolveId";
|
|
1429
|
-
HookUsageKind[HookUsageKind["resolveDynamicImport"] = 4] = "resolveDynamicImport";
|
|
1430
|
-
HookUsageKind[HookUsageKind["load"] = 8] = "load";
|
|
1431
|
-
HookUsageKind[HookUsageKind["transform"] = 16] = "transform";
|
|
1432
|
-
HookUsageKind[HookUsageKind["moduleParsed"] = 32] = "moduleParsed";
|
|
1433
|
-
HookUsageKind[HookUsageKind["buildEnd"] = 64] = "buildEnd";
|
|
1434
|
-
HookUsageKind[HookUsageKind["renderStart"] = 128] = "renderStart";
|
|
1435
|
-
HookUsageKind[HookUsageKind["renderError"] = 256] = "renderError";
|
|
1436
|
-
HookUsageKind[HookUsageKind["renderChunk"] = 512] = "renderChunk";
|
|
1437
|
-
HookUsageKind[HookUsageKind["augmentChunkHash"] = 1024] = "augmentChunkHash";
|
|
1438
|
-
HookUsageKind[HookUsageKind["generateBundle"] = 2048] = "generateBundle";
|
|
1439
|
-
HookUsageKind[HookUsageKind["writeBundle"] = 4096] = "writeBundle";
|
|
1440
|
-
HookUsageKind[HookUsageKind["closeBundle"] = 8192] = "closeBundle";
|
|
1441
|
-
HookUsageKind[HookUsageKind["watchChange"] = 16384] = "watchChange";
|
|
1442
|
-
HookUsageKind[HookUsageKind["closeWatcher"] = 32768] = "closeWatcher";
|
|
1443
|
-
HookUsageKind[HookUsageKind["transformAst"] = 65536] = "transformAst";
|
|
1444
|
-
HookUsageKind[HookUsageKind["banner"] = 131072] = "banner";
|
|
1445
|
-
HookUsageKind[HookUsageKind["footer"] = 262144] = "footer";
|
|
1446
|
-
HookUsageKind[HookUsageKind["intro"] = 524288] = "intro";
|
|
1447
|
-
HookUsageKind[HookUsageKind["outro"] = 1048576] = "outro";
|
|
1448
|
-
return HookUsageKind;
|
|
1449
|
-
}({});
|
|
1450
1482
|
var HookUsage = class {
|
|
1451
1483
|
bitflag = BigInt(0);
|
|
1452
1484
|
constructor() {}
|
|
@@ -1459,26 +1491,26 @@ var HookUsage = class {
|
|
|
1459
1491
|
};
|
|
1460
1492
|
function extractHookUsage(plugin) {
|
|
1461
1493
|
let hookUsage = new HookUsage();
|
|
1462
|
-
if (plugin.buildStart) hookUsage.union(
|
|
1463
|
-
if (plugin.resolveId) hookUsage.union(
|
|
1464
|
-
if (plugin.resolveDynamicImport) hookUsage.union(
|
|
1465
|
-
if (plugin.load) hookUsage.union(
|
|
1466
|
-
if (plugin.transform) hookUsage.union(
|
|
1467
|
-
if (plugin.moduleParsed) hookUsage.union(
|
|
1468
|
-
if (plugin.buildEnd) hookUsage.union(
|
|
1469
|
-
if (plugin.renderStart) hookUsage.union(
|
|
1470
|
-
if (plugin.renderError) hookUsage.union(
|
|
1471
|
-
if (plugin.renderChunk) hookUsage.union(
|
|
1472
|
-
if (plugin.augmentChunkHash) hookUsage.union(
|
|
1473
|
-
if (plugin.generateBundle) hookUsage.union(
|
|
1474
|
-
if (plugin.writeBundle) hookUsage.union(
|
|
1475
|
-
if (plugin.closeBundle) hookUsage.union(
|
|
1476
|
-
if (plugin.watchChange) hookUsage.union(
|
|
1477
|
-
if (plugin.closeWatcher) hookUsage.union(
|
|
1478
|
-
if (plugin.banner) hookUsage.union(
|
|
1479
|
-
if (plugin.footer) hookUsage.union(
|
|
1480
|
-
if (plugin.intro) hookUsage.union(
|
|
1481
|
-
if (plugin.outro) hookUsage.union(
|
|
1494
|
+
if (plugin.buildStart) hookUsage.union(1);
|
|
1495
|
+
if (plugin.resolveId) hookUsage.union(2);
|
|
1496
|
+
if (plugin.resolveDynamicImport) hookUsage.union(4);
|
|
1497
|
+
if (plugin.load) hookUsage.union(8);
|
|
1498
|
+
if (plugin.transform) hookUsage.union(16);
|
|
1499
|
+
if (plugin.moduleParsed) hookUsage.union(32);
|
|
1500
|
+
if (plugin.buildEnd) hookUsage.union(64);
|
|
1501
|
+
if (plugin.renderStart) hookUsage.union(128);
|
|
1502
|
+
if (plugin.renderError) hookUsage.union(256);
|
|
1503
|
+
if (plugin.renderChunk) hookUsage.union(512);
|
|
1504
|
+
if (plugin.augmentChunkHash) hookUsage.union(1024);
|
|
1505
|
+
if (plugin.generateBundle) hookUsage.union(2048);
|
|
1506
|
+
if (plugin.writeBundle) hookUsage.union(4096);
|
|
1507
|
+
if (plugin.closeBundle) hookUsage.union(8192);
|
|
1508
|
+
if (plugin.watchChange) hookUsage.union(16384);
|
|
1509
|
+
if (plugin.closeWatcher) hookUsage.union(32768);
|
|
1510
|
+
if (plugin.banner) hookUsage.union(131072);
|
|
1511
|
+
if (plugin.footer) hookUsage.union(262144);
|
|
1512
|
+
if (plugin.intro) hookUsage.union(524288);
|
|
1513
|
+
if (plugin.outro) hookUsage.union(1048576);
|
|
1482
1514
|
return hookUsage;
|
|
1483
1515
|
}
|
|
1484
1516
|
//#endregion
|
|
@@ -1604,6 +1636,8 @@ function wrapHandlers(plugin) {
|
|
|
1604
1636
|
//#endregion
|
|
1605
1637
|
//#region src/options/normalized-input-options.ts
|
|
1606
1638
|
var NormalizedInputOptionsImpl = class extends PlainObjectLike {
|
|
1639
|
+
onLog;
|
|
1640
|
+
inputPlugins;
|
|
1607
1641
|
inner;
|
|
1608
1642
|
constructor(inner, onLog, inputPlugins) {
|
|
1609
1643
|
super();
|
|
@@ -1638,6 +1672,9 @@ __decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "context", null);
|
|
|
1638
1672
|
//#endregion
|
|
1639
1673
|
//#region src/options/normalized-output-options.ts
|
|
1640
1674
|
var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
1675
|
+
inner;
|
|
1676
|
+
outputOptions;
|
|
1677
|
+
normalizedOutputPlugins;
|
|
1641
1678
|
constructor(inner, outputOptions, normalizedOutputPlugins) {
|
|
1642
1679
|
super();
|
|
1643
1680
|
this.inner = inner;
|
|
@@ -1826,6 +1863,10 @@ function normalizeAddon(value) {
|
|
|
1826
1863
|
//#endregion
|
|
1827
1864
|
//#region src/plugin/plugin-context-data.ts
|
|
1828
1865
|
var PluginContextData = class {
|
|
1866
|
+
onLog;
|
|
1867
|
+
outputOptions;
|
|
1868
|
+
normalizedInputPlugins;
|
|
1869
|
+
normalizedOutputPlugins;
|
|
1829
1870
|
moduleOptionMap = /* @__PURE__ */ new Map();
|
|
1830
1871
|
resolveOptionsMap = /* @__PURE__ */ new Map();
|
|
1831
1872
|
loadModulePromiseMap = /* @__PURE__ */ new Map();
|
|
@@ -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-BJ769uZ_.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);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { N as BuiltinPlugin, Vt as StringOrRegExp } from "./define-config-
|
|
1
|
+
import { C as BindingViteJsonPluginConfig, D as BindingViteReporterPluginConfig, E as BindingViteReactRefreshWrapperPluginConfig, O as BindingViteResolvePluginConfig, S as BindingViteImportGlobPluginConfig, T as BindingViteModulePreloadPolyfillPluginConfig, b as BindingViteBuildImportAnalysisPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, x as BindingViteDynamicImportVarsPluginConfig } from "./binding-87e5dhsA.mjs";
|
|
2
|
+
import { N as BuiltinPlugin, Vt as StringOrRegExp } from "./define-config-zdYh2BE8.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -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 { A as BindingWatcherBundler, B as PreRenderedChunk, F as MinifyOptions$1, P as JsxOptions, W as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, g as BindingTransformHookExtraArgs, j as ExternalMemoryStatus, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as ParserOptions } from "./binding-87e5dhsA.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rollipop/rolldown-pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
@@ -152,8 +152,21 @@ interface SourceMap {
|
|
|
152
152
|
}
|
|
153
153
|
/** @category Plugin APIs */
|
|
154
154
|
interface RenderedModule {
|
|
155
|
+
/**
|
|
156
|
+
* The rendered code of this module.
|
|
157
|
+
*
|
|
158
|
+
* The unused variables and functions are removed.
|
|
159
|
+
*/
|
|
155
160
|
readonly code: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* The length of the rendered code of this module.
|
|
163
|
+
*/
|
|
156
164
|
renderedLength: number;
|
|
165
|
+
/**
|
|
166
|
+
* The list of exported names from this module.
|
|
167
|
+
*
|
|
168
|
+
* The names that are not used are not included.
|
|
169
|
+
*/
|
|
157
170
|
renderedExports: string[];
|
|
158
171
|
}
|
|
159
172
|
/**
|
|
@@ -965,6 +978,12 @@ interface OutputOptions {
|
|
|
965
978
|
*/
|
|
966
979
|
persistentCache?: boolean;
|
|
967
980
|
}
|
|
981
|
+
/**
|
|
982
|
+
* Built-in module tag names computed by rolldown.
|
|
983
|
+
*
|
|
984
|
+
* - `'$initial'` — the module is statically imported by at least one user-defined entry point, or is part of its static dependency chain.
|
|
985
|
+
*/
|
|
986
|
+
type BuiltinModuleTag = "$initial";
|
|
968
987
|
type CodeSplittingGroup = {
|
|
969
988
|
/**
|
|
970
989
|
* Name of the group. It will be also used as the name of the chunk and replace the `[name]` placeholder in the {@linkcode OutputOptions.chunkFileNames | output.chunkFileNames} option.
|
|
@@ -1128,6 +1147,21 @@ type CodeSplittingGroup = {
|
|
|
1128
1147
|
* @default 0
|
|
1129
1148
|
*/
|
|
1130
1149
|
entriesAwareMergeThreshold?: number;
|
|
1150
|
+
/**
|
|
1151
|
+
* Filter modules by tags. Only modules that have **all** specified tags
|
|
1152
|
+
* are captured by this group. Combines with `test` and other filters —
|
|
1153
|
+
* a module must match all criteria.
|
|
1154
|
+
*
|
|
1155
|
+
* Built-in tags: `'$initial'` (module is statically imported by a user-defined entry or part of its dependency chain).
|
|
1156
|
+
*
|
|
1157
|
+
* @see {@link https://rolldown.rs/in-depth/manual-code-splitting | Manual Code Splitting}
|
|
1158
|
+
*
|
|
1159
|
+
* @example
|
|
1160
|
+
* ```js
|
|
1161
|
+
* { name: 'initial-deps', tags: ['$initial'], maxSize: 1048576 }
|
|
1162
|
+
* ```
|
|
1163
|
+
*/
|
|
1164
|
+
tags?: BuiltinModuleTag[];
|
|
1131
1165
|
};
|
|
1132
1166
|
/**
|
|
1133
1167
|
* Alias for {@linkcode CodeSplittingGroup}. Use this type for the `codeSplitting.groups` option.
|
|
@@ -2471,7 +2505,7 @@ interface ExistingRawSourceMap {
|
|
|
2471
2505
|
mappings: string;
|
|
2472
2506
|
names?: string[];
|
|
2473
2507
|
sources?: (string | null)[];
|
|
2474
|
-
sourcesContent?: (string | null)[];
|
|
2508
|
+
sourcesContent?: (string | null | undefined)[];
|
|
2475
2509
|
sourceRoot?: string;
|
|
2476
2510
|
version?: number;
|
|
2477
2511
|
x_google_ignoreList?: number[];
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-DUKw6_Oz.mjs";
|
|
2
2
|
import { c as logPluginError, n as error } from "./logs-D80CXhvg.mjs";
|
|
3
3
|
//#region src/builtin-plugin/utils.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
var BuiltinPlugin = class {
|
|
6
|
+
name;
|
|
7
|
+
_options;
|
|
6
8
|
/** Vite-specific option to control plugin ordering */
|
|
7
9
|
enforce;
|
|
8
10
|
constructor(name, _options) {
|