@rollipop/rolldown 1.0.0-rc.10 → 1.0.0-rc.12
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-D_jQsHun.mjs → binding-B_EbVuAE.mjs} +27 -27
- package/dist/shared/{bindingify-input-options-DfXGy4QO.mjs → bindingify-input-options-D-mr0AxM.mjs} +71 -52
- package/dist/shared/{constructors-DMl58KN5.d.mts → constructors-Dk1hSC1s.d.mts} +2 -2
- package/dist/shared/{constructors-B-HbV10G.mjs → constructors-DqBmEWaf.mjs} +1 -1
- package/dist/shared/{define-config-BSxBeCq6.d.mts → define-config-zdYh2BE8.d.mts} +36 -2
- package/dist/shared/{error-D5tMcn3l.mjs → error-DSuhmQ3y.mjs} +1 -1
- package/dist/shared/{load-config-CNjYgiQv.mjs → load-config-CfHH6rlb.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-B8PEhdn1.mjs → normalize-string-or-regex-BGkWNH32.mjs} +1 -1
- package/dist/shared/{parse-iQx2ihYn.mjs → parse-Cvkx1Kt6.mjs} +3 -3
- package/dist/shared/{prompt-BYQIwEjg.mjs → prompt-U5ajztzG.mjs} +4 -2
- package/dist/shared/{resolve-tsconfig-CxoM-bno.mjs → resolve-tsconfig-DZw545P_.mjs} +2 -2
- package/dist/shared/{rolldown-C0o3hS3w.mjs → rolldown-CqbC9Vvv.mjs} +1 -1
- package/dist/shared/{rolldown-build-80GULIOI.mjs → rolldown-build-DUm1KxTS.mjs} +87 -145
- package/dist/shared/{transform-DY2pi3Qm.d.mts → transform-SYT5xWOy.d.mts} +1 -1
- package/dist/shared/{watch-C2am0Ahc.mjs → watch-Cpz0It-Q.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.0-rc.
|
|
106
|
+
if (bindingPackageVersion !== "1.0.0-rc.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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.12" && 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.12 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-DfXGy4QO.mjs → bindingify-input-options-D-mr0AxM.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-B_EbVuAE.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-BGkWNH32.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-DSuhmQ3y.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.12";
|
|
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.128.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);
|
|
@@ -567,6 +567,49 @@ Object.defineProperty(import_binding.BindingMagicString.prototype, "isRolldownMa
|
|
|
567
567
|
writable: false,
|
|
568
568
|
configurable: false
|
|
569
569
|
});
|
|
570
|
+
function assertString(content, msg) {
|
|
571
|
+
if (typeof content !== "string") throw new TypeError(msg);
|
|
572
|
+
}
|
|
573
|
+
const nativeAppend = import_binding.BindingMagicString.prototype.append;
|
|
574
|
+
const nativePrepend = import_binding.BindingMagicString.prototype.prepend;
|
|
575
|
+
const nativeAppendLeft = import_binding.BindingMagicString.prototype.appendLeft;
|
|
576
|
+
const nativeAppendRight = import_binding.BindingMagicString.prototype.appendRight;
|
|
577
|
+
const nativePrependLeft = import_binding.BindingMagicString.prototype.prependLeft;
|
|
578
|
+
const nativePrependRight = import_binding.BindingMagicString.prototype.prependRight;
|
|
579
|
+
const nativeOverwrite = import_binding.BindingMagicString.prototype.overwrite;
|
|
580
|
+
const nativeUpdate = import_binding.BindingMagicString.prototype.update;
|
|
581
|
+
import_binding.BindingMagicString.prototype.append = function(content) {
|
|
582
|
+
assertString(content, "outro content must be a string");
|
|
583
|
+
return nativeAppend.call(this, content);
|
|
584
|
+
};
|
|
585
|
+
import_binding.BindingMagicString.prototype.prepend = function(content) {
|
|
586
|
+
assertString(content, "outro content must be a string");
|
|
587
|
+
return nativePrepend.call(this, content);
|
|
588
|
+
};
|
|
589
|
+
import_binding.BindingMagicString.prototype.appendLeft = function(index, content) {
|
|
590
|
+
assertString(content, "inserted content must be a string");
|
|
591
|
+
return nativeAppendLeft.call(this, index, content);
|
|
592
|
+
};
|
|
593
|
+
import_binding.BindingMagicString.prototype.appendRight = function(index, content) {
|
|
594
|
+
assertString(content, "inserted content must be a string");
|
|
595
|
+
return nativeAppendRight.call(this, index, content);
|
|
596
|
+
};
|
|
597
|
+
import_binding.BindingMagicString.prototype.prependLeft = function(index, content) {
|
|
598
|
+
assertString(content, "inserted content must be a string");
|
|
599
|
+
return nativePrependLeft.call(this, index, content);
|
|
600
|
+
};
|
|
601
|
+
import_binding.BindingMagicString.prototype.prependRight = function(index, content) {
|
|
602
|
+
assertString(content, "inserted content must be a string");
|
|
603
|
+
return nativePrependRight.call(this, index, content);
|
|
604
|
+
};
|
|
605
|
+
import_binding.BindingMagicString.prototype.overwrite = function(start, end, content, options) {
|
|
606
|
+
assertString(content, "replacement content must be a string");
|
|
607
|
+
return nativeOverwrite.call(this, start, end, content, options);
|
|
608
|
+
};
|
|
609
|
+
import_binding.BindingMagicString.prototype.update = function(start, end, content, options) {
|
|
610
|
+
assertString(content, "replacement content must be a string");
|
|
611
|
+
return nativeUpdate.call(this, start, end, content, options);
|
|
612
|
+
};
|
|
570
613
|
const nativeReplace = import_binding.BindingMagicString.prototype.replace;
|
|
571
614
|
const nativeReplaceAll = import_binding.BindingMagicString.prototype.replaceAll;
|
|
572
615
|
import_binding.BindingMagicString.prototype.replace = function(searchValue, replacement) {
|
|
@@ -627,7 +670,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
627
670
|
return map;
|
|
628
671
|
}
|
|
629
672
|
//#endregion
|
|
630
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
673
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
631
674
|
function e(e, t, n) {
|
|
632
675
|
let r = (n) => e(n, ...t);
|
|
633
676
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -636,7 +679,7 @@ function e(e, t, n) {
|
|
|
636
679
|
});
|
|
637
680
|
}
|
|
638
681
|
//#endregion
|
|
639
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
682
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/purry.js
|
|
640
683
|
function t$1(t, n, r) {
|
|
641
684
|
let i = t.length - n.length;
|
|
642
685
|
if (i === 0) return t(...n);
|
|
@@ -644,7 +687,7 @@ function t$1(t, n, r) {
|
|
|
644
687
|
throw Error(`Wrong number of arguments`);
|
|
645
688
|
}
|
|
646
689
|
//#endregion
|
|
647
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
690
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/partition.js
|
|
648
691
|
function t(...t) {
|
|
649
692
|
return t$1(n, t);
|
|
650
693
|
}
|
|
@@ -1423,30 +1466,6 @@ function bindingifyCloseWatcher(args) {
|
|
|
1423
1466
|
}
|
|
1424
1467
|
//#endregion
|
|
1425
1468
|
//#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
1469
|
var HookUsage = class {
|
|
1451
1470
|
bitflag = BigInt(0);
|
|
1452
1471
|
constructor() {}
|
|
@@ -1459,26 +1478,26 @@ var HookUsage = class {
|
|
|
1459
1478
|
};
|
|
1460
1479
|
function extractHookUsage(plugin) {
|
|
1461
1480
|
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(
|
|
1481
|
+
if (plugin.buildStart) hookUsage.union(1);
|
|
1482
|
+
if (plugin.resolveId) hookUsage.union(2);
|
|
1483
|
+
if (plugin.resolveDynamicImport) hookUsage.union(4);
|
|
1484
|
+
if (plugin.load) hookUsage.union(8);
|
|
1485
|
+
if (plugin.transform) hookUsage.union(16);
|
|
1486
|
+
if (plugin.moduleParsed) hookUsage.union(32);
|
|
1487
|
+
if (plugin.buildEnd) hookUsage.union(64);
|
|
1488
|
+
if (plugin.renderStart) hookUsage.union(128);
|
|
1489
|
+
if (plugin.renderError) hookUsage.union(256);
|
|
1490
|
+
if (plugin.renderChunk) hookUsage.union(512);
|
|
1491
|
+
if (plugin.augmentChunkHash) hookUsage.union(1024);
|
|
1492
|
+
if (plugin.generateBundle) hookUsage.union(2048);
|
|
1493
|
+
if (plugin.writeBundle) hookUsage.union(4096);
|
|
1494
|
+
if (plugin.closeBundle) hookUsage.union(8192);
|
|
1495
|
+
if (plugin.watchChange) hookUsage.union(16384);
|
|
1496
|
+
if (plugin.closeWatcher) hookUsage.union(32768);
|
|
1497
|
+
if (plugin.banner) hookUsage.union(131072);
|
|
1498
|
+
if (plugin.footer) hookUsage.union(262144);
|
|
1499
|
+
if (plugin.intro) hookUsage.union(524288);
|
|
1500
|
+
if (plugin.outro) hookUsage.union(1048576);
|
|
1482
1501
|
return hookUsage;
|
|
1483
1502
|
}
|
|
1484
1503
|
//#endregion
|
|
@@ -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,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-BGkWNH32.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
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,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-B_EbVuAE.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);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-B_EbVuAE.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.128.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
3
4
|
function wrap(result) {
|
|
4
5
|
let program, module, comments, errors;
|
|
5
6
|
return {
|
|
@@ -36,7 +37,6 @@ function applyFix(program, fixPath) {
|
|
|
36
37
|
}
|
|
37
38
|
//#endregion
|
|
38
39
|
//#region src/utils/parse.ts
|
|
39
|
-
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
40
40
|
/**
|
|
41
41
|
* Parse JS/TS source asynchronously on a separate thread.
|
|
42
42
|
*
|
|
@@ -592,10 +592,12 @@ let wD = class extends x {
|
|
|
592
592
|
return this.options[this.cursor].value;
|
|
593
593
|
}
|
|
594
594
|
toggleAll() {
|
|
595
|
-
|
|
595
|
+
const u = this.value.length === this.options.length;
|
|
596
|
+
this.value = u ? [] : this.options.map((F) => F.value);
|
|
596
597
|
}
|
|
597
598
|
toggleValue() {
|
|
598
|
-
|
|
599
|
+
const u = this.value.includes(this._value);
|
|
600
|
+
this.value = u ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
|
|
599
601
|
}
|
|
600
602
|
};
|
|
601
603
|
var SD = Object.defineProperty, $D = (t, u, F) => u in t ? SD(t, u, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-B_EbVuAE.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-DSuhmQ3y.mjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
1
|
+
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-DUm1KxTS.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|