rolldown 1.0.0-beta.51 → 1.0.0-beta.53
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 +9 -10
- package/dist/config.d.mts +2 -3
- package/dist/config.mjs +7 -9
- package/dist/experimental-index.d.mts +30 -9
- package/dist/experimental-index.mjs +26 -17
- package/dist/filter-index.d.mts +2 -3
- package/dist/index.d.mts +2 -3
- 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-JavE2bkj.mjs → binding-BJqdPU1r.mjs} +31 -34
- package/dist/shared/{binding-lSvYApx7.d.mts → binding-CY7Z709f.d.mts} +59 -12
- package/dist/shared/{bindingify-input-options-C8RwNEVu.mjs → bindingify-input-options-Bk0BBr2s.mjs} +8 -6
- package/dist/shared/{constructors-DgFF472b.d.mts → constructors-CMvFUBhn.d.mts} +4 -5
- package/dist/shared/{constructors-D1fHJKvO.mjs → constructors-LQ8mmhQE.mjs} +5 -8
- package/dist/shared/{define-config-CXCkQG1z.d.mts → define-config-BS8Bt-r8.d.mts} +82 -11
- package/dist/shared/{load-config-WNwAzWN-.mjs → load-config-JSXrnuaS.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-Bu88lzEx.mjs → normalize-string-or-regex-BhaIG1rU.mjs} +42 -5
- package/dist/shared/{parse-ast-index-DPVqqR9w.mjs → parse-ast-index-BFX0oHaQ.mjs} +21 -7
- package/dist/shared/{rolldown-Do5qEfGl.mjs → rolldown-Cqalltnr.mjs} +1 -1
- package/dist/shared/{rolldown-build-MAIadGaX.mjs → rolldown-build-BEU8N80I.mjs} +335 -189
- package/dist/shared/{watch-CUl9f7JR.mjs → watch-DBnC-zol.mjs} +4 -4
- package/package.json +21 -23
- package/dist/shared/utils-BJWI2OzT.d.mts +0 -62
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
|
|
3
3
|
//#region rolldown:runtime
|
|
4
|
-
var
|
|
5
|
-
var __commonJS = (cb, mod) => function() {
|
|
6
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
7
|
-
};
|
|
4
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
8
5
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
9
6
|
|
|
10
7
|
//#endregion
|
|
11
8
|
//#region src/webcontainer-fallback.cjs
|
|
12
|
-
var require_webcontainer_fallback = /* @__PURE__ */
|
|
9
|
+
var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13
10
|
const fs = __require("node:fs");
|
|
14
11
|
const childProcess = __require("node:child_process");
|
|
15
12
|
const version = JSON.parse(fs.readFileSync(__require.resolve("rolldown/package.json"), "utf-8")).version;
|
|
@@ -29,11 +26,11 @@ var require_webcontainer_fallback = /* @__PURE__ */ __commonJS({ "src/webcontain
|
|
|
29
26
|
});
|
|
30
27
|
}
|
|
31
28
|
module.exports = __require(bindingEntry);
|
|
32
|
-
})
|
|
29
|
+
}));
|
|
33
30
|
|
|
34
31
|
//#endregion
|
|
35
32
|
//#region src/binding.cjs
|
|
36
|
-
var require_binding = /* @__PURE__ */
|
|
33
|
+
var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
37
34
|
const { readFileSync } = __require("node:fs");
|
|
38
35
|
let nativeBinding = null;
|
|
39
36
|
const loadErrors = [];
|
|
@@ -89,7 +86,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
89
86
|
try {
|
|
90
87
|
const binding = __require("@rolldown/binding-android-arm64");
|
|
91
88
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
92
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
89
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
93
90
|
return binding;
|
|
94
91
|
} catch (e) {
|
|
95
92
|
loadErrors.push(e);
|
|
@@ -103,7 +100,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
103
100
|
try {
|
|
104
101
|
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
105
102
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
106
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
103
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
107
104
|
return binding;
|
|
108
105
|
} catch (e) {
|
|
109
106
|
loadErrors.push(e);
|
|
@@ -118,7 +115,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
118
115
|
try {
|
|
119
116
|
const binding = __require("@rolldown/binding-win32-x64-gnu");
|
|
120
117
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
|
|
121
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
118
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
122
119
|
return binding;
|
|
123
120
|
} catch (e) {
|
|
124
121
|
loadErrors.push(e);
|
|
@@ -132,7 +129,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
132
129
|
try {
|
|
133
130
|
const binding = __require("@rolldown/binding-win32-x64-msvc");
|
|
134
131
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
135
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
132
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
136
133
|
return binding;
|
|
137
134
|
} catch (e) {
|
|
138
135
|
loadErrors.push(e);
|
|
@@ -147,7 +144,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
147
144
|
try {
|
|
148
145
|
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
149
146
|
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
150
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
147
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
151
148
|
return binding;
|
|
152
149
|
} catch (e) {
|
|
153
150
|
loadErrors.push(e);
|
|
@@ -161,7 +158,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
161
158
|
try {
|
|
162
159
|
const binding = __require("@rolldown/binding-win32-arm64-msvc");
|
|
163
160
|
const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
164
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
161
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
165
162
|
return binding;
|
|
166
163
|
} catch (e) {
|
|
167
164
|
loadErrors.push(e);
|
|
@@ -176,7 +173,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
176
173
|
try {
|
|
177
174
|
const binding = __require("@rolldown/binding-darwin-universal");
|
|
178
175
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
179
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
176
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
180
177
|
return binding;
|
|
181
178
|
} catch (e) {
|
|
182
179
|
loadErrors.push(e);
|
|
@@ -190,7 +187,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
190
187
|
try {
|
|
191
188
|
const binding = __require("@rolldown/binding-darwin-x64");
|
|
192
189
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
|
|
193
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
190
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
194
191
|
return binding;
|
|
195
192
|
} catch (e) {
|
|
196
193
|
loadErrors.push(e);
|
|
@@ -204,7 +201,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
204
201
|
try {
|
|
205
202
|
const binding = __require("@rolldown/binding-darwin-arm64");
|
|
206
203
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
207
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
204
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
208
205
|
return binding;
|
|
209
206
|
} catch (e) {
|
|
210
207
|
loadErrors.push(e);
|
|
@@ -219,7 +216,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
219
216
|
try {
|
|
220
217
|
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
221
218
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
222
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
219
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
223
220
|
return binding;
|
|
224
221
|
} catch (e) {
|
|
225
222
|
loadErrors.push(e);
|
|
@@ -233,7 +230,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
233
230
|
try {
|
|
234
231
|
const binding = __require("@rolldown/binding-freebsd-arm64");
|
|
235
232
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
236
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
233
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
237
234
|
return binding;
|
|
238
235
|
} catch (e) {
|
|
239
236
|
loadErrors.push(e);
|
|
@@ -248,7 +245,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
248
245
|
try {
|
|
249
246
|
const binding = __require("@rolldown/binding-linux-x64-musl");
|
|
250
247
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
251
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
248
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
252
249
|
return binding;
|
|
253
250
|
} catch (e) {
|
|
254
251
|
loadErrors.push(e);
|
|
@@ -262,7 +259,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
262
259
|
try {
|
|
263
260
|
const binding = __require("@rolldown/binding-linux-x64-gnu");
|
|
264
261
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
265
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
262
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
266
263
|
return binding;
|
|
267
264
|
} catch (e) {
|
|
268
265
|
loadErrors.push(e);
|
|
@@ -277,7 +274,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
277
274
|
try {
|
|
278
275
|
const binding = __require("@rolldown/binding-linux-arm64-musl");
|
|
279
276
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
280
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
277
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
281
278
|
return binding;
|
|
282
279
|
} catch (e) {
|
|
283
280
|
loadErrors.push(e);
|
|
@@ -291,7 +288,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
291
288
|
try {
|
|
292
289
|
const binding = __require("@rolldown/binding-linux-arm64-gnu");
|
|
293
290
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
294
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
291
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
295
292
|
return binding;
|
|
296
293
|
} catch (e) {
|
|
297
294
|
loadErrors.push(e);
|
|
@@ -306,7 +303,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
306
303
|
try {
|
|
307
304
|
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
308
305
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
309
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
306
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
310
307
|
return binding;
|
|
311
308
|
} catch (e) {
|
|
312
309
|
loadErrors.push(e);
|
|
@@ -320,7 +317,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
320
317
|
try {
|
|
321
318
|
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
322
319
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
323
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
320
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
324
321
|
return binding;
|
|
325
322
|
} catch (e) {
|
|
326
323
|
loadErrors.push(e);
|
|
@@ -335,7 +332,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
335
332
|
try {
|
|
336
333
|
const binding = __require("@rolldown/binding-linux-loong64-musl");
|
|
337
334
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
|
|
338
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
335
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
339
336
|
return binding;
|
|
340
337
|
} catch (e) {
|
|
341
338
|
loadErrors.push(e);
|
|
@@ -349,7 +346,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
349
346
|
try {
|
|
350
347
|
const binding = __require("@rolldown/binding-linux-loong64-gnu");
|
|
351
348
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
|
|
352
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
349
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
353
350
|
return binding;
|
|
354
351
|
} catch (e) {
|
|
355
352
|
loadErrors.push(e);
|
|
@@ -364,7 +361,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
364
361
|
try {
|
|
365
362
|
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
366
363
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
367
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
364
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
368
365
|
return binding;
|
|
369
366
|
} catch (e) {
|
|
370
367
|
loadErrors.push(e);
|
|
@@ -378,7 +375,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
378
375
|
try {
|
|
379
376
|
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
380
377
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
381
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
378
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
382
379
|
return binding;
|
|
383
380
|
} catch (e) {
|
|
384
381
|
loadErrors.push(e);
|
|
@@ -393,7 +390,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
393
390
|
try {
|
|
394
391
|
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
395
392
|
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
396
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
393
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
397
394
|
return binding;
|
|
398
395
|
} catch (e) {
|
|
399
396
|
loadErrors.push(e);
|
|
@@ -407,7 +404,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
407
404
|
try {
|
|
408
405
|
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
409
406
|
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
410
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
407
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
411
408
|
return binding;
|
|
412
409
|
} catch (e) {
|
|
413
410
|
loadErrors.push(e);
|
|
@@ -422,7 +419,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
422
419
|
try {
|
|
423
420
|
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
424
421
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
425
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
422
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
426
423
|
return binding;
|
|
427
424
|
} catch (e) {
|
|
428
425
|
loadErrors.push(e);
|
|
@@ -436,7 +433,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
436
433
|
try {
|
|
437
434
|
const binding = __require("@rolldown/binding-openharmony-x64");
|
|
438
435
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
439
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
436
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
440
437
|
return binding;
|
|
441
438
|
} catch (e) {
|
|
442
439
|
loadErrors.push(e);
|
|
@@ -450,7 +447,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
450
447
|
try {
|
|
451
448
|
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
452
449
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
453
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
450
|
+
if (bindingPackageVersion !== "1.0.0-beta.53" && 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.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
454
451
|
return binding;
|
|
455
452
|
} catch (e) {
|
|
456
453
|
loadErrors.push(e);
|
|
@@ -556,7 +553,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
|
|
|
556
553
|
module.exports.registerPlugins = nativeBinding.registerPlugins;
|
|
557
554
|
module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
|
|
558
555
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
559
|
-
})
|
|
556
|
+
}));
|
|
560
557
|
|
|
561
558
|
//#endregion
|
|
562
559
|
export { require_binding as t };
|
|
@@ -271,12 +271,6 @@ type ImportNameKind = /** `import { x } from "mod"` */
|
|
|
271
271
|
'Name' | /** `import * as ns from "mod"` */
|
|
272
272
|
'NamespaceObject' | /** `import defaultExport from "mod"` */
|
|
273
273
|
'Default';
|
|
274
|
-
/**
|
|
275
|
-
* Parse asynchronously.
|
|
276
|
-
*
|
|
277
|
-
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
278
|
-
*/
|
|
279
|
-
declare function parse(filename: string, sourceText: string, options?: ParserOptions | undefined | null): Promise<ParseResult>;
|
|
280
274
|
interface ParserOptions {
|
|
281
275
|
/** Treat the source text as `js`, `jsx`, `ts`, `tsx` or `dts`. */
|
|
282
276
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
|
|
@@ -317,8 +311,6 @@ interface ParserOptions {
|
|
|
317
311
|
*/
|
|
318
312
|
showSemanticErrors?: boolean;
|
|
319
313
|
}
|
|
320
|
-
/** Parse synchronously. */
|
|
321
|
-
declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | undefined | null): ParseResult;
|
|
322
314
|
interface Span {
|
|
323
315
|
start: number;
|
|
324
316
|
end: number;
|
|
@@ -1277,6 +1269,44 @@ declare class BindingMagicString {
|
|
|
1277
1269
|
relocate(start: number, end: number, to: number): void;
|
|
1278
1270
|
indent(indentor?: string | undefined | null): void;
|
|
1279
1271
|
}
|
|
1272
|
+
declare class BindingNormalizedOptions {
|
|
1273
|
+
get input(): Array<string> | Record<string, string>;
|
|
1274
|
+
get cwd(): string | null;
|
|
1275
|
+
get platform(): 'node' | 'browser' | 'neutral';
|
|
1276
|
+
get shimMissingExports(): boolean;
|
|
1277
|
+
get name(): string | null;
|
|
1278
|
+
get cssEntryFilenames(): string | undefined;
|
|
1279
|
+
get cssChunkFilenames(): string | undefined;
|
|
1280
|
+
get entryFilenames(): string | undefined;
|
|
1281
|
+
get chunkFilenames(): string | undefined;
|
|
1282
|
+
get assetFilenames(): string | undefined;
|
|
1283
|
+
get dir(): string | null;
|
|
1284
|
+
get file(): string | null;
|
|
1285
|
+
get format(): 'es' | 'cjs' | 'iife' | 'umd';
|
|
1286
|
+
get exports(): 'default' | 'named' | 'none' | 'auto';
|
|
1287
|
+
get esModule(): boolean | 'if-default-prop';
|
|
1288
|
+
get inlineDynamicImports(): boolean;
|
|
1289
|
+
get sourcemap(): boolean | 'inline' | 'hidden';
|
|
1290
|
+
get sourcemapBaseUrl(): string | null;
|
|
1291
|
+
get banner(): string | undefined | null | undefined;
|
|
1292
|
+
get footer(): string | undefined | null | undefined;
|
|
1293
|
+
get intro(): string | undefined | null | undefined;
|
|
1294
|
+
get outro(): string | undefined | null | undefined;
|
|
1295
|
+
get externalLiveBindings(): boolean;
|
|
1296
|
+
get extend(): boolean;
|
|
1297
|
+
get globals(): Record<string, string> | undefined;
|
|
1298
|
+
get hashCharacters(): 'base64' | 'base36' | 'hex';
|
|
1299
|
+
get sourcemapDebugIds(): boolean;
|
|
1300
|
+
get polyfillRequire(): boolean;
|
|
1301
|
+
get minify(): false | 'dce-only' | MinifyOptions;
|
|
1302
|
+
get legalComments(): 'none' | 'inline';
|
|
1303
|
+
get preserveModules(): boolean;
|
|
1304
|
+
get preserveModulesRoot(): string | undefined;
|
|
1305
|
+
get virtualDirname(): string;
|
|
1306
|
+
get topLevelVar(): boolean;
|
|
1307
|
+
get minifyInternalExports(): boolean;
|
|
1308
|
+
get context(): string;
|
|
1309
|
+
}
|
|
1280
1310
|
declare class BindingOutputAsset {
|
|
1281
1311
|
dropInner(): ExternalMemoryStatus;
|
|
1282
1312
|
getFileName(): string;
|
|
@@ -1344,6 +1374,10 @@ interface BindingAssetSource {
|
|
|
1344
1374
|
inner: string | Uint8Array;
|
|
1345
1375
|
}
|
|
1346
1376
|
type BindingBuiltinPluginName = 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-asset' | 'builtin:vite-asset-import-meta-url' | 'builtin:vite-build-import-analysis' | 'builtin:vite-css' | 'builtin:vite-css-post' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-html' | 'builtin:vite-html-inline-proxy' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-wasm-helper' | 'builtin:vite-web-worker-post';
|
|
1377
|
+
interface BindingBundleState {
|
|
1378
|
+
lastFullBuildFailed: boolean;
|
|
1379
|
+
hasStaleOutput: boolean;
|
|
1380
|
+
}
|
|
1347
1381
|
interface BindingClientHmrUpdate {
|
|
1348
1382
|
clientId: string;
|
|
1349
1383
|
update: BindingHmrUpdate;
|
|
@@ -1446,6 +1480,15 @@ interface BindingSourcemap {
|
|
|
1446
1480
|
interface BindingTransformHookExtraArgs {
|
|
1447
1481
|
moduleType: string;
|
|
1448
1482
|
}
|
|
1483
|
+
interface BindingViteAssetImportMetaUrlPluginConfig {
|
|
1484
|
+
root: string;
|
|
1485
|
+
isLib: boolean;
|
|
1486
|
+
publicDir: string;
|
|
1487
|
+
clientEntry: string;
|
|
1488
|
+
tryFsResolve: (id: string) => string | undefined;
|
|
1489
|
+
assetResolver: (id: string, importer: string) => Promise<string | undefined>;
|
|
1490
|
+
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1491
|
+
}
|
|
1449
1492
|
interface BindingViteAssetPluginConfig {
|
|
1450
1493
|
root: string;
|
|
1451
1494
|
isLib: boolean;
|
|
@@ -1499,9 +1542,10 @@ interface BindingViteCssPostPluginConfig {
|
|
|
1499
1542
|
urlBase: string;
|
|
1500
1543
|
decodedBase: string;
|
|
1501
1544
|
libCssFilename?: string;
|
|
1502
|
-
isLegacy?: () => boolean;
|
|
1503
|
-
cssMinify?: (css: string) => Promise<string>;
|
|
1545
|
+
isLegacy?: (args: BindingNormalizedOptions) => boolean;
|
|
1546
|
+
cssMinify?: (css: string, inline: boolean) => Promise<string>;
|
|
1504
1547
|
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1548
|
+
cssScopeTo: () => Record<string, readonly [string, string | undefined]>;
|
|
1505
1549
|
}
|
|
1506
1550
|
interface BindingViteDynamicImportVarsPluginConfig {
|
|
1507
1551
|
include?: Array<BindingStringOrRegex>;
|
|
@@ -1523,6 +1567,7 @@ interface BindingViteHtmlPluginConfig {
|
|
|
1523
1567
|
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1524
1568
|
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1525
1569
|
transformIndexHtml: (html: string, path: string, filename: string, hook: 'transform' | 'generateBundle', output?: BindingOutputs, chunk?: BindingOutputChunk) => Promise<string>;
|
|
1570
|
+
setModuleSideEffects: (id: string) => void;
|
|
1526
1571
|
}
|
|
1527
1572
|
interface BindingViteImportGlobPluginConfig {
|
|
1528
1573
|
root?: string;
|
|
@@ -1538,7 +1583,7 @@ interface BindingViteManifestPluginConfig {
|
|
|
1538
1583
|
root: string;
|
|
1539
1584
|
outPath: string;
|
|
1540
1585
|
isEnableV2?: boolean;
|
|
1541
|
-
isLegacy?: () => boolean;
|
|
1586
|
+
isLegacy?: (args: BindingNormalizedOptions) => boolean;
|
|
1542
1587
|
cssEntries: () => Record<string, string>;
|
|
1543
1588
|
}
|
|
1544
1589
|
interface BindingViteModulePreloadPolyfillPluginConfig {
|
|
@@ -1569,6 +1614,7 @@ interface BindingViteResolvePluginConfig {
|
|
|
1569
1614
|
external: true | string[];
|
|
1570
1615
|
noExternal: true | Array<string | RegExp>;
|
|
1571
1616
|
dedupe: Array<string>;
|
|
1617
|
+
disableCache?: boolean;
|
|
1572
1618
|
legacyInconsistentCjsInterop?: boolean;
|
|
1573
1619
|
finalizeBareSpecifier?: (resolvedId: string, rawId: string, importer: string | null | undefined) => VoidNullable<string>;
|
|
1574
1620
|
finalizeOtherSpecifiers?: (resolvedId: string, rawId: string) => VoidNullable<string>;
|
|
@@ -1606,6 +1652,7 @@ interface BindingViteTransformPluginConfig {
|
|
|
1606
1652
|
interface BindingViteWasmHelperPluginConfig {
|
|
1607
1653
|
decodedBase: string;
|
|
1608
1654
|
}
|
|
1655
|
+
declare function createTokioRuntime(blockingThreads?: number | undefined | null): void;
|
|
1609
1656
|
interface ExternalMemoryStatus {
|
|
1610
1657
|
freed: boolean;
|
|
1611
1658
|
reason?: string;
|
|
@@ -1624,4 +1671,4 @@ interface PreRenderedChunk {
|
|
|
1624
1671
|
exports: Array<string>;
|
|
1625
1672
|
}
|
|
1626
1673
|
//#endregion
|
|
1627
|
-
export {
|
|
1674
|
+
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-C8RwNEVu.mjs → bindingify-input-options-Bk0BBr2s.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
1
|
+
import { t as require_binding } from "./binding-BJqdPU1r.mjs";
|
|
2
2
|
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-CSQ_UMWp.mjs";
|
|
3
3
|
import { a as unreachable, i as unimplemented, o as unsupported, t as arraify } from "./misc-CxyvWjTr.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { t as parseAst } from "./parse-ast-index-
|
|
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-BhaIG1rU.mjs";
|
|
5
|
+
import { t as parseAst } from "./parse-ast-index-BFX0oHaQ.mjs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import * as filter from "@rolldown/pluginutils";
|
|
8
8
|
import fsp from "node:fs/promises";
|
|
@@ -1345,9 +1345,11 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
1345
1345
|
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedOutputPlugins);
|
|
1346
1346
|
const plugins = rawPlugins.map((plugin) => {
|
|
1347
1347
|
if ("_parallel" in plugin) return;
|
|
1348
|
-
if (plugin instanceof BuiltinPlugin) {
|
|
1349
|
-
|
|
1350
|
-
return
|
|
1348
|
+
if (plugin instanceof BuiltinPlugin) switch (plugin.name) {
|
|
1349
|
+
case "builtin:vite-css-post": return bindingifyCSSPostPlugin(plugin, pluginContextData);
|
|
1350
|
+
case "builtin:vite-html": return bindingifyViteHtmlPlugin(plugin, onLog, logLevel, watchMode, pluginContextData);
|
|
1351
|
+
case "builtin:vite-manifest": return bindingifyManifestPlugin(plugin, pluginContextData);
|
|
1352
|
+
default: return bindingifyBuiltInPlugin(plugin);
|
|
1351
1353
|
}
|
|
1352
1354
|
return bindingifyPlugin(plugin, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode);
|
|
1353
1355
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { A as BuiltinPlugin, wt as StringOrRegExp } from "./define-config-BS8Bt-r8.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-CY7Z709f.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -10,7 +10,6 @@ type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConf
|
|
|
10
10
|
declare function viteDynamicImportVarsPlugin(config?: DynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
11
11
|
declare function viteImportGlobPlugin(config?: BindingViteImportGlobPluginConfig): BuiltinPlugin;
|
|
12
12
|
declare function viteReporterPlugin(config?: BindingViteReporterPluginConfig): BuiltinPlugin;
|
|
13
|
-
declare function viteManifestPlugin(config?: BindingViteManifestPluginConfig): BuiltinPlugin;
|
|
14
13
|
declare function viteWasmHelperPlugin(config?: BindingViteWasmHelperPluginConfig): BuiltinPlugin;
|
|
15
14
|
declare function viteWasmFallbackPlugin(): BuiltinPlugin;
|
|
16
15
|
declare function viteLoadFallbackPlugin(): BuiltinPlugin;
|
|
@@ -25,7 +24,7 @@ type ViteReactRefreshWrapperPluginConfig = Omit<BindingViteReactRefreshWrapperPl
|
|
|
25
24
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
26
25
|
};
|
|
27
26
|
declare function viteReactRefreshWrapperPlugin(config: ViteReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
28
|
-
declare function viteCSSPostPlugin(config?: BindingViteCssPostPluginConfig): BuiltinPlugin;
|
|
29
27
|
declare function viteHtmlInlineProxyPlugin(config: BindingViteHtmlInlineProxyPluginConfig): BuiltinPlugin;
|
|
28
|
+
declare function viteAssetImportMetaUrlPlugin(config: BindingViteAssetImportMetaUrlPluginConfig): BuiltinPlugin;
|
|
30
29
|
//#endregion
|
|
31
|
-
export {
|
|
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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BhaIG1rU.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -17,9 +17,6 @@ function viteImportGlobPlugin(config) {
|
|
|
17
17
|
function viteReporterPlugin(config) {
|
|
18
18
|
return new BuiltinPlugin("builtin:vite-reporter", config);
|
|
19
19
|
}
|
|
20
|
-
function viteManifestPlugin(config) {
|
|
21
|
-
return new BuiltinPlugin("builtin:vite-manifest", config);
|
|
22
|
-
}
|
|
23
20
|
function viteWasmHelperPlugin(config) {
|
|
24
21
|
return new BuiltinPlugin("builtin:vite-wasm-helper", config);
|
|
25
22
|
}
|
|
@@ -54,12 +51,12 @@ function viteReactRefreshWrapperPlugin(config) {
|
|
|
54
51
|
}
|
|
55
52
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
|
|
56
53
|
}
|
|
57
|
-
function viteCSSPostPlugin(config) {
|
|
58
|
-
return new BuiltinPlugin("builtin:vite-css-post", config);
|
|
59
|
-
}
|
|
60
54
|
function viteHtmlInlineProxyPlugin(config) {
|
|
61
55
|
return new BuiltinPlugin("builtin:vite-html-inline-proxy", config);
|
|
62
56
|
}
|
|
57
|
+
function viteAssetImportMetaUrlPlugin(config) {
|
|
58
|
+
return new BuiltinPlugin("builtin:vite-asset-import-meta-url", config);
|
|
59
|
+
}
|
|
63
60
|
|
|
64
61
|
//#endregion
|
|
65
|
-
export {
|
|
62
|
+
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 };
|