@voidzero-dev/vite-plus-core 0.3.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/rolldown/cli.mjs +6 -6
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +8 -5
- package/dist/rolldown/experimental-index.mjs +14 -11
- package/dist/rolldown/experimental-runtime-types.d.ts +3 -26
- package/dist/rolldown/experimental-runtime.d.ts +3 -26
- package/dist/rolldown/experimental-runtime.mjs +4 -47
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +1 -1
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +2 -2
- package/dist/rolldown/plugins-index.d.mts +2 -2
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-BbrDfv1x.mjs → binding-BY0qR5iS.mjs} +28 -27
- package/dist/rolldown/shared/{bindingify-input-options-CbBAjvu6.mjs → bindingify-input-options-B8JHmN6_.mjs} +10 -8
- package/dist/rolldown/shared/{constructors-CmDKpWIU.d.mts → constructors-DuOq7MqW.d.mts} +1 -1
- package/dist/rolldown/shared/{constructors-D9jwEbE4.mjs → constructors-xEvVj3lN.mjs} +1 -1
- package/dist/rolldown/shared/{create-bundler-option-wxuQPB7F.mjs → create-bundler-option-COco-7P6.mjs} +93 -19
- package/dist/rolldown/shared/{define-config-BFdLpVut.d.mts → define-config-C7HCoqY8.d.mts} +11 -1
- package/dist/rolldown/shared/{error-CGhV1ebk.mjs → error-C7pxws0W.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-DOMKIWz0.mjs → load-config-DkUBnDsI.mjs} +1 -1
- package/dist/rolldown/shared/{logs-DmYCAKcW.mjs → logs-D6uA606S.mjs} +8 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-zc1bUto6.mjs → normalize-string-or-regex-F14uvr6D.mjs} +2 -2
- package/dist/rolldown/shared/{parse-B-7jgDap.mjs → parse-BWeE7Vr9.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-Bf6oL9fm.mjs → resolve-tsconfig-DHwpIs5e.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-DZGaRc5R.mjs → rolldown-Bue0gNT5.mjs} +4 -4
- package/dist/rolldown/shared/{watch-CUKYWzxY.mjs → watch-RXhXN1aG.mjs} +5 -5
- package/dist/rolldown/utils-index.d.mts +1 -1
- package/dist/rolldown/utils-index.mjs +5 -5
- package/dist/tsdown/{build-JVmLFaZt-BN9yuB6k.js → build-JVmLFaZt-DRlLhpV3.js} +10 -8
- package/dist/tsdown/{debug-CpC4hV25-BeCITV83.js → debug-CpC4hV25-C-OYr2iI.js} +4 -3
- package/dist/tsdown/{detect-Bg-d8iUV-Cr_BRLVW.js → detect-Bg-d8iUV-Du8LljhG.js} +1 -1
- package/dist/tsdown/{dist-ByW_jJfv.js → dist-VDcV1Qyy.js} +19 -49
- package/dist/tsdown/index-types.d.ts +209 -209
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-bgV9NlwM.js → main-CyNcZUzu.js} +3 -88
- package/dist/tsdown/require-BbBF8Ii0-BDaWJgzA.js +320 -0
- package/dist/tsdown/{resolver-DE0_sy8o-UMsN-SXx.js → resolver-DE0_sy8o-Bi3xbRxi.js} +2 -3
- package/dist/tsdown/run.js +5 -4
- package/dist/tsdown/{src-D5xv98Iu.js → src-pN7Bl6zo.js} +4 -4
- package/dist/tsdown/style-DiMP8pYv-DIC5PXeH.js +88 -0
- package/dist/tsdown/{target-DgdLrXba-DaJJ11xX.js → target-DgdLrXba-DpO9JXxB.js} +6 -172
- package/dist/tsdown/{tsc-BFDF_Im9.js → tsc-BLb4pSBY.js} +8 -7
- package/dist/tsdown/tsdown-css.js +4 -5
- package/dist/tsdown/tsdown-exe.js +41 -4
- package/dist/tsdown/version-CQ98ZBpL-D6GAHapk.js +169 -0
- package/dist/vite/client/bundledDevClient.mjs +8 -42
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/dist2.js +107 -104
- package/dist/vite/node/chunks/node.js +319 -107
- package/dist/vite/node/index.d.ts +4 -3
- package/package.json +19 -19
- package/dist/tsdown/internal-DTYQdXId.js +0 -3
|
@@ -107,7 +107,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
107
107
|
try {
|
|
108
108
|
const binding = __require("@rolldown/binding-android-arm64");
|
|
109
109
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
110
|
-
if (bindingPackageVersion !== "1.2.
|
|
110
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
111
111
|
return binding;
|
|
112
112
|
} catch (e) {
|
|
113
113
|
loadErrors.push(e);
|
|
@@ -121,7 +121,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
121
121
|
try {
|
|
122
122
|
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
123
123
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
124
|
-
if (bindingPackageVersion !== "1.2.
|
|
124
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
125
125
|
return binding;
|
|
126
126
|
} catch (e) {
|
|
127
127
|
loadErrors.push(e);
|
|
@@ -138,7 +138,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
138
138
|
try {
|
|
139
139
|
const binding = __require("@rolldown/binding-win32-x64-gnu");
|
|
140
140
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
|
|
141
|
-
if (bindingPackageVersion !== "1.2.
|
|
141
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
142
142
|
return binding;
|
|
143
143
|
} catch (e) {
|
|
144
144
|
loadErrors.push(e);
|
|
@@ -152,7 +152,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
152
152
|
try {
|
|
153
153
|
const binding = __require("@voidzero-dev/vite-plus-win32-x64-msvc");
|
|
154
154
|
const bindingPackageVersion = __require("@voidzero-dev/vite-plus-win32-x64-msvc/package.json").version;
|
|
155
|
-
if (bindingPackageVersion !== "0.
|
|
155
|
+
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.`);
|
|
156
156
|
return binding;
|
|
157
157
|
} catch (e) {
|
|
158
158
|
loadErrors.push(e);
|
|
@@ -167,7 +167,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
167
167
|
try {
|
|
168
168
|
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
169
169
|
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
170
|
-
if (bindingPackageVersion !== "1.2.
|
|
170
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
171
171
|
return binding;
|
|
172
172
|
} catch (e) {
|
|
173
173
|
loadErrors.push(e);
|
|
@@ -181,7 +181,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
181
181
|
try {
|
|
182
182
|
const binding = __require("@voidzero-dev/vite-plus-win32-arm64-msvc");
|
|
183
183
|
const bindingPackageVersion = __require("@voidzero-dev/vite-plus-win32-arm64-msvc/package.json").version;
|
|
184
|
-
if (bindingPackageVersion !== "0.
|
|
184
|
+
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.`);
|
|
185
185
|
return binding;
|
|
186
186
|
} catch (e) {
|
|
187
187
|
loadErrors.push(e);
|
|
@@ -196,7 +196,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
196
196
|
try {
|
|
197
197
|
const binding = __require("@rolldown/binding-darwin-universal");
|
|
198
198
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
199
|
-
if (bindingPackageVersion !== "1.2.
|
|
199
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
200
200
|
return binding;
|
|
201
201
|
} catch (e) {
|
|
202
202
|
loadErrors.push(e);
|
|
@@ -210,7 +210,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
210
210
|
try {
|
|
211
211
|
const binding = __require("@voidzero-dev/vite-plus-darwin-x64");
|
|
212
212
|
const bindingPackageVersion = __require("@voidzero-dev/vite-plus-darwin-x64/package.json").version;
|
|
213
|
-
if (bindingPackageVersion !== "0.
|
|
213
|
+
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.`);
|
|
214
214
|
return binding;
|
|
215
215
|
} catch (e) {
|
|
216
216
|
loadErrors.push(e);
|
|
@@ -224,7 +224,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
224
224
|
try {
|
|
225
225
|
const binding = __require("@voidzero-dev/vite-plus-darwin-arm64");
|
|
226
226
|
const bindingPackageVersion = __require("@voidzero-dev/vite-plus-darwin-arm64/package.json").version;
|
|
227
|
-
if (bindingPackageVersion !== "0.
|
|
227
|
+
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.`);
|
|
228
228
|
return binding;
|
|
229
229
|
} catch (e) {
|
|
230
230
|
loadErrors.push(e);
|
|
@@ -240,7 +240,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
240
240
|
try {
|
|
241
241
|
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
242
242
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
243
|
-
if (bindingPackageVersion !== "1.2.
|
|
243
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 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("@rolldown/binding-freebsd-arm64");
|
|
256
256
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
257
|
-
if (bindingPackageVersion !== "1.2.
|
|
257
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
258
258
|
return binding;
|
|
259
259
|
} catch (e) {
|
|
260
260
|
loadErrors.push(e);
|
|
@@ -271,7 +271,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
271
271
|
try {
|
|
272
272
|
const binding = __require("@voidzero-dev/vite-plus-linux-x64-musl");
|
|
273
273
|
const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-x64-musl/package.json").version;
|
|
274
|
-
if (bindingPackageVersion !== "0.
|
|
274
|
+
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.`);
|
|
275
275
|
return binding;
|
|
276
276
|
} catch (e) {
|
|
277
277
|
loadErrors.push(e);
|
|
@@ -285,7 +285,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
285
285
|
try {
|
|
286
286
|
const binding = __require("@voidzero-dev/vite-plus-linux-x64-gnu");
|
|
287
287
|
const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-x64-gnu/package.json").version;
|
|
288
|
-
if (bindingPackageVersion !== "0.
|
|
288
|
+
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.`);
|
|
289
289
|
return binding;
|
|
290
290
|
} catch (e) {
|
|
291
291
|
loadErrors.push(e);
|
|
@@ -301,7 +301,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
301
301
|
try {
|
|
302
302
|
const binding = __require("@voidzero-dev/vite-plus-linux-arm64-musl");
|
|
303
303
|
const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-arm64-musl/package.json").version;
|
|
304
|
-
if (bindingPackageVersion !== "0.
|
|
304
|
+
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.`);
|
|
305
305
|
return binding;
|
|
306
306
|
} catch (e) {
|
|
307
307
|
loadErrors.push(e);
|
|
@@ -315,7 +315,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
315
315
|
try {
|
|
316
316
|
const binding = __require("@voidzero-dev/vite-plus-linux-arm64-gnu");
|
|
317
317
|
const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-arm64-gnu/package.json").version;
|
|
318
|
-
if (bindingPackageVersion !== "0.
|
|
318
|
+
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.`);
|
|
319
319
|
return binding;
|
|
320
320
|
} catch (e) {
|
|
321
321
|
loadErrors.push(e);
|
|
@@ -331,7 +331,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
331
331
|
try {
|
|
332
332
|
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
333
333
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
334
|
-
if (bindingPackageVersion !== "1.2.
|
|
334
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
335
335
|
return binding;
|
|
336
336
|
} catch (e) {
|
|
337
337
|
loadErrors.push(e);
|
|
@@ -345,7 +345,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
345
345
|
try {
|
|
346
346
|
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
347
347
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
348
|
-
if (bindingPackageVersion !== "1.2.
|
|
348
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
349
349
|
return binding;
|
|
350
350
|
} catch (e) {
|
|
351
351
|
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-loong64-musl");
|
|
363
363
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
|
|
364
|
-
if (bindingPackageVersion !== "1.2.
|
|
364
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 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-loong64-gnu");
|
|
377
377
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
|
|
378
|
-
if (bindingPackageVersion !== "1.2.
|
|
378
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
379
379
|
return binding;
|
|
380
380
|
} catch (e) {
|
|
381
381
|
loadErrors.push(e);
|
|
@@ -391,7 +391,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
391
391
|
try {
|
|
392
392
|
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
393
393
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
394
|
-
if (bindingPackageVersion !== "1.2.
|
|
394
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
395
395
|
return binding;
|
|
396
396
|
} catch (e) {
|
|
397
397
|
loadErrors.push(e);
|
|
@@ -405,7 +405,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
405
405
|
try {
|
|
406
406
|
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
407
407
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
408
|
-
if (bindingPackageVersion !== "1.2.
|
|
408
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
409
409
|
return binding;
|
|
410
410
|
} catch (e) {
|
|
411
411
|
loadErrors.push(e);
|
|
@@ -420,7 +420,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
420
420
|
try {
|
|
421
421
|
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
422
422
|
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
423
|
-
if (bindingPackageVersion !== "1.2.
|
|
423
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
424
424
|
return binding;
|
|
425
425
|
} catch (e) {
|
|
426
426
|
loadErrors.push(e);
|
|
@@ -434,7 +434,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
434
434
|
try {
|
|
435
435
|
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
436
436
|
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
437
|
-
if (bindingPackageVersion !== "1.2.
|
|
437
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
438
438
|
return binding;
|
|
439
439
|
} catch (e) {
|
|
440
440
|
loadErrors.push(e);
|
|
@@ -450,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
450
450
|
try {
|
|
451
451
|
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
452
452
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
453
|
-
if (bindingPackageVersion !== "1.2.
|
|
453
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 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("@rolldown/binding-openharmony-x64");
|
|
466
466
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
467
|
-
if (bindingPackageVersion !== "1.2.
|
|
467
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
468
468
|
return binding;
|
|
469
469
|
} catch (e) {
|
|
470
470
|
loadErrors.push(e);
|
|
@@ -478,7 +478,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
478
478
|
try {
|
|
479
479
|
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
480
480
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
481
|
-
if (bindingPackageVersion !== "1.2.
|
|
481
|
+
if (bindingPackageVersion !== "1.2.11" && 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.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
482
482
|
return binding;
|
|
483
483
|
} catch (e) {
|
|
484
484
|
loadErrors.push(e);
|
|
@@ -569,7 +569,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
569
569
|
if (!candidateFailed) {
|
|
570
570
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
571
571
|
const bindingPackageVersion = __require("@rolldown/binding-wasm32-wasi/package.json").version;
|
|
572
|
-
if (bindingPackageVersion !== "1.2.
|
|
572
|
+
if (bindingPackageVersion !== "1.2.11") throw new Error(`WASI binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
573
573
|
}
|
|
574
574
|
wasiBinding = __require("@rolldown/binding-wasm32-wasi");
|
|
575
575
|
nativeBinding = wasiBinding;
|
|
@@ -594,6 +594,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
594
594
|
}
|
|
595
595
|
if (!nativeBinding && globalThis.process?.versions?.["webcontainer"]) try {
|
|
596
596
|
nativeBinding = require_webcontainer_fallback();
|
|
597
|
+
__napiLoadedBindingTarget = "wasm32-wasi";
|
|
597
598
|
} catch (err) {
|
|
598
599
|
loadErrors.push(err);
|
|
599
600
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { i as logFailedValidation,
|
|
3
|
-
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-BY0qR5iS.mjs";
|
|
2
|
+
import { i as logFailedValidation, n as error, o as logInvalidLogPosition, r as logCycleLoading, t as augmentCodeLocation, u as logPluginError } from "./logs-D6uA606S.mjs";
|
|
3
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-F14uvr6D.mjs";
|
|
4
4
|
import { i as noop, n as isPathFragment, o as unreachable, s as unsupported, t as arraify } from "./misc-DOSKtd97.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-C7pxws0W.mjs";
|
|
6
6
|
import { parseAst } from "../parse-ast-index.mjs";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
@@ -10,7 +10,7 @@ import * as filter from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
|
10
10
|
import fsp from "node:fs/promises";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "1.2.
|
|
13
|
+
var version = "1.2.11";
|
|
14
14
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/constants/version.ts
|
|
@@ -236,7 +236,7 @@ function bindingAssetSource(source) {
|
|
|
236
236
|
return { inner: source };
|
|
237
237
|
}
|
|
238
238
|
//#endregion
|
|
239
|
-
//#region \0@oxc-project+runtime@0.
|
|
239
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorate.js
|
|
240
240
|
function __decorate(decorators, target, key, desc) {
|
|
241
241
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
242
242
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1857,6 +1857,7 @@ function pluginTimingsRecorderFor(key) {
|
|
|
1857
1857
|
if (recorder === void 0) {
|
|
1858
1858
|
recorder = {
|
|
1859
1859
|
costs: /* @__PURE__ */ new Map(),
|
|
1860
|
+
warnedMissingGroupLabels: /* @__PURE__ */ new Set(),
|
|
1860
1861
|
busyMs: 0,
|
|
1861
1862
|
inFlight: 0,
|
|
1862
1863
|
busyStart: 0
|
|
@@ -1945,8 +1946,9 @@ function measureHookCost(recorder, owner, hookName, handler) {
|
|
|
1945
1946
|
};
|
|
1946
1947
|
}
|
|
1947
1948
|
/**
|
|
1948
|
-
* The owner
|
|
1949
|
-
*
|
|
1949
|
+
* The shared owner for callbacks that users configure directly on the output options.
|
|
1950
|
+
* Code-splitting groups use their group objects as owner keys. Each group then has separate
|
|
1951
|
+
* timing rows.
|
|
1950
1952
|
*/
|
|
1951
1953
|
const OUTPUT_OPTIONS_OWNER = {
|
|
1952
1954
|
key: Symbol("output options"),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as BindingViteResolvePluginConfig, C as BindingViteDynamicImportVarsPluginConfig, D as BindingViteModulePreloadPolyfillPluginConfig, O as BindingViteReactRefreshWrapperPluginConfig, S as BindingViteBuildImportAnalysisPluginConfig, T as BindingViteJsonPluginConfig, k as BindingViteReporterPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteImportGlobPluginConfig } from "./binding-BTa6BPQe.mjs";
|
|
2
|
-
import { I as BuiltinPlugin, Kt as StringOrRegExp } from "./define-config-
|
|
2
|
+
import { I as BuiltinPlugin, Kt as StringOrRegExp } from "./define-config-C7HCoqY8.mjs";
|
|
3
3
|
//#region src/builtin-plugin/constructors.d.ts
|
|
4
4
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
5
5
|
type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConfig, "include" | "exclude"> & {
|
|
@@ -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-F14uvr6D.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,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as logInputHookInOutputPlugin, n as error } from "./logs-
|
|
3
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
4
|
-
import { C as LOG_LEVEL_WARN, T as VERSION, _ as getParallelPluginInfo, a as measureIfFunction, b as LOG_LEVEL_DEBUG, c as PluginContextData, d as transformRenderedChunk, g as MinimalPluginContextImpl, i as measureHookCost, l as transformModuleInfo, o as pluginTimingsRecorderFor, p as transformAssetSource, r as OUTPUT_OPTIONS_OWNER, t as bindingifyInputOptions, v as normalizeHook, w as logLevelPriority, y as normalizeLog } from "./bindingify-input-options-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-BY0qR5iS.mjs";
|
|
2
|
+
import { a as logInputHookInOutputPlugin, n as error, s as logMissingCodeSplittingGroupDebugName } from "./logs-D6uA606S.mjs";
|
|
3
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-F14uvr6D.mjs";
|
|
4
|
+
import { C as LOG_LEVEL_WARN, T as VERSION, _ as getParallelPluginInfo, a as measureIfFunction, b as LOG_LEVEL_DEBUG, c as PluginContextData, d as transformRenderedChunk, g as MinimalPluginContextImpl, i as measureHookCost, l as transformModuleInfo, o as pluginTimingsRecorderFor, p as transformAssetSource, r as OUTPUT_OPTIONS_OWNER, t as bindingifyInputOptions, v as normalizeHook, w as logLevelPriority, y as normalizeLog } from "./bindingify-input-options-B8JHmN6_.mjs";
|
|
5
5
|
import { a as unimplemented } from "./misc-DOSKtd97.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import path, { sep } from "node:path";
|
|
@@ -1452,7 +1452,8 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1452
1452
|
configurationFieldConflict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a config value is overridden by another config value with a higher priority")),
|
|
1453
1453
|
preferBuiltinFeature: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a plugin that is covered by a built-in feature is used")),
|
|
1454
1454
|
couldNotCleanDirectory: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when Rolldown could not clean the output directory")),
|
|
1455
|
-
|
|
1455
|
+
bundlerTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when plugins and option callbacks take significant time during the build process")),
|
|
1456
|
+
pluginTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Deprecated alias for bundlerTimings. Rolldown uses bundlerTimings if both options have values.")),
|
|
1456
1457
|
duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
|
|
1457
1458
|
unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
1458
1459
|
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),
|
|
@@ -1667,6 +1668,7 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
|
1667
1668
|
maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1668
1669
|
minShareCount: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1669
1670
|
groups: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ strictObject({
|
|
1671
|
+
debugName: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1670
1672
|
name: /* @__PURE__ */ union([/* @__PURE__ */ string(), AdvancedChunksNameFunctionSchema]),
|
|
1671
1673
|
test: /* @__PURE__ */ optional(/* @__PURE__ */ union([StringOrRegExpSchema, AdvancedChunksTestFunctionSchema])),
|
|
1672
1674
|
priority: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
@@ -2876,10 +2878,10 @@ function createTestingLogger() {
|
|
|
2876
2878
|
}
|
|
2877
2879
|
//#endregion
|
|
2878
2880
|
//#region src/utils/bindingify-output-options.ts
|
|
2879
|
-
function bindingifyOutputOptions(outputOptions, pluginContextData, timings) {
|
|
2881
|
+
function bindingifyOutputOptions(outputOptions, pluginContextData, onLog, timings) {
|
|
2880
2882
|
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapFileNames, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
|
|
2881
2883
|
if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
|
|
2882
|
-
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks, pluginContextData, timings);
|
|
2884
|
+
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks, pluginContextData, onLog, timings);
|
|
2883
2885
|
return {
|
|
2884
2886
|
dir,
|
|
2885
2887
|
file: file == null ? void 0 : file,
|
|
@@ -2891,8 +2893,8 @@ function bindingifyOutputOptions(outputOptions, pluginContextData, timings) {
|
|
|
2891
2893
|
sourcemapDebugIds,
|
|
2892
2894
|
sourcemapFileNames: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapFileNames", sourcemapFileNames),
|
|
2893
2895
|
sourcemapExcludeSources,
|
|
2894
|
-
sourcemapIgnoreList: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapIgnoreList", sourcemapIgnoreList ?? /node_modules/),
|
|
2895
|
-
sourcemapPathTransform: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapPathTransform", sourcemapPathTransform),
|
|
2896
|
+
sourcemapIgnoreList: batchSourcemapIgnoreList(measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapIgnoreList", sourcemapIgnoreList ?? /node_modules/)),
|
|
2897
|
+
sourcemapPathTransform: batchSourcemapPathTransform(measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapPathTransform", sourcemapPathTransform)),
|
|
2896
2898
|
banner: bindingifyAddon(banner, "banner", timings),
|
|
2897
2899
|
footer: bindingifyAddon(footer, "footer", timings),
|
|
2898
2900
|
postBanner: bindingifyAddon(postBanner, "postBanner", timings),
|
|
@@ -2977,9 +2979,11 @@ function bindingifyComments(comments) {
|
|
|
2977
2979
|
if (typeof comments === "boolean") return comments;
|
|
2978
2980
|
return comments;
|
|
2979
2981
|
}
|
|
2980
|
-
function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, advancedChunks, manualChunks, pluginContextData, timings) {
|
|
2982
|
+
function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, advancedChunks, manualChunks, pluginContextData, onLog, timings) {
|
|
2981
2983
|
let inlineDynamicImports;
|
|
2982
2984
|
let effectiveChunksOption;
|
|
2985
|
+
let migratedManualChunksGroup;
|
|
2986
|
+
let chunksOptionName = "codeSplitting";
|
|
2983
2987
|
if (codeSplitting === false) {
|
|
2984
2988
|
if (inlineDynamicImportsOption != null) logger.warn("`inlineDynamicImports` option is ignored because `codeSplitting: false` is set.");
|
|
2985
2989
|
if (manualChunks != null) throw new Error("Invalid configuration: \"output.manualChunks\" cannot be used when \"output.codeSplitting\" is set to false.");
|
|
@@ -2997,6 +3001,7 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
|
|
|
2997
3001
|
}
|
|
2998
3002
|
} else {
|
|
2999
3003
|
effectiveChunksOption = codeSplitting;
|
|
3004
|
+
chunksOptionName = "codeSplitting";
|
|
3000
3005
|
if (inlineDynamicImportsOption != null) logger.warn("`inlineDynamicImports` option is ignored because the `codeSplitting` option is specified.");
|
|
3001
3006
|
}
|
|
3002
3007
|
if (inlineDynamicImports === true && manualChunks != null) throw new Error("Invalid value \"true\" for option \"output.inlineDynamicImports\" - this option is not supported for \"output.manualChunks\".");
|
|
@@ -3004,12 +3009,17 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
|
|
|
3004
3009
|
if (advancedChunks != null) {
|
|
3005
3010
|
logger.warn("`advancedChunks` option is deprecated, please use `codeSplitting` instead.");
|
|
3006
3011
|
effectiveChunksOption = advancedChunks;
|
|
3012
|
+
chunksOptionName = "advancedChunks";
|
|
3007
3013
|
}
|
|
3008
3014
|
} else if (advancedChunks != null) logger.warn("`advancedChunks` option is ignored because the `codeSplitting` option is specified.");
|
|
3009
3015
|
if (manualChunks != null && effectiveChunksOption != null) logger.warn("`manualChunks` option is ignored because the `codeSplitting` option is specified.");
|
|
3010
|
-
else if (manualChunks != null)
|
|
3011
|
-
|
|
3012
|
-
|
|
3016
|
+
else if (manualChunks != null) {
|
|
3017
|
+
chunksOptionName = "manualChunks";
|
|
3018
|
+
migratedManualChunksGroup = { name(moduleId, ctx) {
|
|
3019
|
+
return manualChunks(moduleId, { getModuleInfo: (id) => ctx.getModuleInfo(id) });
|
|
3020
|
+
} };
|
|
3021
|
+
effectiveChunksOption = { groups: [migratedManualChunksGroup] };
|
|
3022
|
+
}
|
|
3013
3023
|
if (inlineDynamicImports === true && effectiveChunksOption != null) {
|
|
3014
3024
|
logger.warn("`advancedChunks` option is ignored because `inlineDynamicImports: true` disables code splitting.");
|
|
3015
3025
|
effectiveChunksOption = void 0;
|
|
@@ -3025,12 +3035,36 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
|
|
|
3025
3035
|
chunkingContext?.clearModuleInfoCache();
|
|
3026
3036
|
chunkingContext = void 0;
|
|
3027
3037
|
},
|
|
3028
|
-
groups: groups?.map((group) => {
|
|
3029
|
-
const { name, test, ...restGroup } = group;
|
|
3038
|
+
groups: groups?.map((group, index) => {
|
|
3039
|
+
const { debugName, name, test, ...restGroup } = group;
|
|
3040
|
+
const timingKey = group === migratedManualChunksGroup ? manualChunks ?? group : group;
|
|
3041
|
+
const timingOwner = timings === void 0 ? OUTPUT_OPTIONS_OWNER : {
|
|
3042
|
+
...OUTPUT_OPTIONS_OWNER,
|
|
3043
|
+
key: timingKey
|
|
3044
|
+
};
|
|
3045
|
+
const groupName = `${chunksOptionName} groups[${index}]`;
|
|
3046
|
+
let testTimingName = `${groupName}.test`;
|
|
3047
|
+
let nameTimingName = `${groupName}.name`;
|
|
3048
|
+
if (timings !== void 0) {
|
|
3049
|
+
if (chunksOptionName === "manualChunks") nameTimingName = "manualChunks";
|
|
3050
|
+
else {
|
|
3051
|
+
const label = debugName ?? (typeof name === "string" ? name : void 0);
|
|
3052
|
+
if (label === void 0) {
|
|
3053
|
+
if (typeof name === "function" && !timings.warnedMissingGroupLabels.has(timingKey)) {
|
|
3054
|
+
timings.warnedMissingGroupLabels.add(timingKey);
|
|
3055
|
+
onLog(LOG_LEVEL_WARN, logMissingCodeSplittingGroupDebugName(`output.${chunksOptionName}.groups[${index}]`));
|
|
3056
|
+
}
|
|
3057
|
+
} else {
|
|
3058
|
+
const labelSuffix = ` ${JSON.stringify(label)}`;
|
|
3059
|
+
testTimingName = `${groupName}.test${labelSuffix}`;
|
|
3060
|
+
nameTimingName = `${groupName}.name${labelSuffix}`;
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
}
|
|
3030
3064
|
return {
|
|
3031
3065
|
...restGroup,
|
|
3032
|
-
test: typeof test === "function" ? batchTest(measureHookCost(timings,
|
|
3033
|
-
name: typeof name === "function" ? batchName(measureHookCost(timings,
|
|
3066
|
+
test: typeof test === "function" ? batchTest(measureHookCost(timings, timingOwner, testTimingName, test)) : test,
|
|
3067
|
+
name: typeof name === "function" ? batchName(measureHookCost(timings, timingOwner, nameTimingName, name), getChunkingContext) : name
|
|
3034
3068
|
};
|
|
3035
3069
|
})
|
|
3036
3070
|
};
|
|
@@ -3074,6 +3108,46 @@ function batchName(name, getChunkingContext) {
|
|
|
3074
3108
|
return results;
|
|
3075
3109
|
};
|
|
3076
3110
|
}
|
|
3111
|
+
/**
|
|
3112
|
+
* Wraps a per-source `sourcemapIgnoreList` in the batched shim that the binding expects.
|
|
3113
|
+
*
|
|
3114
|
+
* The loop runs in JS so that a sourcemap makes one napi crossing, not one per source. The old
|
|
3115
|
+
* Rust loop also awaited each call before it started the next.
|
|
3116
|
+
*
|
|
3117
|
+
* The result is a `Uint8Array`, which crosses as a buffer instead of one tagged value per source.
|
|
3118
|
+
*
|
|
3119
|
+
* A boolean, string or regular expression passes through. Rust reads those without a call.
|
|
3120
|
+
*/
|
|
3121
|
+
function batchSourcemapIgnoreList(ignoreList) {
|
|
3122
|
+
if (typeof ignoreList !== "function") return ignoreList;
|
|
3123
|
+
return (sources, sourcemapPath) => {
|
|
3124
|
+
const results = new Uint8Array(sources.length);
|
|
3125
|
+
for (let index = 0; index < sources.length; index++) {
|
|
3126
|
+
const result = ignoreList(sources[index], sourcemapPath);
|
|
3127
|
+
if (typeof result !== "boolean") throw new TypeError(`\`output.sourcemapIgnoreList\` returned ${typeof result} for source "${sources[index]}", but expected a boolean.`);
|
|
3128
|
+
results[index] = result ? 1 : 0;
|
|
3129
|
+
}
|
|
3130
|
+
return results;
|
|
3131
|
+
};
|
|
3132
|
+
}
|
|
3133
|
+
/**
|
|
3134
|
+
* The `sourcemapPathTransform` counterpart of {@linkcode batchSourcemapIgnoreList}.
|
|
3135
|
+
*
|
|
3136
|
+
* A path cannot be reduced to a byte, so this batch is still an array of strings. napi reports the
|
|
3137
|
+
* type of the array, not of the bad element, so the check runs here.
|
|
3138
|
+
*/
|
|
3139
|
+
function batchSourcemapPathTransform(pathTransform) {
|
|
3140
|
+
if (typeof pathTransform !== "function") return pathTransform;
|
|
3141
|
+
return (sources, sourcemapPath) => {
|
|
3142
|
+
const results = [];
|
|
3143
|
+
for (let index = 0; index < sources.length; index++) {
|
|
3144
|
+
const result = pathTransform(sources[index], sourcemapPath);
|
|
3145
|
+
if (typeof result !== "string") throw new TypeError(`\`output.sourcemapPathTransform\` returned ${typeof result} for source "${sources[index]}", but expected a string.`);
|
|
3146
|
+
results.push(result);
|
|
3147
|
+
}
|
|
3148
|
+
return results;
|
|
3149
|
+
};
|
|
3150
|
+
}
|
|
3077
3151
|
//#endregion
|
|
3078
3152
|
//#region src/utils/initialize-parallel-plugins.ts
|
|
3079
3153
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -3151,7 +3225,7 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, meas
|
|
|
3151
3225
|
const normalizedInputPlugins = normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX);
|
|
3152
3226
|
const normalizedOutputPlugins = normalizePlugins(hookOutputPlugins, ANONYMOUS_OUTPUT_PLUGIN_PREFIX);
|
|
3153
3227
|
let plugins = [...normalizedInputPlugins, ...checkOutputPluginOption(normalizedOutputPlugins, onLog)];
|
|
3154
|
-
const timings = measureTimings && inputOptions.checks?.pluginTimings
|
|
3228
|
+
const timings = measureTimings && (inputOptions.checks?.bundlerTimings ?? inputOptions.checks?.pluginTimings ?? true) ? pluginTimingsRecorderFor(inputOptions) : void 0;
|
|
3155
3229
|
if (timings) outputOptions = {
|
|
3156
3230
|
...outputOptions,
|
|
3157
3231
|
assetFileNames: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "assetFileNames", outputOptions.assetFileNames),
|
|
@@ -3164,7 +3238,7 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, meas
|
|
|
3164
3238
|
return {
|
|
3165
3239
|
bundlerOptions: {
|
|
3166
3240
|
inputOptions: bindingifyInputOptions(plugins, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode, timings),
|
|
3167
|
-
outputOptions: bindingifyOutputOptions(outputOptions, pluginContextData, timings),
|
|
3241
|
+
outputOptions: bindingifyOutputOptions(outputOptions, pluginContextData, onLog, timings),
|
|
3168
3242
|
parallelPluginsRegistry: parallelPluginInitResult?.registry
|
|
3169
3243
|
},
|
|
3170
3244
|
inputOptions,
|
|
@@ -1028,6 +1028,12 @@ interface OutputOptions {
|
|
|
1028
1028
|
type BuiltinModuleTag = "$initial";
|
|
1029
1029
|
/** @category Code Splitting */
|
|
1030
1030
|
type CodeSplittingGroup = {
|
|
1031
|
+
/**
|
|
1032
|
+
* `debugName` gives this group a label in the bundler timing report.
|
|
1033
|
+
*
|
|
1034
|
+
* Set this option when `name` is a function. This option does not change the chunk name.
|
|
1035
|
+
*/
|
|
1036
|
+
debugName?: string;
|
|
1031
1037
|
/**
|
|
1032
1038
|
* 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.
|
|
1033
1039
|
*
|
|
@@ -1682,11 +1688,15 @@ interface ChecksOptions {
|
|
|
1682
1688
|
* */
|
|
1683
1689
|
couldNotCleanDirectory?: boolean;
|
|
1684
1690
|
/**
|
|
1685
|
-
* Whether to emit warnings when plugins take significant time during the build process.
|
|
1691
|
+
* Whether to emit warnings when plugins and option callbacks take significant time during the build process.
|
|
1686
1692
|
*
|
|
1687
1693
|
*
|
|
1688
1694
|
* @default true
|
|
1689
1695
|
* */
|
|
1696
|
+
bundlerTimings?: boolean;
|
|
1697
|
+
/**
|
|
1698
|
+
* @deprecated Use {@linkcode bundlerTimings}. If `bundlerTimings` and `pluginTimings` have values, Rolldown uses `bundlerTimings`.
|
|
1699
|
+
*/
|
|
1690
1700
|
pluginTimings?: boolean;
|
|
1691
1701
|
/**
|
|
1692
1702
|
* Whether to emit warnings when both the code and postBanner contain shebang
|
|
@@ -102,6 +102,7 @@ const PLUGIN_ERROR = "PLUGIN_ERROR";
|
|
|
102
102
|
const INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN";
|
|
103
103
|
const CYCLE_LOADING = "CYCLE_LOADING";
|
|
104
104
|
const MULTIPLE_WATCHER_OPTION = "MULTIPLE_WATCHER_OPTION";
|
|
105
|
+
const MISSING_CODE_SPLITTING_GROUP_DEBUG_NAME = "MISSING_CODE_SPLITTING_GROUP_DEBUG_NAME";
|
|
105
106
|
const PARSE_ERROR = "PARSE_ERROR";
|
|
106
107
|
const VALIDATION_ERROR = "VALIDATION_ERROR";
|
|
107
108
|
function logParseError(message, id, pos) {
|
|
@@ -142,6 +143,12 @@ function logMultipleWatcherOption() {
|
|
|
142
143
|
message: `Found multiple watcher options at watch options, using first one to start watcher.`
|
|
143
144
|
};
|
|
144
145
|
}
|
|
146
|
+
function logMissingCodeSplittingGroupDebugName(groupPath) {
|
|
147
|
+
return {
|
|
148
|
+
code: MISSING_CODE_SPLITTING_GROUP_DEBUG_NAME,
|
|
149
|
+
message: `\`${groupPath}.name\` is a function. Set \`${groupPath}.debugName\` so the bundler timing report can identify this group.`
|
|
150
|
+
};
|
|
151
|
+
}
|
|
145
152
|
function logPluginError(error, plugin, { hook, id } = {}) {
|
|
146
153
|
try {
|
|
147
154
|
const code = error.code;
|
|
@@ -189,4 +196,4 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
189
196
|
}
|
|
190
197
|
}
|
|
191
198
|
//#endregion
|
|
192
|
-
export { logInputHookInOutputPlugin as a,
|
|
199
|
+
export { logInputHookInOutputPlugin as a, logMultipleWatcherOption as c, locate as d, getCodeFrame as f, logFailedValidation as i, logParseError as l, error as n, logInvalidLogPosition as o, logCycleLoading as r, logMissingCodeSplittingGroupDebugName as s, augmentCodeLocation as t, logPluginError as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import {
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-BY0qR5iS.mjs";
|
|
2
|
+
import { n as error, u as logPluginError } from "./logs-D6uA606S.mjs";
|
|
3
3
|
//#region src/builtin-plugin/utils.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
var BuiltinPlugin = class {
|