@rollipop/rolldown 0.0.0-beta.3 → 1.0.0-rc.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-setup.mjs +1 -1
- package/dist/cli.mjs +121 -114
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +8 -8
- package/dist/experimental-index.d.mts +43 -43
- package/dist/experimental-index.mjs +6 -6
- package/dist/filter-index.d.mts +197 -4
- package/dist/filter-index.mjs +1 -1
- package/dist/get-log-filter.d.mts +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +27 -8
- package/dist/parallel-plugin-worker.mjs +4 -4
- package/dist/parallel-plugin.d.mts +4 -4
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -4
- package/dist/plugins-index.mjs +3 -3
- package/dist/shared/binding-B92Lq__Q.d.mts +1687 -0
- package/dist/shared/{binding-uOeDeDzp.mjs → binding-tNJoEqAa.mjs} +28 -26
- package/dist/shared/{bindingify-input-options-CuBDHglZ.mjs → bindingify-input-options-CfhrNd_y.mjs} +117 -58
- package/dist/shared/{constructors-D9F4Aj4h.d.mts → constructors--k1uxZrh.d.mts} +2 -2
- package/dist/shared/{constructors-DmSv3tnW.mjs → constructors-414MPkgB.mjs} +1 -1
- package/dist/shared/define-config-D8xP5iyL.d.mts +3463 -0
- package/dist/shared/{load-config-Bo3y98vw.mjs → load-config-Qtd9pHJ5.mjs} +1 -1
- package/dist/shared/logging-wIy4zY9I.d.mts +50 -0
- package/dist/shared/{normalize-string-or-regex-0f6WITto.mjs → normalize-string-or-regex-DeB7vQ75.mjs} +2 -2
- package/dist/shared/{parse-ast-index-B0iVLbj6.mjs → parse-ast-index-BcP4Ts_P.mjs} +3 -3
- package/dist/shared/{prompt-BZ-QjPVS.mjs → prompt-tlfjalEt.mjs} +1 -1
- package/dist/shared/rolldown-BMzJcmQ7.mjs +42 -0
- package/dist/shared/{rolldown-build-BqHWBpp7.mjs → rolldown-build-DWeKtJOy.mjs} +123 -47
- package/dist/shared/{watch-Ce8bKBAn.mjs → watch-HmN4U4B9.mjs} +34 -6
- package/package.json +18 -16
- package/dist/shared/binding-C9YdqoUG.d.mts +0 -1657
- package/dist/shared/define-config-glNgjHCc.d.mts +0 -2573
- package/dist/shared/logging-DsnCZi19.d.mts +0 -42
- package/dist/shared/rolldown-mAJGca5O.mjs +0 -11
- /package/dist/shared/{define-config-BF4P-Pum.mjs → define-config-BVG4QvnP.mjs} +0 -0
- /package/dist/shared/{logs-N5Akftom.mjs → logs-NH298mHo.mjs} +0 -0
- /package/dist/shared/{misc-0HsaOsAX.mjs → misc-CCZIsXVO.mjs} +0 -0
|
@@ -110,7 +110,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
110
110
|
try {
|
|
111
111
|
const binding = __require("@rollipop/rolldown-binding-android-arm64");
|
|
112
112
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm64/package.json").version;
|
|
113
|
-
if (bindingPackageVersion !== "
|
|
113
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
114
114
|
return binding;
|
|
115
115
|
} catch (e) {
|
|
116
116
|
loadErrors.push(e);
|
|
@@ -124,7 +124,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
124
124
|
try {
|
|
125
125
|
const binding = __require("@rollipop/rolldown-binding-android-arm-eabi");
|
|
126
126
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm-eabi/package.json").version;
|
|
127
|
-
if (bindingPackageVersion !== "
|
|
127
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
128
128
|
return binding;
|
|
129
129
|
} catch (e) {
|
|
130
130
|
loadErrors.push(e);
|
|
@@ -139,7 +139,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
139
139
|
try {
|
|
140
140
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-gnu");
|
|
141
141
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-gnu/package.json").version;
|
|
142
|
-
if (bindingPackageVersion !== "
|
|
142
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
143
143
|
return binding;
|
|
144
144
|
} catch (e) {
|
|
145
145
|
loadErrors.push(e);
|
|
@@ -153,7 +153,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
153
153
|
try {
|
|
154
154
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-msvc");
|
|
155
155
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-msvc/package.json").version;
|
|
156
|
-
if (bindingPackageVersion !== "
|
|
156
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
157
157
|
return binding;
|
|
158
158
|
} catch (e) {
|
|
159
159
|
loadErrors.push(e);
|
|
@@ -168,7 +168,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
168
168
|
try {
|
|
169
169
|
const binding = __require("@rollipop/rolldown-binding-win32-ia32-msvc");
|
|
170
170
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-ia32-msvc/package.json").version;
|
|
171
|
-
if (bindingPackageVersion !== "
|
|
171
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
172
172
|
return binding;
|
|
173
173
|
} catch (e) {
|
|
174
174
|
loadErrors.push(e);
|
|
@@ -182,7 +182,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
182
182
|
try {
|
|
183
183
|
const binding = __require("@rollipop/rolldown-binding-win32-arm64-msvc");
|
|
184
184
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-arm64-msvc/package.json").version;
|
|
185
|
-
if (bindingPackageVersion !== "
|
|
185
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
186
186
|
return binding;
|
|
187
187
|
} catch (e) {
|
|
188
188
|
loadErrors.push(e);
|
|
@@ -197,7 +197,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
197
197
|
try {
|
|
198
198
|
const binding = __require("@rollipop/rolldown-binding-darwin-universal");
|
|
199
199
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-universal/package.json").version;
|
|
200
|
-
if (bindingPackageVersion !== "
|
|
200
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
201
201
|
return binding;
|
|
202
202
|
} catch (e) {
|
|
203
203
|
loadErrors.push(e);
|
|
@@ -211,7 +211,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
211
211
|
try {
|
|
212
212
|
const binding = __require("@rollipop/rolldown-binding-darwin-x64");
|
|
213
213
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-x64/package.json").version;
|
|
214
|
-
if (bindingPackageVersion !== "
|
|
214
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
215
215
|
return binding;
|
|
216
216
|
} catch (e) {
|
|
217
217
|
loadErrors.push(e);
|
|
@@ -225,7 +225,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
225
225
|
try {
|
|
226
226
|
const binding = __require("@rollipop/rolldown-binding-darwin-arm64");
|
|
227
227
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-arm64/package.json").version;
|
|
228
|
-
if (bindingPackageVersion !== "
|
|
228
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
229
229
|
return binding;
|
|
230
230
|
} catch (e) {
|
|
231
231
|
loadErrors.push(e);
|
|
@@ -240,7 +240,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
240
240
|
try {
|
|
241
241
|
const binding = __require("@rollipop/rolldown-binding-freebsd-x64");
|
|
242
242
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-x64/package.json").version;
|
|
243
|
-
if (bindingPackageVersion !== "
|
|
243
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
244
244
|
return binding;
|
|
245
245
|
} catch (e) {
|
|
246
246
|
loadErrors.push(e);
|
|
@@ -254,7 +254,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
254
254
|
try {
|
|
255
255
|
const binding = __require("@rollipop/rolldown-binding-freebsd-arm64");
|
|
256
256
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-arm64/package.json").version;
|
|
257
|
-
if (bindingPackageVersion !== "
|
|
257
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
258
258
|
return binding;
|
|
259
259
|
} catch (e) {
|
|
260
260
|
loadErrors.push(e);
|
|
@@ -269,7 +269,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
269
269
|
try {
|
|
270
270
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-musl");
|
|
271
271
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-musl/package.json").version;
|
|
272
|
-
if (bindingPackageVersion !== "
|
|
272
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
273
273
|
return binding;
|
|
274
274
|
} catch (e) {
|
|
275
275
|
loadErrors.push(e);
|
|
@@ -283,7 +283,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
283
283
|
try {
|
|
284
284
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-gnu");
|
|
285
285
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-gnu/package.json").version;
|
|
286
|
-
if (bindingPackageVersion !== "
|
|
286
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
287
287
|
return binding;
|
|
288
288
|
} catch (e) {
|
|
289
289
|
loadErrors.push(e);
|
|
@@ -298,7 +298,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
298
298
|
try {
|
|
299
299
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-musl");
|
|
300
300
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-musl/package.json").version;
|
|
301
|
-
if (bindingPackageVersion !== "
|
|
301
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
302
302
|
return binding;
|
|
303
303
|
} catch (e) {
|
|
304
304
|
loadErrors.push(e);
|
|
@@ -312,7 +312,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
312
312
|
try {
|
|
313
313
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-gnu");
|
|
314
314
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-gnu/package.json").version;
|
|
315
|
-
if (bindingPackageVersion !== "
|
|
315
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
316
316
|
return binding;
|
|
317
317
|
} catch (e) {
|
|
318
318
|
loadErrors.push(e);
|
|
@@ -327,7 +327,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
327
327
|
try {
|
|
328
328
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-musleabihf");
|
|
329
329
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-musleabihf/package.json").version;
|
|
330
|
-
if (bindingPackageVersion !== "
|
|
330
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
331
331
|
return binding;
|
|
332
332
|
} catch (e) {
|
|
333
333
|
loadErrors.push(e);
|
|
@@ -341,7 +341,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
341
341
|
try {
|
|
342
342
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf");
|
|
343
343
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf/package.json").version;
|
|
344
|
-
if (bindingPackageVersion !== "
|
|
344
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
345
345
|
return binding;
|
|
346
346
|
} catch (e) {
|
|
347
347
|
loadErrors.push(e);
|
|
@@ -356,7 +356,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
356
356
|
try {
|
|
357
357
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-musl");
|
|
358
358
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-musl/package.json").version;
|
|
359
|
-
if (bindingPackageVersion !== "
|
|
359
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
360
360
|
return binding;
|
|
361
361
|
} catch (e) {
|
|
362
362
|
loadErrors.push(e);
|
|
@@ -370,7 +370,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
370
370
|
try {
|
|
371
371
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-gnu");
|
|
372
372
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-gnu/package.json").version;
|
|
373
|
-
if (bindingPackageVersion !== "
|
|
373
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
374
374
|
return binding;
|
|
375
375
|
} catch (e) {
|
|
376
376
|
loadErrors.push(e);
|
|
@@ -385,7 +385,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
385
385
|
try {
|
|
386
386
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-musl");
|
|
387
387
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-musl/package.json").version;
|
|
388
|
-
if (bindingPackageVersion !== "
|
|
388
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
389
389
|
return binding;
|
|
390
390
|
} catch (e) {
|
|
391
391
|
loadErrors.push(e);
|
|
@@ -399,7 +399,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
399
399
|
try {
|
|
400
400
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-gnu");
|
|
401
401
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-gnu/package.json").version;
|
|
402
|
-
if (bindingPackageVersion !== "
|
|
402
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
403
403
|
return binding;
|
|
404
404
|
} catch (e) {
|
|
405
405
|
loadErrors.push(e);
|
|
@@ -414,7 +414,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
414
414
|
try {
|
|
415
415
|
const binding = __require("@rollipop/rolldown-binding-linux-ppc64-gnu");
|
|
416
416
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-ppc64-gnu/package.json").version;
|
|
417
|
-
if (bindingPackageVersion !== "
|
|
417
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
418
418
|
return binding;
|
|
419
419
|
} catch (e) {
|
|
420
420
|
loadErrors.push(e);
|
|
@@ -428,7 +428,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
428
428
|
try {
|
|
429
429
|
const binding = __require("@rollipop/rolldown-binding-linux-s390x-gnu");
|
|
430
430
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-s390x-gnu/package.json").version;
|
|
431
|
-
if (bindingPackageVersion !== "
|
|
431
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
432
432
|
return binding;
|
|
433
433
|
} catch (e) {
|
|
434
434
|
loadErrors.push(e);
|
|
@@ -443,7 +443,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
443
443
|
try {
|
|
444
444
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm64");
|
|
445
445
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm64/package.json").version;
|
|
446
|
-
if (bindingPackageVersion !== "
|
|
446
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
447
447
|
return binding;
|
|
448
448
|
} catch (e) {
|
|
449
449
|
loadErrors.push(e);
|
|
@@ -457,7 +457,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
457
457
|
try {
|
|
458
458
|
const binding = __require("@rollipop/rolldown-binding-openharmony-x64");
|
|
459
459
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-x64/package.json").version;
|
|
460
|
-
if (bindingPackageVersion !== "
|
|
460
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
461
461
|
return binding;
|
|
462
462
|
} catch (e) {
|
|
463
463
|
loadErrors.push(e);
|
|
@@ -471,7 +471,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
471
471
|
try {
|
|
472
472
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm");
|
|
473
473
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm/package.json").version;
|
|
474
|
-
if (bindingPackageVersion !== "
|
|
474
|
+
if (bindingPackageVersion !== "1.0.0-rc.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.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
475
475
|
return binding;
|
|
476
476
|
} catch (e) {
|
|
477
477
|
loadErrors.push(e);
|
|
@@ -545,6 +545,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
545
545
|
module.exports.BindingBundler = nativeBinding.BindingBundler;
|
|
546
546
|
module.exports.BindingCallableBuiltinPlugin = nativeBinding.BindingCallableBuiltinPlugin;
|
|
547
547
|
module.exports.BindingChunkingContext = nativeBinding.BindingChunkingContext;
|
|
548
|
+
module.exports.BindingDecodedMap = nativeBinding.BindingDecodedMap;
|
|
548
549
|
module.exports.BindingDevEngine = nativeBinding.BindingDevEngine;
|
|
549
550
|
module.exports.BindingMagicString = nativeBinding.BindingMagicString;
|
|
550
551
|
module.exports.BindingModuleInfo = nativeBinding.BindingModuleInfo;
|
|
@@ -555,6 +556,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
555
556
|
module.exports.BindingRenderedChunk = nativeBinding.BindingRenderedChunk;
|
|
556
557
|
module.exports.BindingRenderedChunkMeta = nativeBinding.BindingRenderedChunkMeta;
|
|
557
558
|
module.exports.BindingRenderedModule = nativeBinding.BindingRenderedModule;
|
|
559
|
+
module.exports.BindingSourceMap = nativeBinding.BindingSourceMap;
|
|
558
560
|
module.exports.BindingTransformPluginContext = nativeBinding.BindingTransformPluginContext;
|
|
559
561
|
module.exports.BindingWatcher = nativeBinding.BindingWatcher;
|
|
560
562
|
module.exports.BindingWatcherBundler = nativeBinding.BindingWatcherBundler;
|
package/dist/shared/{bindingify-input-options-CuBDHglZ.mjs → bindingify-input-options-CfhrNd_y.mjs}
RENAMED
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-
|
|
3
|
-
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
4
|
-
import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-
|
|
5
|
-
import { t as parseAst } from "./parse-ast-index-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-tNJoEqAa.mjs";
|
|
2
|
+
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-NH298mHo.mjs";
|
|
3
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DeB7vQ75.mjs";
|
|
4
|
+
import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-CCZIsXVO.mjs";
|
|
5
|
+
import { t as parseAst } from "./parse-ast-index-BcP4Ts_P.mjs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import * as filter from "@rollipop/rolldown-pluginutils";
|
|
8
8
|
import fsp from "node:fs/promises";
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "
|
|
11
|
+
var version = "1.0.0-rc.1";
|
|
12
12
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/version.ts
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The version of Rolldown.
|
|
18
|
+
* @example `'1.0.0'`
|
|
19
|
+
*
|
|
20
|
+
* @category Plugin APIs
|
|
21
|
+
*/
|
|
17
22
|
const VERSION = version;
|
|
18
23
|
|
|
19
24
|
//#endregion
|
|
@@ -83,8 +88,8 @@ var MinimalPluginContextImpl = class {
|
|
|
83
88
|
watchMode
|
|
84
89
|
};
|
|
85
90
|
}
|
|
86
|
-
error(e
|
|
87
|
-
return error(logPluginError(normalizeLog(e
|
|
91
|
+
error(e) {
|
|
92
|
+
return error(logPluginError(normalizeLog(e), this.pluginName, { hook: this.hookName }));
|
|
88
93
|
}
|
|
89
94
|
};
|
|
90
95
|
|
|
@@ -215,7 +220,7 @@ function bindingAssetSource(source) {
|
|
|
215
220
|
}
|
|
216
221
|
|
|
217
222
|
//#endregion
|
|
218
|
-
//#region \0@oxc-project+runtime@0.
|
|
223
|
+
//#region \0@oxc-project+runtime@0.110.0/helpers/decorate.js
|
|
219
224
|
function __decorate(decorators, target, key, desc) {
|
|
220
225
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
221
226
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -590,15 +595,15 @@ function normalizeBindingResult(container) {
|
|
|
590
595
|
if (typeof container === "object" && container !== null && "isBindingErrors" in container && container.isBindingErrors) return aggregateBindingErrorsIntoJsError(container.errors);
|
|
591
596
|
return container;
|
|
592
597
|
}
|
|
593
|
-
function normalizeBindingError(e
|
|
594
|
-
return e
|
|
595
|
-
code: e
|
|
596
|
-
kind: e
|
|
597
|
-
message: e
|
|
598
|
-
id: e
|
|
599
|
-
exporter: e
|
|
600
|
-
loc: e
|
|
601
|
-
pos: e
|
|
598
|
+
function normalizeBindingError(e) {
|
|
599
|
+
return e.type === "JsError" ? e.field0 : Object.assign(/* @__PURE__ */ new Error(), {
|
|
600
|
+
code: e.field0.kind,
|
|
601
|
+
kind: e.field0.kind,
|
|
602
|
+
message: e.field0.message,
|
|
603
|
+
id: e.field0.id,
|
|
604
|
+
exporter: e.field0.exporter,
|
|
605
|
+
loc: e.field0.loc,
|
|
606
|
+
pos: e.field0.pos,
|
|
602
607
|
stack: void 0
|
|
603
608
|
});
|
|
604
609
|
}
|
|
@@ -626,23 +631,23 @@ function aggregateBindingErrorsIntoJsError(rawErrors) {
|
|
|
626
631
|
});
|
|
627
632
|
return wrapper;
|
|
628
633
|
}
|
|
629
|
-
function getErrorMessage(e
|
|
630
|
-
if (Object.hasOwn(e
|
|
634
|
+
function getErrorMessage(e) {
|
|
635
|
+
if (Object.hasOwn(e, "kind")) return e.message;
|
|
631
636
|
let s = "";
|
|
632
|
-
if (e
|
|
633
|
-
const id = e
|
|
637
|
+
if (e.plugin) s += `[plugin ${e.plugin}]`;
|
|
638
|
+
const id = e.id ?? e.loc?.file;
|
|
634
639
|
if (id) {
|
|
635
640
|
s += " " + id;
|
|
636
|
-
if (e
|
|
641
|
+
if (e.loc) s += `:${e.loc.line}:${e.loc.column}`;
|
|
637
642
|
}
|
|
638
643
|
if (s) s += "\n";
|
|
639
|
-
const message = `${e
|
|
644
|
+
const message = `${e.name ?? "Error"}: ${e.message}`;
|
|
640
645
|
s += message;
|
|
641
|
-
if (e
|
|
642
|
-
if (e
|
|
643
|
-
if (e
|
|
646
|
+
if (e.frame) s = joinNewLine(s, e.frame);
|
|
647
|
+
if (e.stack) s = joinNewLine(s, e.stack.replace(message, ""));
|
|
648
|
+
if (e.cause) {
|
|
644
649
|
s = joinNewLine(s, "Caused by:");
|
|
645
|
-
s = joinNewLine(s, getErrorMessage(e
|
|
650
|
+
s = joinNewLine(s, getErrorMessage(e.cause).split("\n").map((line) => " " + line).join("\n"));
|
|
646
651
|
}
|
|
647
652
|
return s;
|
|
648
653
|
}
|
|
@@ -687,32 +692,32 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
687
692
|
}
|
|
688
693
|
|
|
689
694
|
//#endregion
|
|
690
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
691
|
-
function e(e, t
|
|
692
|
-
let r = (n
|
|
693
|
-
return n
|
|
694
|
-
lazy: n
|
|
695
|
-
lazyArgs: t
|
|
695
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.4/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
696
|
+
function e(e, t, n) {
|
|
697
|
+
let r = (n) => e(n, ...t);
|
|
698
|
+
return n === void 0 ? r : Object.assign(r, {
|
|
699
|
+
lazy: n,
|
|
700
|
+
lazyArgs: t
|
|
696
701
|
});
|
|
697
702
|
}
|
|
698
703
|
|
|
699
704
|
//#endregion
|
|
700
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
701
|
-
function t$1(t
|
|
702
|
-
let i = t
|
|
703
|
-
if (i === 0) return t
|
|
704
|
-
if (i === 1) return e(t
|
|
705
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.4/node_modules/remeda/dist/purry-GjwKKIlp.js
|
|
706
|
+
function t$1(t, n, r) {
|
|
707
|
+
let i = t.length - n.length;
|
|
708
|
+
if (i === 0) return t(...n);
|
|
709
|
+
if (i === 1) return e(t, n, r);
|
|
705
710
|
throw Error(`Wrong number of arguments`);
|
|
706
711
|
}
|
|
707
712
|
|
|
708
713
|
//#endregion
|
|
709
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
714
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.4/node_modules/remeda/dist/partition.js
|
|
710
715
|
function t(...t) {
|
|
711
716
|
return t$1(n, t);
|
|
712
717
|
}
|
|
713
|
-
const n = (e
|
|
718
|
+
const n = (e, t) => {
|
|
714
719
|
let n = [[], []];
|
|
715
|
-
for (let [r, i] of e
|
|
720
|
+
for (let [r, i] of e.entries()) t(i, r, e) ? n[0].push(i) : n[1].push(i);
|
|
716
721
|
return n;
|
|
717
722
|
};
|
|
718
723
|
|
|
@@ -954,6 +959,7 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
954
959
|
return acc;
|
|
955
960
|
}, void 0);
|
|
956
961
|
const res = await this.context.resolve(source, importer, {
|
|
962
|
+
importKind: options?.kind,
|
|
957
963
|
custom: receipt,
|
|
958
964
|
isEntry: options?.isEntry,
|
|
959
965
|
skipSelf: options?.skipSelf,
|
|
@@ -1022,23 +1028,23 @@ var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
|
1022
1028
|
this.inner = inner;
|
|
1023
1029
|
this.moduleId = moduleId;
|
|
1024
1030
|
this.moduleSource = moduleSource;
|
|
1025
|
-
const getLogHandler
|
|
1031
|
+
const getLogHandler = (handler) => (log, pos) => {
|
|
1026
1032
|
log = normalizeLog(log);
|
|
1027
1033
|
if (pos) augmentCodeLocation(log, pos, moduleSource, moduleId);
|
|
1028
1034
|
log.id = moduleId;
|
|
1029
1035
|
log.hook = "transform";
|
|
1030
1036
|
handler(log);
|
|
1031
1037
|
};
|
|
1032
|
-
this.debug = getLogHandler
|
|
1033
|
-
this.warn = getLogHandler
|
|
1034
|
-
this.info = getLogHandler
|
|
1038
|
+
this.debug = getLogHandler(this.debug);
|
|
1039
|
+
this.warn = getLogHandler(this.warn);
|
|
1040
|
+
this.info = getLogHandler(this.info);
|
|
1035
1041
|
}
|
|
1036
|
-
error(e
|
|
1037
|
-
if (typeof e
|
|
1038
|
-
if (pos) augmentCodeLocation(e
|
|
1039
|
-
e
|
|
1040
|
-
e
|
|
1041
|
-
return error(logPluginError(normalizeLog(e
|
|
1042
|
+
error(e, pos) {
|
|
1043
|
+
if (typeof e === "string") e = { message: e };
|
|
1044
|
+
if (pos) augmentCodeLocation(e, pos, this.moduleSource, this.moduleId);
|
|
1045
|
+
e.id = this.moduleId;
|
|
1046
|
+
e.hook = "transform";
|
|
1047
|
+
return error(logPluginError(normalizeLog(e), this.pluginName));
|
|
1042
1048
|
}
|
|
1043
1049
|
getCombinedSourcemap() {
|
|
1044
1050
|
return JSON.parse(this.inner.getCombinedSourcemap());
|
|
@@ -1271,9 +1277,55 @@ function bindingifyRenderChunk(args) {
|
|
|
1271
1277
|
return {
|
|
1272
1278
|
plugin: async (ctx, code, chunk, opts, meta) => {
|
|
1273
1279
|
if (args.pluginContextData.getRenderChunkMeta() == null) args.pluginContextData.setRenderChunkMeta({ chunks: Object.fromEntries(Object.entries(meta.chunks).map(([key, value]) => [key, transformRenderedChunk(value)])) });
|
|
1274
|
-
const
|
|
1280
|
+
const renderChunkMeta = args.pluginContextData.getRenderChunkMeta();
|
|
1281
|
+
let magicStringInstance;
|
|
1282
|
+
if (args.options.experimental?.nativeMagicString) Object.defineProperty(renderChunkMeta, "magicString", {
|
|
1283
|
+
get() {
|
|
1284
|
+
if (magicStringInstance) return magicStringInstance;
|
|
1285
|
+
magicStringInstance = new import_binding.BindingMagicString(code);
|
|
1286
|
+
return magicStringInstance;
|
|
1287
|
+
},
|
|
1288
|
+
configurable: true
|
|
1289
|
+
});
|
|
1290
|
+
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);
|
|
1275
1291
|
if (ret == null) return;
|
|
1292
|
+
if (ret instanceof import_binding.BindingMagicString) {
|
|
1293
|
+
const normalizedCode = ret.toString();
|
|
1294
|
+
const generatedMap = ret.generateMap();
|
|
1295
|
+
return {
|
|
1296
|
+
code: normalizedCode,
|
|
1297
|
+
map: bindingifySourcemap({
|
|
1298
|
+
file: generatedMap.file,
|
|
1299
|
+
mappings: generatedMap.mappings,
|
|
1300
|
+
names: generatedMap.names,
|
|
1301
|
+
sources: generatedMap.sources,
|
|
1302
|
+
sourcesContent: generatedMap.sourcesContent.map((s) => s ?? null)
|
|
1303
|
+
})
|
|
1304
|
+
};
|
|
1305
|
+
}
|
|
1276
1306
|
if (typeof ret === "string") return { code: ret };
|
|
1307
|
+
if (ret.code instanceof import_binding.BindingMagicString) {
|
|
1308
|
+
const magicString = ret.code;
|
|
1309
|
+
const normalizedCode = magicString.toString();
|
|
1310
|
+
if (ret.map === null) return { code: normalizedCode };
|
|
1311
|
+
if (ret.map === void 0) {
|
|
1312
|
+
const generatedMap = magicString.generateMap();
|
|
1313
|
+
return {
|
|
1314
|
+
code: normalizedCode,
|
|
1315
|
+
map: bindingifySourcemap({
|
|
1316
|
+
file: generatedMap.file,
|
|
1317
|
+
mappings: generatedMap.mappings,
|
|
1318
|
+
names: generatedMap.names,
|
|
1319
|
+
sources: generatedMap.sources,
|
|
1320
|
+
sourcesContent: generatedMap.sourcesContent.map((s) => s ?? null)
|
|
1321
|
+
})
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
return {
|
|
1325
|
+
code: normalizedCode,
|
|
1326
|
+
map: bindingifySourcemap(ret.map)
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1277
1329
|
if (!ret.map) return { code: ret.code };
|
|
1278
1330
|
return {
|
|
1279
1331
|
code: ret.code,
|
|
@@ -1598,8 +1650,8 @@ function wrapHandlers(plugin) {
|
|
|
1598
1650
|
if (handler) plugin[hookName] = async (...args) => {
|
|
1599
1651
|
try {
|
|
1600
1652
|
return await handler(...args);
|
|
1601
|
-
} catch (e
|
|
1602
|
-
return error(logPluginError(e
|
|
1653
|
+
} catch (e) {
|
|
1654
|
+
return error(logPluginError(e, plugin.name, {
|
|
1603
1655
|
hook: hookName,
|
|
1604
1656
|
id: hookName === "transform" ? args[2] : void 0
|
|
1605
1657
|
}));
|
|
@@ -1688,8 +1740,14 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
1688
1740
|
get file() {
|
|
1689
1741
|
return this.inner.file ?? void 0;
|
|
1690
1742
|
}
|
|
1743
|
+
get codeSplitting() {
|
|
1744
|
+
return this.inner.codeSplitting;
|
|
1745
|
+
}
|
|
1746
|
+
/**
|
|
1747
|
+
* @deprecated Use `codeSplitting` instead.
|
|
1748
|
+
*/
|
|
1691
1749
|
get inlineDynamicImports() {
|
|
1692
|
-
return this.inner.
|
|
1750
|
+
return !this.inner.codeSplitting;
|
|
1693
1751
|
}
|
|
1694
1752
|
get dynamicImportInCjs() {
|
|
1695
1753
|
return this.inner.dynamicImportInCjs;
|
|
@@ -1786,6 +1844,7 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "cssChunkFileNames
|
|
|
1786
1844
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "shimMissingExports", null);
|
|
1787
1845
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "name", null);
|
|
1788
1846
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "file", null);
|
|
1847
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "codeSplitting", null);
|
|
1789
1848
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "inlineDynamicImports", null);
|
|
1790
1849
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "dynamicImportInCjs", null);
|
|
1791
1850
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "externalLiveBindings", null);
|
|
@@ -2030,7 +2089,6 @@ function bindingifyExperimental(experimental) {
|
|
|
2030
2089
|
default: throw new Error(`Unexpected chunkModulesOrder: ${experimental.chunkModulesOrder}`);
|
|
2031
2090
|
}
|
|
2032
2091
|
return {
|
|
2033
|
-
strictExecutionOrder: experimental?.strictExecutionOrder,
|
|
2034
2092
|
viteMode: experimental?.viteMode,
|
|
2035
2093
|
resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
|
|
2036
2094
|
devMode: bindingifyDevMode(experimental?.devMode),
|
|
@@ -2120,6 +2178,7 @@ function bindingifyTreeshakeOptions(config) {
|
|
|
2120
2178
|
annotations: config.annotations,
|
|
2121
2179
|
manualPureFunctions: config.manualPureFunctions,
|
|
2122
2180
|
unknownGlobalSideEffects: config.unknownGlobalSideEffects,
|
|
2181
|
+
invalidImportSideEffects: config.invalidImportSideEffects,
|
|
2123
2182
|
commonjs: config.commonjs
|
|
2124
2183
|
};
|
|
2125
2184
|
switch (config.propertyReadSideEffects) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { C as BindingViteWasmHelperPluginConfig, b as BindingViteReporterPluginConfig, g as BindingViteJsonPluginConfig, h as BindingViteImportGlobPluginConfig, i as BindingEsmExternalRequirePluginConfig, m as BindingViteDynamicImportVarsPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteBuildImportAnalysisPluginConfig, v as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteResolvePluginConfig, y as BindingViteReactRefreshWrapperPluginConfig } from "./binding-B92Lq__Q.mjs";
|
|
2
|
+
import { It as StringOrRegExp, M as BuiltinPlugin } from "./define-config-D8xP5iyL.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-DeB7vQ75.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|