rolldown 1.0.0-beta.52 → 1.0.0-beta.54
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 +11 -12
- package/dist/config.d.mts +2 -3
- package/dist/config.mjs +7 -9
- package/dist/experimental-index.d.mts +23 -12
- package/dist/experimental-index.mjs +28 -17
- package/dist/filter-index.d.mts +2 -3
- package/dist/index.d.mts +3 -4
- package/dist/index.mjs +7 -9
- package/dist/parallel-plugin-worker.mjs +4 -6
- package/dist/parallel-plugin.d.mts +2 -3
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -3
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +3 -5
- package/dist/shared/{binding-kg77KQCQ.mjs → binding-BgawCXFG.mjs} +26 -26
- package/dist/shared/{binding-BKL2JHoJ.d.mts → binding-yIBVkeOE.d.mts} +107 -21
- package/dist/shared/{bindingify-input-options-6nBAYjYP.mjs → bindingify-input-options-DvsExmEF.mjs} +22 -9
- package/dist/shared/constructors-BgO0Ou3T.d.mts +30 -0
- package/dist/shared/{constructors-CwAnOHmv.mjs → constructors-DqAPGbqJ.mjs} +9 -10
- package/dist/shared/{define-config-9CiSl0uo.d.mts → define-config-COJu-A7R.d.mts} +78 -5
- package/dist/shared/{load-config-DS8fzWF9.mjs → load-config--qXpT-nH.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-VlPkMWXA.mjs → normalize-string-or-regex-CF1OWLn9.mjs} +44 -5
- package/dist/shared/{parse-ast-index-C44ewaWh.mjs → parse-ast-index-DeJDe-DO.mjs} +2 -2
- package/dist/shared/{rolldown-CpwN72kC.mjs → rolldown-BsTgRBvz.mjs} +1 -1
- package/dist/shared/{rolldown-build-D2CkFbcq.mjs → rolldown-build-DtYoS8Tq.mjs} +337 -190
- package/dist/shared/{watch-BWN40jw1.mjs → watch-CfGzq0YA.mjs} +17 -5
- package/package.json +20 -22
- package/dist/shared/constructors-BvaMwihu.d.mts +0 -32
- package/dist/shared/utils-DKydZ4iH.d.mts +0 -62
|
@@ -86,7 +86,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
86
86
|
try {
|
|
87
87
|
const binding = __require("@rolldown/binding-android-arm64");
|
|
88
88
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
89
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
89
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
90
90
|
return binding;
|
|
91
91
|
} catch (e) {
|
|
92
92
|
loadErrors.push(e);
|
|
@@ -100,7 +100,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100
100
|
try {
|
|
101
101
|
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
102
102
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
103
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
103
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
104
104
|
return binding;
|
|
105
105
|
} catch (e) {
|
|
106
106
|
loadErrors.push(e);
|
|
@@ -115,7 +115,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
115
115
|
try {
|
|
116
116
|
const binding = __require("@rolldown/binding-win32-x64-gnu");
|
|
117
117
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
|
|
118
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
118
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
119
119
|
return binding;
|
|
120
120
|
} catch (e) {
|
|
121
121
|
loadErrors.push(e);
|
|
@@ -129,7 +129,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
129
129
|
try {
|
|
130
130
|
const binding = __require("@rolldown/binding-win32-x64-msvc");
|
|
131
131
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
132
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
132
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
133
133
|
return binding;
|
|
134
134
|
} catch (e) {
|
|
135
135
|
loadErrors.push(e);
|
|
@@ -144,7 +144,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
144
144
|
try {
|
|
145
145
|
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
146
146
|
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
147
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
147
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
148
148
|
return binding;
|
|
149
149
|
} catch (e) {
|
|
150
150
|
loadErrors.push(e);
|
|
@@ -158,7 +158,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
158
158
|
try {
|
|
159
159
|
const binding = __require("@rolldown/binding-win32-arm64-msvc");
|
|
160
160
|
const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
161
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
161
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
162
162
|
return binding;
|
|
163
163
|
} catch (e) {
|
|
164
164
|
loadErrors.push(e);
|
|
@@ -173,7 +173,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
173
173
|
try {
|
|
174
174
|
const binding = __require("@rolldown/binding-darwin-universal");
|
|
175
175
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
176
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
176
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
177
177
|
return binding;
|
|
178
178
|
} catch (e) {
|
|
179
179
|
loadErrors.push(e);
|
|
@@ -187,7 +187,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
187
187
|
try {
|
|
188
188
|
const binding = __require("@rolldown/binding-darwin-x64");
|
|
189
189
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
|
|
190
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
190
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
191
191
|
return binding;
|
|
192
192
|
} catch (e) {
|
|
193
193
|
loadErrors.push(e);
|
|
@@ -201,7 +201,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
201
201
|
try {
|
|
202
202
|
const binding = __require("@rolldown/binding-darwin-arm64");
|
|
203
203
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
204
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
204
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
205
205
|
return binding;
|
|
206
206
|
} catch (e) {
|
|
207
207
|
loadErrors.push(e);
|
|
@@ -216,7 +216,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
216
216
|
try {
|
|
217
217
|
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
218
218
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
219
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
219
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
220
220
|
return binding;
|
|
221
221
|
} catch (e) {
|
|
222
222
|
loadErrors.push(e);
|
|
@@ -230,7 +230,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
230
230
|
try {
|
|
231
231
|
const binding = __require("@rolldown/binding-freebsd-arm64");
|
|
232
232
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
233
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
233
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
234
234
|
return binding;
|
|
235
235
|
} catch (e) {
|
|
236
236
|
loadErrors.push(e);
|
|
@@ -245,7 +245,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
245
245
|
try {
|
|
246
246
|
const binding = __require("@rolldown/binding-linux-x64-musl");
|
|
247
247
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
248
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
248
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
249
249
|
return binding;
|
|
250
250
|
} catch (e) {
|
|
251
251
|
loadErrors.push(e);
|
|
@@ -259,7 +259,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
259
259
|
try {
|
|
260
260
|
const binding = __require("@rolldown/binding-linux-x64-gnu");
|
|
261
261
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
262
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
262
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
263
263
|
return binding;
|
|
264
264
|
} catch (e) {
|
|
265
265
|
loadErrors.push(e);
|
|
@@ -274,7 +274,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
274
274
|
try {
|
|
275
275
|
const binding = __require("@rolldown/binding-linux-arm64-musl");
|
|
276
276
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
277
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
277
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
278
278
|
return binding;
|
|
279
279
|
} catch (e) {
|
|
280
280
|
loadErrors.push(e);
|
|
@@ -288,7 +288,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
288
288
|
try {
|
|
289
289
|
const binding = __require("@rolldown/binding-linux-arm64-gnu");
|
|
290
290
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
291
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
291
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
292
292
|
return binding;
|
|
293
293
|
} catch (e) {
|
|
294
294
|
loadErrors.push(e);
|
|
@@ -303,7 +303,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
303
303
|
try {
|
|
304
304
|
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
305
305
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
306
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
306
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
307
307
|
return binding;
|
|
308
308
|
} catch (e) {
|
|
309
309
|
loadErrors.push(e);
|
|
@@ -317,7 +317,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
317
317
|
try {
|
|
318
318
|
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
319
319
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
320
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
320
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
321
321
|
return binding;
|
|
322
322
|
} catch (e) {
|
|
323
323
|
loadErrors.push(e);
|
|
@@ -332,7 +332,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
332
332
|
try {
|
|
333
333
|
const binding = __require("@rolldown/binding-linux-loong64-musl");
|
|
334
334
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
|
|
335
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
335
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
336
336
|
return binding;
|
|
337
337
|
} catch (e) {
|
|
338
338
|
loadErrors.push(e);
|
|
@@ -346,7 +346,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
346
346
|
try {
|
|
347
347
|
const binding = __require("@rolldown/binding-linux-loong64-gnu");
|
|
348
348
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
|
|
349
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
349
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
350
350
|
return binding;
|
|
351
351
|
} catch (e) {
|
|
352
352
|
loadErrors.push(e);
|
|
@@ -361,7 +361,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
361
361
|
try {
|
|
362
362
|
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
363
363
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
364
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
364
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
365
365
|
return binding;
|
|
366
366
|
} catch (e) {
|
|
367
367
|
loadErrors.push(e);
|
|
@@ -375,7 +375,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
375
375
|
try {
|
|
376
376
|
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
377
377
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
378
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
378
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
379
379
|
return binding;
|
|
380
380
|
} catch (e) {
|
|
381
381
|
loadErrors.push(e);
|
|
@@ -390,7 +390,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
390
390
|
try {
|
|
391
391
|
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
392
392
|
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
393
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
393
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
394
394
|
return binding;
|
|
395
395
|
} catch (e) {
|
|
396
396
|
loadErrors.push(e);
|
|
@@ -404,7 +404,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
404
404
|
try {
|
|
405
405
|
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
406
406
|
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
407
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
407
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
408
408
|
return binding;
|
|
409
409
|
} catch (e) {
|
|
410
410
|
loadErrors.push(e);
|
|
@@ -419,7 +419,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
419
419
|
try {
|
|
420
420
|
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
421
421
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
422
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
422
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
423
423
|
return binding;
|
|
424
424
|
} catch (e) {
|
|
425
425
|
loadErrors.push(e);
|
|
@@ -433,7 +433,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
433
433
|
try {
|
|
434
434
|
const binding = __require("@rolldown/binding-openharmony-x64");
|
|
435
435
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
436
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
436
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
437
437
|
return binding;
|
|
438
438
|
} catch (e) {
|
|
439
439
|
loadErrors.push(e);
|
|
@@ -447,7 +447,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
447
447
|
try {
|
|
448
448
|
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
449
449
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
450
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
450
|
+
if (bindingPackageVersion !== "1.0.0-beta.54" && 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-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
451
451
|
return binding;
|
|
452
452
|
} catch (e) {
|
|
453
453
|
loadErrors.push(e);
|
|
@@ -185,7 +185,7 @@ interface Comment {
|
|
|
185
185
|
end: number;
|
|
186
186
|
}
|
|
187
187
|
interface ErrorLabel {
|
|
188
|
-
message
|
|
188
|
+
message: string | null;
|
|
189
189
|
start: number;
|
|
190
190
|
end: number;
|
|
191
191
|
}
|
|
@@ -193,8 +193,8 @@ interface OxcError {
|
|
|
193
193
|
severity: Severity;
|
|
194
194
|
message: string;
|
|
195
195
|
labels: Array<ErrorLabel>;
|
|
196
|
-
helpMessage
|
|
197
|
-
codeframe
|
|
196
|
+
helpMessage: string | null;
|
|
197
|
+
codeframe: string | null;
|
|
198
198
|
}
|
|
199
199
|
type Severity = 'Error' | 'Warning' | 'Advice';
|
|
200
200
|
declare class ParseResult {
|
|
@@ -228,9 +228,9 @@ interface EcmaScriptModule {
|
|
|
228
228
|
}
|
|
229
229
|
interface ExportExportName {
|
|
230
230
|
kind: ExportExportNameKind;
|
|
231
|
-
name
|
|
232
|
-
start
|
|
233
|
-
end
|
|
231
|
+
name: string | null;
|
|
232
|
+
start: number | null;
|
|
233
|
+
end: number | null;
|
|
234
234
|
}
|
|
235
235
|
type ExportExportNameKind = /** `export { name } */
|
|
236
236
|
'Name' | /** `export default expression` */
|
|
@@ -238,9 +238,9 @@ type ExportExportNameKind = /** `export { name } */
|
|
|
238
238
|
'None';
|
|
239
239
|
interface ExportImportName {
|
|
240
240
|
kind: ExportImportNameKind;
|
|
241
|
-
name
|
|
242
|
-
start
|
|
243
|
-
end
|
|
241
|
+
name: string | null;
|
|
242
|
+
start: number | null;
|
|
243
|
+
end: number | null;
|
|
244
244
|
}
|
|
245
245
|
type ExportImportNameKind = /** `export { name } */
|
|
246
246
|
'Name' | /** `export * as ns from "mod"` */
|
|
@@ -249,9 +249,9 @@ type ExportImportNameKind = /** `export { name } */
|
|
|
249
249
|
'None';
|
|
250
250
|
interface ExportLocalName {
|
|
251
251
|
kind: ExportLocalNameKind;
|
|
252
|
-
name
|
|
253
|
-
start
|
|
254
|
-
end
|
|
252
|
+
name: string | null;
|
|
253
|
+
start: number | null;
|
|
254
|
+
end: number | null;
|
|
255
255
|
}
|
|
256
256
|
type ExportLocalNameKind = /** `export { name } */
|
|
257
257
|
'Name' | /** `export default expression` */
|
|
@@ -263,9 +263,9 @@ type ExportLocalNameKind = /** `export { name } */
|
|
|
263
263
|
'None';
|
|
264
264
|
interface ImportName {
|
|
265
265
|
kind: ImportNameKind;
|
|
266
|
-
name
|
|
267
|
-
start
|
|
268
|
-
end
|
|
266
|
+
name: string | null;
|
|
267
|
+
start: number | null;
|
|
268
|
+
end: number | null;
|
|
269
269
|
}
|
|
270
270
|
type ImportNameKind = /** `import { x } from "mod"` */
|
|
271
271
|
'Name' | /** `import * as ns from "mod"` */
|
|
@@ -323,7 +323,7 @@ interface StaticExport {
|
|
|
323
323
|
interface StaticExportEntry {
|
|
324
324
|
start: number;
|
|
325
325
|
end: number;
|
|
326
|
-
moduleRequest
|
|
326
|
+
moduleRequest: ValueSpan | null;
|
|
327
327
|
/** The name under which the desired binding is exported by the module`. */
|
|
328
328
|
importName: ExportImportName;
|
|
329
329
|
/** The name used to export this binding by this module. */
|
|
@@ -415,6 +415,18 @@ declare class ResolverFactory {
|
|
|
415
415
|
sync(directory: string, request: string): ResolveResult;
|
|
416
416
|
/** Asynchronously resolve `specifier` at an absolute path to a `directory`. */
|
|
417
417
|
async(directory: string, request: string): Promise<ResolveResult>;
|
|
418
|
+
/**
|
|
419
|
+
* Synchronously resolve `specifier` at an absolute path to a `file`.
|
|
420
|
+
*
|
|
421
|
+
* This method automatically discovers tsconfig.json by traversing parent directories.
|
|
422
|
+
*/
|
|
423
|
+
resolveFileSync(file: string, request: string): ResolveResult;
|
|
424
|
+
/**
|
|
425
|
+
* Asynchronously resolve `specifier` at an absolute path to a `file`.
|
|
426
|
+
*
|
|
427
|
+
* This method automatically discovers tsconfig.json by traversing parent directories.
|
|
428
|
+
*/
|
|
429
|
+
resolveFileAsync(file: string, request: string): Promise<ResolveResult>;
|
|
418
430
|
}
|
|
419
431
|
/** Node.js builtin module when `Options::builtin_modules` is enabled. */
|
|
420
432
|
interface Builtin {
|
|
@@ -656,9 +668,8 @@ interface TsconfigOptions {
|
|
|
656
668
|
* Support for Typescript Project References.
|
|
657
669
|
*
|
|
658
670
|
* * `'auto'`: use the `references` field from tsconfig of `config_file`.
|
|
659
|
-
* * `string[]`: manually provided relative or absolute path.
|
|
660
671
|
*/
|
|
661
|
-
references?: 'auto'
|
|
672
|
+
references?: 'auto';
|
|
662
673
|
}
|
|
663
674
|
interface SourceMap {
|
|
664
675
|
file?: string;
|
|
@@ -1269,6 +1280,44 @@ declare class BindingMagicString {
|
|
|
1269
1280
|
relocate(start: number, end: number, to: number): void;
|
|
1270
1281
|
indent(indentor?: string | undefined | null): void;
|
|
1271
1282
|
}
|
|
1283
|
+
declare class BindingNormalizedOptions {
|
|
1284
|
+
get input(): Array<string> | Record<string, string>;
|
|
1285
|
+
get cwd(): string;
|
|
1286
|
+
get platform(): 'node' | 'browser' | 'neutral';
|
|
1287
|
+
get shimMissingExports(): boolean;
|
|
1288
|
+
get name(): string | null;
|
|
1289
|
+
get cssEntryFilenames(): string | undefined;
|
|
1290
|
+
get cssChunkFilenames(): string | undefined;
|
|
1291
|
+
get entryFilenames(): string | undefined;
|
|
1292
|
+
get chunkFilenames(): string | undefined;
|
|
1293
|
+
get assetFilenames(): string | undefined;
|
|
1294
|
+
get dir(): string | null;
|
|
1295
|
+
get file(): string | null;
|
|
1296
|
+
get format(): 'es' | 'cjs' | 'iife' | 'umd';
|
|
1297
|
+
get exports(): 'default' | 'named' | 'none' | 'auto';
|
|
1298
|
+
get esModule(): boolean | 'if-default-prop';
|
|
1299
|
+
get inlineDynamicImports(): boolean;
|
|
1300
|
+
get sourcemap(): boolean | 'inline' | 'hidden';
|
|
1301
|
+
get sourcemapBaseUrl(): string | null;
|
|
1302
|
+
get banner(): string | undefined | null | undefined;
|
|
1303
|
+
get footer(): string | undefined | null | undefined;
|
|
1304
|
+
get intro(): string | undefined | null | undefined;
|
|
1305
|
+
get outro(): string | undefined | null | undefined;
|
|
1306
|
+
get externalLiveBindings(): boolean;
|
|
1307
|
+
get extend(): boolean;
|
|
1308
|
+
get globals(): Record<string, string> | undefined;
|
|
1309
|
+
get hashCharacters(): 'base64' | 'base36' | 'hex';
|
|
1310
|
+
get sourcemapDebugIds(): boolean;
|
|
1311
|
+
get polyfillRequire(): boolean;
|
|
1312
|
+
get minify(): false | 'dce-only' | MinifyOptions;
|
|
1313
|
+
get legalComments(): 'none' | 'inline';
|
|
1314
|
+
get preserveModules(): boolean;
|
|
1315
|
+
get preserveModulesRoot(): string | undefined;
|
|
1316
|
+
get virtualDirname(): string;
|
|
1317
|
+
get topLevelVar(): boolean;
|
|
1318
|
+
get minifyInternalExports(): boolean;
|
|
1319
|
+
get context(): string;
|
|
1320
|
+
}
|
|
1272
1321
|
declare class BindingOutputAsset {
|
|
1273
1322
|
dropInner(): ExternalMemoryStatus;
|
|
1274
1323
|
getFileName(): string;
|
|
@@ -1504,14 +1553,19 @@ interface BindingViteCssPostPluginConfig {
|
|
|
1504
1553
|
urlBase: string;
|
|
1505
1554
|
decodedBase: string;
|
|
1506
1555
|
libCssFilename?: string;
|
|
1507
|
-
isLegacy?: () => boolean;
|
|
1556
|
+
isLegacy?: (args: BindingNormalizedOptions) => boolean;
|
|
1508
1557
|
cssMinify?: (css: string, inline: boolean) => Promise<string>;
|
|
1509
1558
|
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1559
|
+
cssScopeTo: () => Record<string, readonly [string, string | undefined]>;
|
|
1510
1560
|
}
|
|
1511
1561
|
interface BindingViteDynamicImportVarsPluginConfig {
|
|
1512
1562
|
include?: Array<BindingStringOrRegex>;
|
|
1513
1563
|
exclude?: Array<BindingStringOrRegex>;
|
|
1514
1564
|
resolver?: (id: string, importer: string) => MaybePromise<string | undefined>;
|
|
1565
|
+
isV2?: BindingViteDynamicImportVarsPluginV2Config;
|
|
1566
|
+
}
|
|
1567
|
+
interface BindingViteDynamicImportVarsPluginV2Config {
|
|
1568
|
+
sourcemap: boolean;
|
|
1515
1569
|
}
|
|
1516
1570
|
interface BindingViteHtmlInlineProxyPluginConfig {
|
|
1517
1571
|
root: string;
|
|
@@ -1528,10 +1582,15 @@ interface BindingViteHtmlPluginConfig {
|
|
|
1528
1582
|
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1529
1583
|
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1530
1584
|
transformIndexHtml: (html: string, path: string, filename: string, hook: 'transform' | 'generateBundle', output?: BindingOutputs, chunk?: BindingOutputChunk) => Promise<string>;
|
|
1585
|
+
setModuleSideEffects: (id: string) => void;
|
|
1531
1586
|
}
|
|
1532
1587
|
interface BindingViteImportGlobPluginConfig {
|
|
1533
1588
|
root?: string;
|
|
1534
1589
|
restoreQueryExtension?: boolean;
|
|
1590
|
+
isV2?: BindingViteImportGlobPluginV2Config;
|
|
1591
|
+
}
|
|
1592
|
+
interface BindingViteImportGlobPluginV2Config {
|
|
1593
|
+
sourcemap?: boolean;
|
|
1535
1594
|
}
|
|
1536
1595
|
interface BindingViteJsonPluginConfig {
|
|
1537
1596
|
minify?: boolean;
|
|
@@ -1543,7 +1602,7 @@ interface BindingViteManifestPluginConfig {
|
|
|
1543
1602
|
root: string;
|
|
1544
1603
|
outPath: string;
|
|
1545
1604
|
isEnableV2?: boolean;
|
|
1546
|
-
isLegacy?: () => boolean;
|
|
1605
|
+
isLegacy?: (args: BindingNormalizedOptions) => boolean;
|
|
1547
1606
|
cssEntries: () => Record<string, string>;
|
|
1548
1607
|
}
|
|
1549
1608
|
interface BindingViteModulePreloadPolyfillPluginConfig {
|
|
@@ -1574,12 +1633,14 @@ interface BindingViteResolvePluginConfig {
|
|
|
1574
1633
|
external: true | string[];
|
|
1575
1634
|
noExternal: true | Array<string | RegExp>;
|
|
1576
1635
|
dedupe: Array<string>;
|
|
1636
|
+
disableCache?: boolean;
|
|
1577
1637
|
legacyInconsistentCjsInterop?: boolean;
|
|
1578
1638
|
finalizeBareSpecifier?: (resolvedId: string, rawId: string, importer: string | null | undefined) => VoidNullable<string>;
|
|
1579
1639
|
finalizeOtherSpecifiers?: (resolvedId: string, rawId: string) => VoidNullable<string>;
|
|
1580
1640
|
resolveSubpathImports: (id: string, importer: string, isRequire: boolean, scan: boolean) => VoidNullable<string>;
|
|
1581
1641
|
onWarn?: (message: string) => void;
|
|
1582
1642
|
onDebug?: (message: string) => void;
|
|
1643
|
+
yarnPnp: boolean;
|
|
1583
1644
|
}
|
|
1584
1645
|
interface BindingViteResolvePluginResolveOptions {
|
|
1585
1646
|
isBuild: boolean;
|
|
@@ -1607,10 +1668,19 @@ interface BindingViteTransformPluginConfig {
|
|
|
1607
1668
|
isServerConsumer?: boolean;
|
|
1608
1669
|
jsxInject?: string;
|
|
1609
1670
|
transformOptions?: TransformOptions;
|
|
1671
|
+
yarnPnp?: boolean;
|
|
1610
1672
|
}
|
|
1611
1673
|
interface BindingViteWasmHelperPluginConfig {
|
|
1612
1674
|
decodedBase: string;
|
|
1675
|
+
v2?: BindingViteWasmHelperPluginV2Config;
|
|
1676
|
+
}
|
|
1677
|
+
interface BindingViteWasmHelperPluginV2Config {
|
|
1678
|
+
root: string;
|
|
1679
|
+
isLib: boolean;
|
|
1680
|
+
publicDir: string;
|
|
1681
|
+
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1613
1682
|
}
|
|
1683
|
+
declare function createTokioRuntime(blockingThreads?: number | undefined | null): void;
|
|
1614
1684
|
interface ExternalMemoryStatus {
|
|
1615
1685
|
freed: boolean;
|
|
1616
1686
|
reason?: string;
|
|
@@ -1619,6 +1689,22 @@ interface ExternalMemoryStatus {
|
|
|
1619
1689
|
interface NativeError {
|
|
1620
1690
|
kind: string;
|
|
1621
1691
|
message: string;
|
|
1692
|
+
/** The id of the file associated with the error */
|
|
1693
|
+
id?: string;
|
|
1694
|
+
/** The exporter associated with the error (for import/export errors) */
|
|
1695
|
+
exporter?: string;
|
|
1696
|
+
/** Location information (line, column, file) */
|
|
1697
|
+
loc?: NativeErrorLocation;
|
|
1698
|
+
/** Position in the source file in UTF-16 code units */
|
|
1699
|
+
pos?: number;
|
|
1700
|
+
}
|
|
1701
|
+
/** Location information for errors */
|
|
1702
|
+
interface NativeErrorLocation {
|
|
1703
|
+
/** 1-based */
|
|
1704
|
+
line: number;
|
|
1705
|
+
/** 0-based position in the line in UTF-16 code units */
|
|
1706
|
+
column: number;
|
|
1707
|
+
file?: string;
|
|
1622
1708
|
}
|
|
1623
1709
|
interface PreRenderedChunk {
|
|
1624
1710
|
name: string;
|
|
@@ -1629,4 +1715,4 @@ interface PreRenderedChunk {
|
|
|
1629
1715
|
exports: Array<string>;
|
|
1630
1716
|
}
|
|
1631
1717
|
//#endregion
|
|
1632
|
-
export { BindingWatcherBundler as A, ParserOptions as B, BindingViteManifestPluginConfig as C, BindingViteResolvePluginConfig as D, BindingViteReporterPluginConfig as E, JsxOptions as F, TransformResult as G, ResolveResult as H, MinifyOptions as I,
|
|
1718
|
+
export { transformSync as $, BindingWatcherBundler as A, ParserOptions as B, BindingViteManifestPluginConfig as C, BindingViteResolvePluginConfig as D, BindingViteReporterPluginConfig as E, JsxOptions as F, TransformResult as G, ResolveResult as H, MinifyOptions as I, isolatedDeclarationSync as J, createTokioRuntime as K, MinifyResult as L, ExternalMemoryStatus as M, IsolatedDeclarationsOptions as N, BindingViteTransformPluginConfig as O, IsolatedDeclarationsResult as P, transform as Q, NapiResolveOptions as R, BindingViteJsonPluginConfig as S, BindingViteReactRefreshWrapperPluginConfig as T, ResolverFactory as U, PreRenderedChunk as V, TransformOptions as W, minifySync as X, minify as Y, moduleRunnerTransform as Z, BindingViteCssPostPluginConfig as _, BindingHookResolveIdExtraArgs as a, BindingViteHtmlPluginConfig as b, BindingRebuildStrategy as c, BindingTransformHookExtraArgs as d, BindingUrlResolver as f, BindingViteCssPluginConfig as g, BindingViteBuildImportAnalysisPluginConfig as h, BindingEsmExternalRequirePluginConfig as i, BindingWatcherEvent as j, BindingViteWasmHelperPluginConfig as k, BindingRenderedChunk as l, BindingViteAssetPluginConfig as m, BindingBundleState as n, BindingIsolatedDeclarationPluginConfig as o, BindingViteAssetImportMetaUrlPluginConfig as p, isolatedDeclaration as q, BindingClientHmrUpdate as r, BindingMagicString as s, BindingBuiltinPluginName as t, BindingReplacePluginConfig as u, BindingViteDynamicImportVarsPluginConfig as v, BindingViteModulePreloadPolyfillPluginConfig as w, BindingViteImportGlobPluginConfig as x, BindingViteHtmlInlineProxyPluginConfig as y, ParseResult as z };
|
package/dist/shared/{bindingify-input-options-6nBAYjYP.mjs → bindingify-input-options-DvsExmEF.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
1
|
+
import { t as require_binding } from "./binding-BgawCXFG.mjs";
|
|
2
2
|
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-CSQ_UMWp.mjs";
|
|
3
|
-
import { a as unreachable,
|
|
4
|
-
import {
|
|
5
|
-
import { t as parseAst } from "./parse-ast-index-
|
|
3
|
+
import { a as unreachable, o as unsupported, t as arraify } from "./misc-CxyvWjTr.mjs";
|
|
4
|
+
import { E as LOG_LEVEL_WARN, S as normalizeLog, _ as PlainObjectLike, a as bindingifyManifestPlugin, c as collectChangedBundle, d as bindingifySourcemap, f as transformRenderedChunk, g as lazyProp, i as bindingifyCSSPostPlugin, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, v as MinimalPluginContextImpl } from "./normalize-string-or-regex-CF1OWLn9.mjs";
|
|
5
|
+
import { t as parseAst } from "./parse-ast-index-DeJDe-DO.mjs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import * as filter from "@rolldown/pluginutils";
|
|
8
8
|
import fsp from "node:fs/promises";
|
|
@@ -37,8 +37,13 @@ function normalizeBindingResult(container) {
|
|
|
37
37
|
}
|
|
38
38
|
function normalizeBindingError(e$1) {
|
|
39
39
|
return e$1.type === "JsError" ? e$1.field0 : Object.assign(/* @__PURE__ */ new Error(), {
|
|
40
|
+
code: e$1.field0.kind,
|
|
40
41
|
kind: e$1.field0.kind,
|
|
41
42
|
message: e$1.field0.message,
|
|
43
|
+
id: e$1.field0.id,
|
|
44
|
+
exporter: e$1.field0.exporter,
|
|
45
|
+
loc: e$1.field0.loc,
|
|
46
|
+
pos: e$1.field0.pos,
|
|
42
47
|
stack: void 0
|
|
43
48
|
});
|
|
44
49
|
}
|
|
@@ -384,7 +389,13 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
384
389
|
};
|
|
385
390
|
}
|
|
386
391
|
emitFile = (file) => {
|
|
387
|
-
if (file.type === "prebuilt-chunk") return
|
|
392
|
+
if (file.type === "prebuilt-chunk") return this.context.emitPrebuiltChunk({
|
|
393
|
+
fileName: file.fileName,
|
|
394
|
+
code: file.code,
|
|
395
|
+
exports: file.exports,
|
|
396
|
+
map: bindingifySourcemap(file.map),
|
|
397
|
+
sourcemapFileName: file.sourcemapFileName
|
|
398
|
+
});
|
|
388
399
|
if (file.type === "chunk") return this.context.emitChunk({
|
|
389
400
|
preserveEntrySignatures: bindingifyPreserveEntrySignatures(file.preserveSignature),
|
|
390
401
|
...file
|
|
@@ -1033,7 +1044,7 @@ var NormalizedInputOptionsImpl = class extends PlainObjectLike {
|
|
|
1033
1044
|
return this.inner.input;
|
|
1034
1045
|
}
|
|
1035
1046
|
get cwd() {
|
|
1036
|
-
return this.inner.cwd
|
|
1047
|
+
return this.inner.cwd;
|
|
1037
1048
|
}
|
|
1038
1049
|
get platform() {
|
|
1039
1050
|
return this.inner.platform;
|
|
@@ -1345,9 +1356,11 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
1345
1356
|
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedOutputPlugins);
|
|
1346
1357
|
const plugins = rawPlugins.map((plugin) => {
|
|
1347
1358
|
if ("_parallel" in plugin) return;
|
|
1348
|
-
if (plugin instanceof BuiltinPlugin) {
|
|
1349
|
-
|
|
1350
|
-
return
|
|
1359
|
+
if (plugin instanceof BuiltinPlugin) switch (plugin.name) {
|
|
1360
|
+
case "builtin:vite-css-post": return bindingifyCSSPostPlugin(plugin, pluginContextData);
|
|
1361
|
+
case "builtin:vite-html": return bindingifyViteHtmlPlugin(plugin, onLog, logLevel, watchMode, pluginContextData);
|
|
1362
|
+
case "builtin:vite-manifest": return bindingifyManifestPlugin(plugin, pluginContextData);
|
|
1363
|
+
default: return bindingifyBuiltInPlugin(plugin);
|
|
1351
1364
|
}
|
|
1352
1365
|
return bindingifyPlugin(plugin, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode);
|
|
1353
1366
|
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { A as BuiltinPlugin, Tt as StringOrRegExp } from "./define-config-COJu-A7R.mjs";
|
|
2
|
+
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, h as BindingViteBuildImportAnalysisPluginConfig, i as BindingEsmExternalRequirePluginConfig, k as BindingViteWasmHelperPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteAssetImportMetaUrlPluginConfig, v as BindingViteDynamicImportVarsPluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteHtmlInlineProxyPluginConfig } from "./binding-yIBVkeOE.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/builtin-plugin/constructors.d.ts
|
|
5
|
+
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
6
|
+
type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConfig, "include" | "exclude"> & {
|
|
7
|
+
include?: StringOrRegExp | StringOrRegExp[];
|
|
8
|
+
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
9
|
+
};
|
|
10
|
+
declare function viteDynamicImportVarsPlugin(config?: DynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
11
|
+
declare function viteImportGlobPlugin(config?: BindingViteImportGlobPluginConfig): BuiltinPlugin;
|
|
12
|
+
declare function viteReporterPlugin(config: BindingViteReporterPluginConfig): BuiltinPlugin;
|
|
13
|
+
declare function viteWasmHelperPlugin(config: BindingViteWasmHelperPluginConfig): BuiltinPlugin;
|
|
14
|
+
declare function viteWasmFallbackPlugin(): BuiltinPlugin;
|
|
15
|
+
declare function viteLoadFallbackPlugin(): BuiltinPlugin;
|
|
16
|
+
declare function viteJsonPlugin(config: BindingViteJsonPluginConfig): BuiltinPlugin;
|
|
17
|
+
declare function viteBuildImportAnalysisPlugin(config: BindingViteBuildImportAnalysisPluginConfig): BuiltinPlugin;
|
|
18
|
+
declare function viteResolvePlugin(config: Omit<BindingViteResolvePluginConfig, "yarnPnp">): BuiltinPlugin;
|
|
19
|
+
declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
|
|
20
|
+
declare function viteWebWorkerPostPlugin(): BuiltinPlugin;
|
|
21
|
+
declare function esmExternalRequirePlugin(config?: BindingEsmExternalRequirePluginConfig): BuiltinPlugin;
|
|
22
|
+
type ViteReactRefreshWrapperPluginConfig = Omit<BindingViteReactRefreshWrapperPluginConfig, "include" | "exclude"> & {
|
|
23
|
+
include?: StringOrRegExp | StringOrRegExp[];
|
|
24
|
+
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
25
|
+
};
|
|
26
|
+
declare function viteReactRefreshWrapperPlugin(config: ViteReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
27
|
+
declare function viteHtmlInlineProxyPlugin(config: BindingViteHtmlInlineProxyPluginConfig): BuiltinPlugin;
|
|
28
|
+
declare function viteAssetImportMetaUrlPlugin(config: BindingViteAssetImportMetaUrlPluginConfig): BuiltinPlugin;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { viteDynamicImportVarsPlugin as a, viteJsonPlugin as c, viteReactRefreshWrapperPlugin as d, viteReporterPlugin as f, viteWebWorkerPostPlugin as g, viteWasmHelperPlugin as h, viteBuildImportAnalysisPlugin as i, viteLoadFallbackPlugin as l, viteWasmFallbackPlugin as m, isolatedDeclarationPlugin as n, viteHtmlInlineProxyPlugin as o, viteResolvePlugin as p, viteAssetImportMetaUrlPlugin as r, viteImportGlobPlugin as s, esmExternalRequirePlugin as t, viteModulePreloadPolyfillPlugin as u };
|