@voidzero-dev/vite-plus-core 0.1.1 → 0.1.3
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 +11 -22
- package/dist/rolldown/config.d.mts +1 -2
- package/dist/rolldown/config.mjs +10 -11
- package/dist/rolldown/experimental-index.d.mts +20 -6
- package/dist/rolldown/experimental-index.mjs +24 -22
- package/dist/rolldown/filter-index.d.mts +1 -2
- package/dist/rolldown/filter-index.mjs +2 -8
- package/dist/rolldown/get-log-filter.mjs +1 -2
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +10 -13
- package/dist/rolldown/parallel-plugin-worker.mjs +7 -9
- package/dist/rolldown/parallel-plugin.d.mts +1 -2
- package/dist/rolldown/parallel-plugin.mjs +1 -2
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +4 -6
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +4 -6
- package/dist/rolldown/shared/{binding-C4ZlFAt6.d.mts → binding-BohGL_65.d.mts} +10 -5
- package/dist/rolldown/shared/{binding-Bd04_f8P.mjs → binding-COZdHtee.mjs} +7 -16
- package/dist/rolldown/shared/{bindingify-input-options-ffqkmT9z.mjs → bindingify-input-options-DdW_FOGG.mjs} +33 -56
- package/dist/rolldown/shared/{constructors-C5a55nbY.mjs → constructors-CQlws1EK.mjs} +2 -4
- package/dist/rolldown/shared/{constructors-cPsD1J5w.d.mts → constructors-ColrbLxz.d.mts} +2 -2
- package/dist/rolldown/shared/{define-config-DX_4SBzo.d.mts → define-config-BqZZMLjO.d.mts} +66 -30
- package/dist/rolldown/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
- package/dist/rolldown/shared/{error-BYPsvVEN.mjs → error-FTNambir.mjs} +3 -8
- package/dist/rolldown/shared/{load-config-Oj1-3DPg.mjs → load-config-DBRCgd9m.mjs} +2 -4
- package/dist/rolldown/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
- package/dist/rolldown/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
- package/dist/rolldown/shared/{normalize-string-or-regex-DoNa0azR.mjs → normalize-string-or-regex-CJTjKt5t.mjs} +3 -6
- package/dist/rolldown/shared/{parse-Wj8OTS4w.mjs → parse-q7gzDQmi.mjs} +2 -5
- package/dist/rolldown/shared/{prompt-CmNr0AI-.mjs → prompt-DZIXsnf9.mjs} +1 -3
- package/dist/rolldown/shared/{rolldown-y9H0nYAD.mjs → rolldown-BJMdRJb1.mjs} +2 -4
- package/dist/rolldown/shared/{rolldown-build-DkOWV5Vu.mjs → rolldown-build-DKv2K096.mjs} +424 -473
- package/dist/rolldown/shared/{transform-DoG7c5_r.d.mts → transform-BoJxrM-e.d.mts} +1 -1
- package/dist/rolldown/shared/{transform-D55YcCvB.mjs → transform-CQppMqL8.mjs} +3 -6
- package/dist/rolldown/shared/{watch-Cn-znpX_.mjs → watch-BeMWbIuq.mjs} +71 -77
- package/dist/rolldown/utils-index.d.mts +2 -2
- package/dist/rolldown/utils-index.mjs +9 -18
- package/dist/tsdown/{build-BjQ7Rt90-tMPZTflz.js → build-TmLngPCw-CBoVPzkZ.js} +312 -324
- package/dist/tsdown/build-gOkJM1H9-D9ngUBpk.js +5 -0
- package/dist/tsdown/{chunk-CdeBBKNj.js → chunk-CSNpwdVU.js} +13 -23
- package/dist/tsdown/{debug-BUVkFfEZ-D3UMJnif.js → debug-tOJ_PtrM-C-Do1Twv.js} +4 -6
- package/dist/tsdown/{detect-CCATtVj7-DhvBg5EF.js → detect-DK-FDZQ9-CHuRhyUG.js} +2 -4
- package/dist/tsdown/{dist-CFTDWtv2.js → dist-Ba2DZx1w.js} +7 -7
- package/dist/tsdown/{dist-DNcnO8LL.js → dist-DCol2bGA.js} +503 -568
- package/dist/tsdown/{dist-kuoe97DJ.js → dist-_l70jCqI.js} +1 -2
- package/dist/tsdown/{filename-CPj0AKvV.js → filename-BDcjeHGl.js} +3 -5
- package/dist/tsdown/{index-node-ShM0x2b6-Bt7Chc0I.js → index-node-Djp92Gzb-B-AUHI4t.js} +2 -4
- package/dist/tsdown/index-types.d.ts +180 -29
- package/dist/tsdown/index.js +7 -9
- package/dist/tsdown/{main-B3qcLRNf.js → main-DYgM-9Cb.js} +71 -83
- package/dist/tsdown/{node-Ba_UB_xO.js → node-B3Gdtau1.js} +1 -4
- package/dist/tsdown/npm_cjs_chunk_chunk.cjs +6 -8
- package/dist/tsdown/npm_cjs_chunk_lt.cjs +28 -0
- package/dist/tsdown/npm_cjs_chunk_range.cjs +22 -49
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +54 -66
- package/dist/tsdown/npm_entry_picomatch.cjs +18 -30
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +3 -7
- package/dist/tsdown/npm_entry_semver_functions_lt.cjs +5 -0
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +5 -7
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +5 -7
- package/dist/tsdown/npm_entry_tree-kill.cjs +2 -6
- package/dist/tsdown/{resolver-j7HY1N36-DHVsN9q6.js → resolver-CdD-yT15-3eaymYLw.js} +3 -5
- package/dist/tsdown/run.js +209 -74
- package/dist/tsdown/{tsc-CBjlgM2A.js → tsc-CberiTDq.js} +64 -71
- package/dist/tsdown/{tsc-context-D1h5oZB8.js → tsc-context-DiIjfXAG.js} +3 -5
- package/dist/vite/client/client.mjs +4 -19
- package/dist/vite/client/env.mjs +1 -2
- package/dist/vite/node/chunks/build.js +2 -3
- package/dist/vite/node/chunks/build2.js +91 -243
- package/dist/vite/node/chunks/chunk.js +7 -13
- package/dist/vite/node/chunks/config.js +2 -3
- package/dist/vite/node/chunks/dist.js +27 -61
- package/dist/vite/node/chunks/dist2.js +11 -95
- package/dist/vite/node/chunks/lib.js +1 -7
- package/dist/vite/node/chunks/logger.js +3 -8
- package/dist/vite/node/chunks/node.js +137 -428
- package/dist/vite/node/chunks/optimizer.js +2 -3
- package/dist/vite/node/chunks/postcss-import.js +1 -13
- package/dist/vite/node/chunks/preview.js +2 -3
- package/dist/vite/node/chunks/server.js +2 -3
- package/dist/vite/node/cli.js +1 -4
- package/dist/vite/node/index.d.ts +2 -2
- package/dist/vite/node/index.js +1 -2
- package/dist/vite/node/internal.js +1 -2
- package/dist/vite/node/module-runner.js +44 -3
- package/package.json +15 -11
- package/dist/rolldown/cli-setup.d.mts +0 -1
- package/dist/rolldown/cli-setup.mjs +0 -17
- package/dist/tsdown/build-2oRq4mfQ-YC_gzK3u.js +0 -6
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
2
|
//#region \0rolldown/runtime.js
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __defProp = Object.defineProperty;
|
|
@@ -9,16 +8,12 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
9
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
9
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
10
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
22
17
|
}
|
|
23
18
|
return to;
|
|
24
19
|
};
|
|
@@ -27,7 +22,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
22
|
enumerable: true
|
|
28
23
|
}) : target, mod));
|
|
29
24
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
30
|
-
|
|
31
25
|
//#endregion
|
|
32
26
|
//#region src/webcontainer-fallback.cjs
|
|
33
27
|
var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -51,7 +45,6 @@ var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
51
45
|
}
|
|
52
46
|
module.exports = __require(bindingEntry);
|
|
53
47
|
}));
|
|
54
|
-
|
|
55
48
|
//#endregion
|
|
56
49
|
//#region src/binding.cjs
|
|
57
50
|
var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -576,7 +569,6 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
576
569
|
module.exports.BindingPropertyWriteSideEffects = nativeBinding.BindingPropertyWriteSideEffects;
|
|
577
570
|
module.exports.BindingRebuildStrategy = nativeBinding.BindingRebuildStrategy;
|
|
578
571
|
module.exports.collapseSourcemaps = nativeBinding.collapseSourcemaps;
|
|
579
|
-
module.exports.createTokioRuntime = nativeBinding.createTokioRuntime;
|
|
580
572
|
module.exports.enhancedTransform = nativeBinding.enhancedTransform;
|
|
581
573
|
module.exports.enhancedTransformSync = nativeBinding.enhancedTransformSync;
|
|
582
574
|
module.exports.FilterTokenKind = nativeBinding.FilterTokenKind;
|
|
@@ -586,6 +578,5 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
586
578
|
module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
|
|
587
579
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
588
580
|
}));
|
|
589
|
-
|
|
590
581
|
//#endregion
|
|
591
|
-
export { __toESM as n, require_binding as t };
|
|
582
|
+
export { __toESM as n, require_binding as t };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-
|
|
3
|
-
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
4
|
-
import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-
|
|
5
|
-
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-COZdHtee.mjs";
|
|
2
|
+
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-D80CXhvg.mjs";
|
|
3
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CJTjKt5t.mjs";
|
|
4
|
+
import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-DJYbNKZX.mjs";
|
|
5
|
+
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-FTNambir.mjs";
|
|
6
6
|
import { parseAst } from "../parse-ast-index.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import * as filter from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
9
9
|
import fsp from "node:fs/promises";
|
|
10
|
-
|
|
11
10
|
//#region package.json
|
|
12
11
|
var version = "0.0.0";
|
|
13
12
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
|
-
|
|
15
13
|
//#endregion
|
|
16
14
|
//#region src/constants/version.ts
|
|
17
15
|
/**
|
|
@@ -21,14 +19,12 @@ var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compat
|
|
|
21
19
|
* @category Plugin APIs
|
|
22
20
|
*/
|
|
23
21
|
const VERSION = version;
|
|
24
|
-
|
|
25
22
|
//#endregion
|
|
26
23
|
//#region src/constants/index.ts
|
|
27
24
|
/**
|
|
28
25
|
* Runtime helper module ID
|
|
29
26
|
*/
|
|
30
27
|
const RUNTIME_MODULE_ID = "\0rolldown/runtime.js";
|
|
31
|
-
|
|
32
28
|
//#endregion
|
|
33
29
|
//#region src/log/logging.ts
|
|
34
30
|
const LOG_LEVEL_SILENT = "silent";
|
|
@@ -42,7 +38,6 @@ const logLevelPriority = {
|
|
|
42
38
|
[LOG_LEVEL_WARN]: 2,
|
|
43
39
|
[LOG_LEVEL_SILENT]: 3
|
|
44
40
|
};
|
|
45
|
-
|
|
46
41
|
//#endregion
|
|
47
42
|
//#region src/log/log-handler.ts
|
|
48
43
|
const normalizeLog = (log) => typeof log === "string" ? { message: log } : typeof log === "function" ? normalizeLog(log()) : log;
|
|
@@ -57,7 +52,6 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
57
52
|
logger(level, log);
|
|
58
53
|
};
|
|
59
54
|
}
|
|
60
|
-
|
|
61
55
|
//#endregion
|
|
62
56
|
//#region src/utils/normalize-hook.ts
|
|
63
57
|
function normalizeHook(hook) {
|
|
@@ -76,7 +70,6 @@ function normalizeHook(hook) {
|
|
|
76
70
|
}
|
|
77
71
|
unreachable("Invalid hook type");
|
|
78
72
|
}
|
|
79
|
-
|
|
80
73
|
//#endregion
|
|
81
74
|
//#region src/plugin/minimal-plugin-context.ts
|
|
82
75
|
var MinimalPluginContextImpl = class {
|
|
@@ -100,7 +93,6 @@ var MinimalPluginContextImpl = class {
|
|
|
100
93
|
return error(logPluginError(normalizeLog(e), this.pluginName, { hook: this.hookName }));
|
|
101
94
|
}
|
|
102
95
|
};
|
|
103
|
-
|
|
104
96
|
//#endregion
|
|
105
97
|
//#region src/types/plain-object-like.ts
|
|
106
98
|
const LAZY_FIELDS_KEY = Symbol("__lazy_fields__");
|
|
@@ -179,7 +171,6 @@ function getLazyFields(instance) {
|
|
|
179
171
|
const lazyFields = instance.constructor[LAZY_FIELDS_KEY];
|
|
180
172
|
return lazyFields ? new Set(lazyFields.keys()) : /* @__PURE__ */ new Set();
|
|
181
173
|
}
|
|
182
|
-
|
|
183
174
|
//#endregion
|
|
184
175
|
//#region src/decorators/lazy.ts
|
|
185
176
|
/**
|
|
@@ -217,7 +208,6 @@ function lazyProp(target, propertyKey, descriptor) {
|
|
|
217
208
|
configurable: true
|
|
218
209
|
};
|
|
219
210
|
}
|
|
220
|
-
|
|
221
211
|
//#endregion
|
|
222
212
|
//#region src/utils/asset-source.ts
|
|
223
213
|
function transformAssetSource(bindingAssetSource) {
|
|
@@ -226,7 +216,6 @@ function transformAssetSource(bindingAssetSource) {
|
|
|
226
216
|
function bindingAssetSource(source) {
|
|
227
217
|
return { inner: source };
|
|
228
218
|
}
|
|
229
|
-
|
|
230
219
|
//#endregion
|
|
231
220
|
//#region \0@oxc-project+runtime@0.115.0/helpers/decorate.js
|
|
232
221
|
function __decorate(decorators, target, key, desc) {
|
|
@@ -235,7 +224,6 @@ function __decorate(decorators, target, key, desc) {
|
|
|
235
224
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
236
225
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
237
226
|
}
|
|
238
|
-
|
|
239
227
|
//#endregion
|
|
240
228
|
//#region src/types/output-asset-impl.ts
|
|
241
229
|
var OutputAssetImpl = class extends PlainObjectLike {
|
|
@@ -276,7 +264,6 @@ __decorate([lazyProp], OutputAssetImpl.prototype, "originalFileNames", null);
|
|
|
276
264
|
__decorate([lazyProp], OutputAssetImpl.prototype, "name", null);
|
|
277
265
|
__decorate([lazyProp], OutputAssetImpl.prototype, "names", null);
|
|
278
266
|
__decorate([lazyProp], OutputAssetImpl.prototype, "source", null);
|
|
279
|
-
|
|
280
267
|
//#endregion
|
|
281
268
|
//#region src/utils/transform-rendered-module.ts
|
|
282
269
|
function transformToRenderedModule(bindingRenderedModule) {
|
|
@@ -292,7 +279,6 @@ function transformToRenderedModule(bindingRenderedModule) {
|
|
|
292
279
|
}
|
|
293
280
|
};
|
|
294
281
|
}
|
|
295
|
-
|
|
296
282
|
//#endregion
|
|
297
283
|
//#region src/utils/transform-rendered-chunk.ts
|
|
298
284
|
function transformRenderedChunk(chunk) {
|
|
@@ -341,7 +327,6 @@ function transformChunkModules(modules) {
|
|
|
341
327
|
}
|
|
342
328
|
return result;
|
|
343
329
|
}
|
|
344
|
-
|
|
345
330
|
//#endregion
|
|
346
331
|
//#region src/types/output-chunk-impl.ts
|
|
347
332
|
var OutputChunkImpl = class extends PlainObjectLike {
|
|
@@ -415,7 +400,6 @@ __decorate([lazyProp], OutputChunkImpl.prototype, "imports", null);
|
|
|
415
400
|
__decorate([lazyProp], OutputChunkImpl.prototype, "dynamicImports", null);
|
|
416
401
|
__decorate([lazyProp], OutputChunkImpl.prototype, "moduleIds", null);
|
|
417
402
|
__decorate([lazyProp], OutputChunkImpl.prototype, "map", null);
|
|
418
|
-
|
|
419
403
|
//#endregion
|
|
420
404
|
//#region src/utils/transform-to-rollup-output.ts
|
|
421
405
|
function transformToRollupSourceMap(map) {
|
|
@@ -575,7 +559,6 @@ function collectChangedBundle(changed, bundle) {
|
|
|
575
559
|
deleted: changed.deleted
|
|
576
560
|
};
|
|
577
561
|
}
|
|
578
|
-
|
|
579
562
|
//#endregion
|
|
580
563
|
//#region src/utils/transform-module-info.ts
|
|
581
564
|
function transformModuleInfo(info, option) {
|
|
@@ -597,7 +580,6 @@ function transformModuleInfo(info, option) {
|
|
|
597
580
|
...option
|
|
598
581
|
};
|
|
599
582
|
}
|
|
600
|
-
|
|
601
583
|
//#endregion
|
|
602
584
|
//#region src/utils/transform-sourcemap.ts
|
|
603
585
|
function isEmptySourcemapFiled(array) {
|
|
@@ -612,7 +594,6 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
612
594
|
if (isEmptySourcemapFiled(map.sources) || map.sources && map.sources.length === 1 && map.sources[0] !== id) map.sources = [id];
|
|
613
595
|
return map;
|
|
614
596
|
}
|
|
615
|
-
|
|
616
597
|
//#endregion
|
|
617
598
|
//#region ../../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js
|
|
618
599
|
function e(e, t, n) {
|
|
@@ -622,7 +603,6 @@ function e(e, t, n) {
|
|
|
622
603
|
lazyArgs: t
|
|
623
604
|
});
|
|
624
605
|
}
|
|
625
|
-
|
|
626
606
|
//#endregion
|
|
627
607
|
//#region ../../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purry-DH9cw9sy.js
|
|
628
608
|
function t$1(t, n, r) {
|
|
@@ -631,7 +611,6 @@ function t$1(t, n, r) {
|
|
|
631
611
|
if (i === 1) return e(t, n, r);
|
|
632
612
|
throw Error(`Wrong number of arguments`);
|
|
633
613
|
}
|
|
634
|
-
|
|
635
614
|
//#endregion
|
|
636
615
|
//#region ../../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/partition-DAu403JQ.js
|
|
637
616
|
function t(...t) {
|
|
@@ -642,7 +621,6 @@ const n = (e, t) => {
|
|
|
642
621
|
for (let [r, i] of e.entries()) t(i, r, e) ? n[0].push(i) : n[1].push(i);
|
|
643
622
|
return n;
|
|
644
623
|
};
|
|
645
|
-
|
|
646
624
|
//#endregion
|
|
647
625
|
//#region src/plugin/bindingify-hook-filter.ts
|
|
648
626
|
function generalHookFilterMatcherToFilterExprs(matcher, stringKind) {
|
|
@@ -804,7 +782,6 @@ function bindingifyRenderChunkFilter(filterOption) {
|
|
|
804
782
|
}
|
|
805
783
|
return filterOption.code ? bindingifyGeneralHookFilter("code", filterOption.code) : void 0;
|
|
806
784
|
}
|
|
807
|
-
|
|
808
785
|
//#endregion
|
|
809
786
|
//#region src/plugin/bindingify-plugin-hook-meta.ts
|
|
810
787
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -820,7 +797,6 @@ function bindingPluginOrder(order) {
|
|
|
820
797
|
default: throw new Error(`Unknown plugin order: ${order}`);
|
|
821
798
|
}
|
|
822
799
|
}
|
|
823
|
-
|
|
824
800
|
//#endregion
|
|
825
801
|
//#region src/plugin/fs.ts
|
|
826
802
|
const fsModule = {
|
|
@@ -838,7 +814,6 @@ const fsModule = {
|
|
|
838
814
|
unlink: fsp.unlink,
|
|
839
815
|
writeFile: fsp.writeFile
|
|
840
816
|
};
|
|
841
|
-
|
|
842
817
|
//#endregion
|
|
843
818
|
//#region src/plugin/plugin-context.ts
|
|
844
819
|
var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
@@ -946,7 +921,6 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
946
921
|
return parseAst(input, options);
|
|
947
922
|
}
|
|
948
923
|
};
|
|
949
|
-
|
|
950
924
|
//#endregion
|
|
951
925
|
//#region src/plugin/load-plugin-context.ts
|
|
952
926
|
var LoadPluginContextImpl = class extends PluginContextImpl {
|
|
@@ -958,7 +932,6 @@ var LoadPluginContextImpl = class extends PluginContextImpl {
|
|
|
958
932
|
this.inner.addWatchFile(id);
|
|
959
933
|
}
|
|
960
934
|
};
|
|
961
|
-
|
|
962
935
|
//#endregion
|
|
963
936
|
//#region src/plugin/transform-plugin-context.ts
|
|
964
937
|
var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
@@ -995,7 +968,6 @@ var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
|
995
968
|
this.inner.sendMagicString(s);
|
|
996
969
|
}
|
|
997
970
|
};
|
|
998
|
-
|
|
999
971
|
//#endregion
|
|
1000
972
|
//#region src/plugin/bindingify-build-hooks.ts
|
|
1001
973
|
function createPluginContext(args, ctx) {
|
|
@@ -1198,7 +1170,6 @@ function bindingifyModuleParsed(args) {
|
|
|
1198
1170
|
meta: bindingifyPluginHookMeta(meta)
|
|
1199
1171
|
};
|
|
1200
1172
|
}
|
|
1201
|
-
|
|
1202
1173
|
//#endregion
|
|
1203
1174
|
//#region src/plugin/bindingify-output-hooks.ts
|
|
1204
1175
|
function bindingifyRenderStart(args) {
|
|
@@ -1395,7 +1366,6 @@ function bindingifyOutro(args) {
|
|
|
1395
1366
|
meta: bindingifyPluginHookMeta(meta)
|
|
1396
1367
|
};
|
|
1397
1368
|
}
|
|
1398
|
-
|
|
1399
1369
|
//#endregion
|
|
1400
1370
|
//#region src/plugin/bindingify-watch-hooks.ts
|
|
1401
1371
|
function bindingifyWatchChange(args) {
|
|
@@ -1420,7 +1390,6 @@ function bindingifyCloseWatcher(args) {
|
|
|
1420
1390
|
meta: bindingifyPluginHookMeta(meta)
|
|
1421
1391
|
};
|
|
1422
1392
|
}
|
|
1423
|
-
|
|
1424
1393
|
//#endregion
|
|
1425
1394
|
//#region src/plugin/generated/hook-usage.ts
|
|
1426
1395
|
let HookUsageKind = /* @__PURE__ */ function(HookUsageKind) {
|
|
@@ -1481,7 +1450,6 @@ function extractHookUsage(plugin) {
|
|
|
1481
1450
|
if (plugin.outro) hookUsage.union(HookUsageKind.outro);
|
|
1482
1451
|
return hookUsage;
|
|
1483
1452
|
}
|
|
1484
|
-
|
|
1485
1453
|
//#endregion
|
|
1486
1454
|
//#region src/plugin/bindingify-plugin.ts
|
|
1487
1455
|
function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
@@ -1602,14 +1570,14 @@ function wrapHandlers(plugin) {
|
|
|
1602
1570
|
}
|
|
1603
1571
|
return plugin;
|
|
1604
1572
|
}
|
|
1605
|
-
|
|
1606
1573
|
//#endregion
|
|
1607
1574
|
//#region src/options/normalized-input-options.ts
|
|
1608
1575
|
var NormalizedInputOptionsImpl = class extends PlainObjectLike {
|
|
1609
1576
|
inner;
|
|
1610
|
-
constructor(inner, onLog) {
|
|
1577
|
+
constructor(inner, onLog, inputPlugins) {
|
|
1611
1578
|
super();
|
|
1612
1579
|
this.onLog = onLog;
|
|
1580
|
+
this.inputPlugins = inputPlugins;
|
|
1613
1581
|
this.inner = inner;
|
|
1614
1582
|
}
|
|
1615
1583
|
get shimMissingExports() {
|
|
@@ -1627,13 +1595,15 @@ var NormalizedInputOptionsImpl = class extends PlainObjectLike {
|
|
|
1627
1595
|
get context() {
|
|
1628
1596
|
return this.inner.context;
|
|
1629
1597
|
}
|
|
1598
|
+
get plugins() {
|
|
1599
|
+
return this.inputPlugins;
|
|
1600
|
+
}
|
|
1630
1601
|
};
|
|
1631
1602
|
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "shimMissingExports", null);
|
|
1632
1603
|
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "input", null);
|
|
1633
1604
|
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "cwd", null);
|
|
1634
1605
|
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "platform", null);
|
|
1635
1606
|
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "context", null);
|
|
1636
|
-
|
|
1637
1607
|
//#endregion
|
|
1638
1608
|
//#region src/options/normalized-output-options.ts
|
|
1639
1609
|
var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
@@ -1818,7 +1788,6 @@ function normalizeAddon(value) {
|
|
|
1818
1788
|
if (typeof value === "function") return value;
|
|
1819
1789
|
return () => value || "";
|
|
1820
1790
|
}
|
|
1821
|
-
|
|
1822
1791
|
//#endregion
|
|
1823
1792
|
//#region src/plugin/plugin-context-data.ts
|
|
1824
1793
|
var PluginContextData = class {
|
|
@@ -1828,9 +1797,10 @@ var PluginContextData = class {
|
|
|
1828
1797
|
renderedChunkMeta = null;
|
|
1829
1798
|
normalizedInputOptions = null;
|
|
1830
1799
|
normalizedOutputOptions = null;
|
|
1831
|
-
constructor(onLog, outputOptions, normalizedOutputPlugins) {
|
|
1800
|
+
constructor(onLog, outputOptions, normalizedInputPlugins, normalizedOutputPlugins) {
|
|
1832
1801
|
this.onLog = onLog;
|
|
1833
1802
|
this.outputOptions = outputOptions;
|
|
1803
|
+
this.normalizedInputPlugins = normalizedInputPlugins;
|
|
1834
1804
|
this.normalizedOutputPlugins = normalizedOutputPlugins;
|
|
1835
1805
|
}
|
|
1836
1806
|
updateModuleOption(id, option) {
|
|
@@ -1903,7 +1873,7 @@ var PluginContextData = class {
|
|
|
1903
1873
|
return this.renderedChunkMeta;
|
|
1904
1874
|
}
|
|
1905
1875
|
getInputOptions(opts) {
|
|
1906
|
-
this.normalizedInputOptions ??= new NormalizedInputOptionsImpl(opts, this.onLog);
|
|
1876
|
+
this.normalizedInputOptions ??= new NormalizedInputOptionsImpl(opts, this.onLog, this.normalizedInputPlugins);
|
|
1907
1877
|
return this.normalizedInputOptions;
|
|
1908
1878
|
}
|
|
1909
1879
|
getOutputOptions(opts) {
|
|
@@ -1915,7 +1885,6 @@ var PluginContextData = class {
|
|
|
1915
1885
|
this.loadModulePromiseMap.clear();
|
|
1916
1886
|
}
|
|
1917
1887
|
};
|
|
1918
|
-
|
|
1919
1888
|
//#endregion
|
|
1920
1889
|
//#region src/utils/normalize-transform-options.ts
|
|
1921
1890
|
/**
|
|
@@ -1943,11 +1912,10 @@ function normalizeTransformOptions(inputOptions) {
|
|
|
1943
1912
|
oxcTransformOptions
|
|
1944
1913
|
};
|
|
1945
1914
|
}
|
|
1946
|
-
|
|
1947
1915
|
//#endregion
|
|
1948
1916
|
//#region src/utils/bindingify-input-options.ts
|
|
1949
|
-
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
1950
|
-
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedOutputPlugins);
|
|
1917
|
+
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normalizedInputPlugins, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
1918
|
+
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedInputPlugins, normalizedOutputPlugins);
|
|
1951
1919
|
const plugins = rawPlugins.map((plugin) => {
|
|
1952
1920
|
if ("_parallel" in plugin) return;
|
|
1953
1921
|
if (plugin instanceof BuiltinPlugin) switch (plugin.name) {
|
|
@@ -2106,13 +2074,23 @@ function bindingifyInput(input) {
|
|
|
2106
2074
|
});
|
|
2107
2075
|
}
|
|
2108
2076
|
function bindingifyWatch(watch) {
|
|
2109
|
-
if (watch)
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2077
|
+
if (watch) {
|
|
2078
|
+
if (watch.notify) console.warn("The \"watch.notify\" option is deprecated. Please use \"watch.watcher\" instead.");
|
|
2079
|
+
const watcher = {
|
|
2080
|
+
...watch.notify,
|
|
2081
|
+
...watch.watcher
|
|
2082
|
+
};
|
|
2083
|
+
return {
|
|
2084
|
+
buildDelay: watch.buildDelay,
|
|
2085
|
+
skipWrite: watch.skipWrite,
|
|
2086
|
+
usePolling: watcher.usePolling,
|
|
2087
|
+
pollInterval: watcher.pollInterval,
|
|
2088
|
+
compareContentsForPolling: watcher.compareContentsForPolling,
|
|
2089
|
+
include: normalizedStringOrRegex(watch.include),
|
|
2090
|
+
exclude: normalizedStringOrRegex(watch.exclude),
|
|
2091
|
+
onInvalidate: (...args) => watch.onInvalidate?.(...args)
|
|
2092
|
+
};
|
|
2093
|
+
}
|
|
2116
2094
|
}
|
|
2117
2095
|
function bindingifyTreeshakeOptions(config) {
|
|
2118
2096
|
if (config === false) return;
|
|
@@ -2172,6 +2150,5 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
2172
2150
|
field0: preserveEntrySignatures
|
|
2173
2151
|
};
|
|
2174
2152
|
}
|
|
2175
|
-
|
|
2176
2153
|
//#endregion
|
|
2177
|
-
export { version as S, LOG_LEVEL_WARN as _, transformToRollupOutput as a, VERSION as b, transformAssetSource as c, MinimalPluginContextImpl as d, normalizeHook as f, LOG_LEVEL_INFO as g, LOG_LEVEL_ERROR as h, transformModuleInfo as i, lazyProp as l, LOG_LEVEL_DEBUG as m, PluginContextData as n, transformRenderedChunk as o, normalizeLog as p, bindingifyPlugin as r, __decorate as s, bindingifyInputOptions as t, PlainObjectLike as u, logLevelPriority as v, description as x, RUNTIME_MODULE_ID as y };
|
|
2154
|
+
export { version as S, LOG_LEVEL_WARN as _, transformToRollupOutput as a, VERSION as b, transformAssetSource as c, MinimalPluginContextImpl as d, normalizeHook as f, LOG_LEVEL_INFO as g, LOG_LEVEL_ERROR as h, transformModuleInfo as i, lazyProp as l, LOG_LEVEL_DEBUG as m, PluginContextData as n, transformRenderedChunk as o, normalizeLog as p, bindingifyPlugin as r, __decorate as s, bindingifyInputOptions as t, PlainObjectLike as u, logLevelPriority as v, description as x, RUNTIME_MODULE_ID as y };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
2
|
-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CJTjKt5t.mjs";
|
|
3
2
|
//#region src/builtin-plugin/constructors.ts
|
|
4
3
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
5
4
|
return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
|
|
@@ -59,6 +58,5 @@ function viteReactRefreshWrapperPlugin(config) {
|
|
|
59
58
|
}
|
|
60
59
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
|
|
61
60
|
}
|
|
62
|
-
|
|
63
61
|
//#endregion
|
|
64
|
-
export { viteImportGlobPlugin as a, viteModulePreloadPolyfillPlugin as c, viteResolvePlugin as d, viteWasmFallbackPlugin as f, viteDynamicImportVarsPlugin as i, viteReactRefreshWrapperPlugin as l, isolatedDeclarationPlugin as n, viteJsonPlugin as o, viteWebWorkerPostPlugin as p, viteBuildImportAnalysisPlugin as r, viteLoadFallbackPlugin as s, esmExternalRequirePlugin as t, viteReporterPlugin as u };
|
|
62
|
+
export { viteImportGlobPlugin as a, viteModulePreloadPolyfillPlugin as c, viteResolvePlugin as d, viteWasmFallbackPlugin as f, viteDynamicImportVarsPlugin as i, viteReactRefreshWrapperPlugin as l, isolatedDeclarationPlugin as n, viteJsonPlugin as o, viteWebWorkerPostPlugin as p, viteBuildImportAnalysisPlugin as r, viteLoadFallbackPlugin as s, esmExternalRequirePlugin as t, viteReporterPlugin as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as BindingViteModulePreloadPolyfillPluginConfig, E as BindingViteResolvePluginConfig, T as BindingViteReporterPluginConfig, b as BindingViteImportGlobPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, v as BindingViteBuildImportAnalysisPluginConfig, w as BindingViteReactRefreshWrapperPluginConfig, x as BindingViteJsonPluginConfig, y as BindingViteDynamicImportVarsPluginConfig } from "./binding-
|
|
2
|
-
import {
|
|
1
|
+
import { C as BindingViteModulePreloadPolyfillPluginConfig, E as BindingViteResolvePluginConfig, T as BindingViteReporterPluginConfig, b as BindingViteImportGlobPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, v as BindingViteBuildImportAnalysisPluginConfig, w as BindingViteReactRefreshWrapperPluginConfig, x as BindingViteJsonPluginConfig, y as BindingViteDynamicImportVarsPluginConfig } from "./binding-BohGL_65.mjs";
|
|
2
|
+
import { Bt as StringOrRegExp, N as BuiltinPlugin } from "./define-config-BqZZMLjO.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-C6h4g8dA.mjs";
|
|
2
|
-
import { H as TransformOptions$1, L as ParserOptions, M as JsxOptions, N as MinifyOptions$1, O as BindingWatcherBundler, R as PreRenderedChunk, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as ExternalMemoryStatus, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString } from "./binding-
|
|
2
|
+
import { H as TransformOptions$1, L as ParserOptions, M as JsxOptions, N as MinifyOptions$1, O as BindingWatcherBundler, R as PreRenderedChunk, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as ExternalMemoryStatus, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString } from "./binding-BohGL_65.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
@@ -931,6 +931,18 @@ interface OutputOptions {
|
|
|
931
931
|
* @default false
|
|
932
932
|
*/
|
|
933
933
|
strictExecutionOrder?: boolean;
|
|
934
|
+
/**
|
|
935
|
+
* Whether to always output `"use strict"` directive in non-ES module outputs.
|
|
936
|
+
*
|
|
937
|
+
* - `true` - Always emit `"use strict"` at the top of the output (not applicable for ESM format since ESM is always strict).
|
|
938
|
+
* - `false` - Never emit `"use strict"` in the output.
|
|
939
|
+
* - `'auto'` - Respect the `"use strict"` directives from the source code.
|
|
940
|
+
*
|
|
941
|
+
* See [In-depth directive guide](https://rolldown.rs/in-depth/directives) for more details.
|
|
942
|
+
*
|
|
943
|
+
* @default 'auto'
|
|
944
|
+
*/
|
|
945
|
+
strict?: boolean | "auto";
|
|
934
946
|
}
|
|
935
947
|
type CodeSplittingGroup = {
|
|
936
948
|
/**
|
|
@@ -1206,7 +1218,7 @@ declare class RolldownBuild {
|
|
|
1206
1218
|
*
|
|
1207
1219
|
* @param outputOptions The output options.
|
|
1208
1220
|
* @returns The generated bundle.
|
|
1209
|
-
* @throws {@linkcode
|
|
1221
|
+
* @throws {@linkcode BundleError} When an error occurs during the build.
|
|
1210
1222
|
*/
|
|
1211
1223
|
generate(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
1212
1224
|
/**
|
|
@@ -1216,7 +1228,7 @@ declare class RolldownBuild {
|
|
|
1216
1228
|
*
|
|
1217
1229
|
* @param outputOptions The output options.
|
|
1218
1230
|
* @returns The generated bundle.
|
|
1219
|
-
* @throws {@linkcode
|
|
1231
|
+
* @throws {@linkcode BundleError} When an error occurs during the build.
|
|
1220
1232
|
*/
|
|
1221
1233
|
write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
1222
1234
|
/**
|
|
@@ -1662,6 +1674,8 @@ interface NormalizedInputOptions {
|
|
|
1662
1674
|
shimMissingExports: boolean;
|
|
1663
1675
|
/** @see {@linkcode InputOptions.context | context} */
|
|
1664
1676
|
context: string;
|
|
1677
|
+
/** @see {@linkcode InputOptions.plugins | plugins} */
|
|
1678
|
+
plugins: RolldownPlugin[];
|
|
1665
1679
|
}
|
|
1666
1680
|
//#endregion
|
|
1667
1681
|
//#region src/options/normalized-output-options.d.ts
|
|
@@ -2425,6 +2439,19 @@ interface ExistingRawSourceMap {
|
|
|
2425
2439
|
/** @inline @category Plugin APIs */
|
|
2426
2440
|
type SourceMapInput = ExistingRawSourceMap | string | null;
|
|
2427
2441
|
//#endregion
|
|
2442
|
+
//#region src/utils/error.d.ts
|
|
2443
|
+
/**
|
|
2444
|
+
* The error type that is thrown by Rolldown for the whole build.
|
|
2445
|
+
*/
|
|
2446
|
+
type BundleError = Error & {
|
|
2447
|
+
/**
|
|
2448
|
+
* The individual errors that happened during the build.
|
|
2449
|
+
*
|
|
2450
|
+
* This property is a getter to avoid unnecessary expansion of error details when the error is logged.
|
|
2451
|
+
*/
|
|
2452
|
+
errors?: RolldownError[];
|
|
2453
|
+
};
|
|
2454
|
+
//#endregion
|
|
2428
2455
|
//#region src/constants/version.d.ts
|
|
2429
2456
|
/**
|
|
2430
2457
|
* The version of Rolldown.
|
|
@@ -2991,6 +3018,34 @@ type ExternalOptionFunction = (id: string, parentId: string | undefined, isResol
|
|
|
2991
3018
|
/** @inline */
|
|
2992
3019
|
type ExternalOption = StringOrRegExp | StringOrRegExp[] | ExternalOptionFunction;
|
|
2993
3020
|
type ModuleTypes = Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css" | "asset" | "copy">;
|
|
3021
|
+
interface WatcherFileWatcherOptions {
|
|
3022
|
+
/**
|
|
3023
|
+
* Whether to use polling-based file watching instead of native OS events.
|
|
3024
|
+
*
|
|
3025
|
+
* Polling is useful for environments where native FS events are unreliable,
|
|
3026
|
+
* such as network mounts, Docker volumes, or WSL2.
|
|
3027
|
+
*
|
|
3028
|
+
* @default false
|
|
3029
|
+
*/
|
|
3030
|
+
usePolling?: boolean;
|
|
3031
|
+
/**
|
|
3032
|
+
* Interval between each poll in milliseconds.
|
|
3033
|
+
*
|
|
3034
|
+
* This option is only used when {@linkcode usePolling} is `true`.
|
|
3035
|
+
*
|
|
3036
|
+
* @default 100
|
|
3037
|
+
*/
|
|
3038
|
+
pollInterval?: number;
|
|
3039
|
+
/**
|
|
3040
|
+
* Whether to compare file contents for poll-based watchers.
|
|
3041
|
+
* When enabled, poll watchers will check file contents to determine if they actually changed.
|
|
3042
|
+
*
|
|
3043
|
+
* This option is only used when {@linkcode usePolling} is `true`.
|
|
3044
|
+
*
|
|
3045
|
+
* @default false
|
|
3046
|
+
*/
|
|
3047
|
+
compareContentsForPolling?: boolean;
|
|
3048
|
+
}
|
|
2994
3049
|
interface WatcherOptions {
|
|
2995
3050
|
/**
|
|
2996
3051
|
* Whether to skip the {@linkcode RolldownBuild.write | bundle.write()} step when a rebuild is triggered.
|
|
@@ -3016,32 +3071,13 @@ interface WatcherOptions {
|
|
|
3016
3071
|
*/
|
|
3017
3072
|
buildDelay?: number;
|
|
3018
3073
|
/**
|
|
3019
|
-
*
|
|
3074
|
+
* File watcher options for configuring how file changes are detected.
|
|
3020
3075
|
*/
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
*
|
|
3027
|
-
* @default 30_000
|
|
3028
|
-
*/
|
|
3029
|
-
pollInterval?: number;
|
|
3030
|
-
/**
|
|
3031
|
-
* Whether to compare file contents when checking for changes.
|
|
3032
|
-
*
|
|
3033
|
-
* This is especially important for pseudo filesystems like those on Linux
|
|
3034
|
-
* under `/sys` and `/proc` which are not obligated to respect any other
|
|
3035
|
-
* filesystem norms such as modification timestamps, file sizes, etc. By
|
|
3036
|
-
* enabling this feature, performance will be significantly impacted as
|
|
3037
|
-
* all files will need to be read and hashed at each interval.
|
|
3038
|
-
*
|
|
3039
|
-
* This option is only used when polling backend is used.
|
|
3040
|
-
*
|
|
3041
|
-
* @default false
|
|
3042
|
-
*/
|
|
3043
|
-
compareContents?: boolean;
|
|
3044
|
-
};
|
|
3076
|
+
watcher?: WatcherFileWatcherOptions;
|
|
3077
|
+
/**
|
|
3078
|
+
* @deprecated Use {@linkcode watcher} instead.
|
|
3079
|
+
*/
|
|
3080
|
+
notify?: WatcherFileWatcherOptions;
|
|
3045
3081
|
/**
|
|
3046
3082
|
* Filter to limit the file-watching to certain files.
|
|
3047
3083
|
*
|
|
@@ -3143,7 +3179,7 @@ type OptimizationOptions = {
|
|
|
3143
3179
|
* console.log(API_URL);
|
|
3144
3180
|
* ```
|
|
3145
3181
|
*
|
|
3146
|
-
* @default
|
|
3182
|
+
* @default { mode: 'smart', pass: 1 }
|
|
3147
3183
|
*/
|
|
3148
3184
|
inlineConst?: boolean | {
|
|
3149
3185
|
mode?: "all" | "smart";
|
|
@@ -3707,4 +3743,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
3707
3743
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
3708
3744
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
3709
3745
|
//#endregion
|
|
3710
|
-
export {
|
|
3746
|
+
export { GeneralHookFilter as $, SourceDescription as A, CommentsOptions as At, TreeshakingOptions as B, StringOrRegExp as Bt, PartialResolvedId as C, AdvancedChunksGroup as Ct, ResolvedId as D, CodeSplittingGroup as Dt, ResolveIdResult as E, ChunkingContext as Et, VERSION as F, ModuleFormat as Ft, EmittedPrebuiltChunk as G, RolldownOutput as Gt, EmittedAsset as H, OutputChunk as Ht, BundleError as I, OutputOptions as It, PluginContextResolveOptions as J, ModuleInfo as Jt, GetModuleInfo as K, SourceMap as Kt, ExistingRawSourceMap as L, PreRenderedAsset as Lt, withFilter as M, GeneratedCodePreset as Mt, BuiltinPlugin as N, GlobalsFunction as Nt, RolldownPlugin as O, CodeSplittingNameFunction as Ot, RUNTIME_MODULE_ID as P, MinifyOptions as Pt, PluginContextMeta as Q, SourceMapInput as R, MaybePromise as Rt, ParallelPluginHooks as S, AddonFunction as St, ResolveIdExtraOptions as T, ChunkFileNamesFunction as Tt, EmittedChunk as U, RenderedChunk as Ut, TransformPluginContext as V, OutputAsset as Vt, EmittedFile as W, RenderedModule as Wt, defineParallelPlugin as X, DefineParallelPluginResult as Y, SourcemapIgnoreListOption as Yt, MinimalPluginContext as Z, ImportKind as _, WatchOptions as _t, ExternalOption as a, RolldownFsModule as at, ModuleType as b, BuildOptions as bt, InputOptions as c, NormalizedInputOptions as ct, WatcherFileWatcherOptions as d, LoggingFunction as dt, HookFilter as et, WatcherOptions as f, WarningHandlerWithDefault as ft, HookFilterExtension as g, RolldownWatcherWatcherEventMap as gt, FunctionPluginHooks as h, RolldownWatcherEvent as ht, RolldownOptions as i, RolldownFileStats as it, TransformResult as j, GeneratedCodeOptions as jt, RolldownPluginOption as k, CodeSplittingOptions as kt, ModuleTypes as l, TransformOptions as lt, CustomPluginOptions as m, RolldownWatcher as mt, RolldownOptionsFunction as n, BufferEncoding as nt, ExternalOptionFunction as o, InternalModuleFormat as ot, AsyncPluginHooks as p, watch as pt, PluginContext as q, freeExternalMemory as qt, defineConfig as r, RolldownDirectoryEntry as rt, InputOption as s, NormalizedOutputOptions as st, ConfigExport as t, ModuleTypeFilter as tt, OptimizationOptions as u, ChecksOptions as ut, LoadResult as v, rolldown as vt, Plugin as w, AdvancedChunksOptions as wt, ObjectHook as x, build as xt, ModuleOptions as y, RolldownBuild as yt, OutputBundle as z, PartialNull as zt };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as require_binding } from "./binding-COZdHtee.mjs";
|
|
3
2
|
//#region src/types/sourcemap.ts
|
|
4
3
|
function bindingifySourcemap(map) {
|
|
5
4
|
if (map == null) return;
|
|
@@ -14,10 +13,7 @@ function bindingifySourcemap(map) {
|
|
|
14
13
|
debugId: "debugId" in map ? map.debugId : void 0
|
|
15
14
|
} };
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region src/utils/error.ts
|
|
20
|
-
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
16
|
+
require_binding();
|
|
21
17
|
function unwrapBindingResult(container) {
|
|
22
18
|
if (typeof container === "object" && container !== null && "isBindingErrors" in container && container.isBindingErrors) throw aggregateBindingErrorsIntoJsError(container.errors);
|
|
23
19
|
return container;
|
|
@@ -85,6 +81,5 @@ function getErrorMessage(e) {
|
|
|
85
81
|
function joinNewLine(s1, s2) {
|
|
86
82
|
return s1.replace(/\n+$/, "") + "\n" + s2.replace(/^\n+/, "");
|
|
87
83
|
}
|
|
88
|
-
|
|
89
84
|
//#endregion
|
|
90
|
-
export { bindingifySourcemap as a, unwrapBindingResult as i, normalizeBindingError as n, normalizeBindingResult as r, aggregateBindingErrorsIntoJsError as t };
|
|
85
|
+
export { bindingifySourcemap as a, unwrapBindingResult as i, normalizeBindingError as n, normalizeBindingResult as r, aggregateBindingErrorsIntoJsError as t };
|