@rolldown/browser 1.0.0-beta.54 → 1.0.0-beta.55
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.mjs +18 -18
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +7 -7
- package/dist/{constructors-CPxFX1pF.js → constructors-DoEj0CTZ.js} +1 -1
- package/dist/experimental-index.browser.mjs +12 -4
- package/dist/experimental-index.d.mts +11 -5
- package/dist/experimental-index.mjs +10 -6
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +2 -2
- package/dist/get-log-filter.d.mts +7 -0
- package/dist/get-log-filter.mjs +48 -0
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +7 -7
- package/dist/{normalize-string-or-regex-Crhxh-US.js → normalize-string-or-regex-dwgRHUz6.js} +2 -2
- package/dist/parallel-plugin-worker.mjs +3 -3
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-BEfycLl9.js → rolldown-build-7uuCodq1.js} +35 -19
- package/dist/shared/{binding-yIBVkeOE.d.mts → binding-r9j8jqRV.d.mts} +2 -0
- package/dist/shared/{bindingify-input-options-CxbvPG4D.mjs → bindingify-input-options-nvXYfbt3.mjs} +23 -15
- package/dist/shared/{constructors-D9uR3o6d.d.mts → constructors-G-fr57ib.d.mts} +2 -2
- package/dist/shared/{constructors-C4qFjfHR.mjs → constructors-oU7W7sz4.mjs} +1 -1
- package/dist/shared/{define-config-DkpMlrZ3.d.mts → define-config-Bwwa5Tc_.d.mts} +15 -4
- package/dist/shared/{load-config-BqTtlue1.mjs → load-config-DumfiMa-.mjs} +1 -1
- package/dist/shared/logging-BpAvp7KV.d.mts +37 -0
- package/dist/shared/{normalize-string-or-regex-B8NuOx7w.mjs → normalize-string-or-regex-FzNsMab1.mjs} +4 -4
- package/dist/shared/{parse-ast-index-C0k-VwRM.mjs → parse-ast-index-BZ4FJxMm.mjs} +2 -2
- package/dist/shared/{rolldown-BeAWDsL_.mjs → rolldown-CTRsCETA.mjs} +1 -1
- package/dist/shared/{rolldown-build-yjeMNdrl.mjs → rolldown-build-D8oOi181.mjs} +19 -11
- package/dist/shared/utils-CMDrspre.d.mts +29 -0
- package/dist/shared/{watch-C7zN9oTc.mjs → watch-DDjo8C9u.mjs} +9 -9
- package/package.json +1 -1
- package/dist/shared/utils-mjPIk7Yj.d.mts +0 -64
- /package/dist/shared/{composable-filters-DZ5ToxRJ.mjs → composable-filters-G1eqjHFo.mjs} +0 -0
- /package/dist/shared/{define-config-DfeZGBEt.mjs → define-config-BF4P-Pum.mjs} +0 -0
- /package/dist/shared/{logs-CPsamAuj.mjs → logs-By66Jt-E.mjs} +0 -0
- /package/dist/shared/{misc-5GYLGQ20.mjs → misc-BubmxcE3.mjs} +0 -0
- /package/dist/shared/{prompt-pmGBC3ws.mjs → prompt-CNt8OM9C.mjs} +0 -0
package/dist/cli.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { t as arraify } from "./shared/misc-
|
|
3
|
-
import { b as description, x as version } from "./shared/normalize-string-or-regex-
|
|
4
|
-
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-
|
|
5
|
-
import "./shared/bindingify-input-options-
|
|
6
|
-
import "./shared/parse-ast-index-
|
|
7
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
8
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-DDjo8C9u.mjs";
|
|
2
|
+
import { t as arraify } from "./shared/misc-BubmxcE3.mjs";
|
|
3
|
+
import { b as description, x as version } from "./shared/normalize-string-or-regex-FzNsMab1.mjs";
|
|
4
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-D8oOi181.mjs";
|
|
5
|
+
import "./shared/bindingify-input-options-nvXYfbt3.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-BZ4FJxMm.mjs";
|
|
7
|
+
import { t as rolldown } from "./shared/rolldown-CTRsCETA.mjs";
|
|
8
|
+
import { t as loadConfig } from "./shared/load-config-DumfiMa-.mjs";
|
|
9
9
|
import path, { sep } from "node:path";
|
|
10
10
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
11
11
|
import process$1 from "node:process";
|
|
@@ -530,7 +530,7 @@ function getColor$1(color, fallback = "reset") {
|
|
|
530
530
|
return colors[color] || colors[fallback];
|
|
531
531
|
}
|
|
532
532
|
const ansiRegex$1 = [String.raw`[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)`, String.raw`(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))`].join("|");
|
|
533
|
-
function stripAnsi(text) {
|
|
533
|
+
function stripAnsi$1(text) {
|
|
534
534
|
return text.replace(new RegExp(ansiRegex$1, "g"), "");
|
|
535
535
|
}
|
|
536
536
|
const boxStylePresets = {
|
|
@@ -623,14 +623,14 @@ function box(text, _opts = {}) {
|
|
|
623
623
|
if (_color) for (const key in borderStyle) borderStyle[key] = _color(borderStyle[key]);
|
|
624
624
|
const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
|
|
625
625
|
const height = textLines.length + paddingOffset;
|
|
626
|
-
const width = Math.max(...textLines.map((line) => stripAnsi(line).length), opts.title ? stripAnsi(opts.title).length : 0) + paddingOffset;
|
|
626
|
+
const width = Math.max(...textLines.map((line) => stripAnsi$1(line).length), opts.title ? stripAnsi$1(opts.title).length : 0) + paddingOffset;
|
|
627
627
|
const widthOffset = width + paddingOffset;
|
|
628
628
|
const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
|
|
629
629
|
if (opts.style.marginTop > 0) boxLines.push("".repeat(opts.style.marginTop));
|
|
630
630
|
if (opts.title) {
|
|
631
631
|
const title = _color ? _color(opts.title) : opts.title;
|
|
632
|
-
const left = borderStyle.h.repeat(Math.floor((width - stripAnsi(opts.title).length) / 2));
|
|
633
|
-
const right = borderStyle.h.repeat(width - stripAnsi(opts.title).length - stripAnsi(left).length + paddingOffset);
|
|
632
|
+
const left = borderStyle.h.repeat(Math.floor((width - stripAnsi$1(opts.title).length) / 2));
|
|
633
|
+
const right = borderStyle.h.repeat(width - stripAnsi$1(opts.title).length - stripAnsi$1(left).length + paddingOffset);
|
|
634
634
|
boxLines.push(`${leftSpace}${borderStyle.tl}${left}${title}${right}${borderStyle.tr}`);
|
|
635
635
|
} else boxLines.push(`${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`);
|
|
636
636
|
const valignOffset = opts.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
|
|
@@ -638,7 +638,7 @@ function box(text, _opts = {}) {
|
|
|
638
638
|
else {
|
|
639
639
|
const line = textLines[i$1 - valignOffset];
|
|
640
640
|
const left = " ".repeat(paddingOffset);
|
|
641
|
-
const right = " ".repeat(width - stripAnsi(line).length);
|
|
641
|
+
const right = " ".repeat(width - stripAnsi$1(line).length);
|
|
642
642
|
boxLines.push(`${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`);
|
|
643
643
|
}
|
|
644
644
|
boxLines.push(`${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`);
|
|
@@ -811,7 +811,7 @@ function ansiRegex({ onlyFirst = false } = {}) {
|
|
|
811
811
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
812
812
|
}
|
|
813
813
|
const regex = ansiRegex();
|
|
814
|
-
function stripAnsi
|
|
814
|
+
function stripAnsi(string) {
|
|
815
815
|
if (typeof string !== "string") throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
816
816
|
return string.replace(regex, "");
|
|
817
817
|
}
|
|
@@ -840,7 +840,7 @@ const defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
|
|
|
840
840
|
function stringWidth$1(string, options$1 = {}) {
|
|
841
841
|
if (typeof string !== "string" || string.length === 0) return 0;
|
|
842
842
|
const { ambiguousIsNarrow = true, countAnsiEscapeCodes = false } = options$1;
|
|
843
|
-
if (!countAnsiEscapeCodes) string = stripAnsi
|
|
843
|
+
if (!countAnsiEscapeCodes) string = stripAnsi(string);
|
|
844
844
|
if (string.length === 0) return 0;
|
|
845
845
|
let width = 0;
|
|
846
846
|
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
@@ -893,7 +893,7 @@ const TYPE_ICONS = {
|
|
|
893
893
|
log: ""
|
|
894
894
|
};
|
|
895
895
|
function stringWidth(str) {
|
|
896
|
-
if (!(typeof Intl === "object") || !Intl.Segmenter) return stripAnsi(str).length;
|
|
896
|
+
if (!(typeof Intl === "object") || !Intl.Segmenter) return stripAnsi$1(str).length;
|
|
897
897
|
return stringWidth$1(str);
|
|
898
898
|
}
|
|
899
899
|
var FancyReporter = class extends BasicReporter {
|
|
@@ -950,7 +950,7 @@ function createConsola(options$1 = {}) {
|
|
|
950
950
|
defaults: { level },
|
|
951
951
|
stdout: process.stdout,
|
|
952
952
|
stderr: process.stderr,
|
|
953
|
-
prompt: (...args) => import("./shared/prompt-
|
|
953
|
+
prompt: (...args) => import("./shared/prompt-CNt8OM9C.mjs").then((m) => m.prompt(...args)),
|
|
954
954
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
955
955
|
...options$1
|
|
956
956
|
});
|
|
@@ -1237,7 +1237,7 @@ function getClearScreenFunction(options$1) {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
1239
|
//#endregion
|
|
1240
|
-
//#region \0@oxc-project+runtime@0.
|
|
1240
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/usingCtx.js
|
|
1241
1241
|
function _usingCtx() {
|
|
1242
1242
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1243
1243
|
var n$2 = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-
|
|
1
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-Bwwa5Tc_.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { x as version } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import "./shared/rolldown-build-
|
|
3
|
-
import "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
5
|
-
import "./shared/rolldown-
|
|
6
|
-
import { t as defineConfig } from "./shared/define-config-
|
|
7
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
1
|
+
import { x as version } from "./shared/normalize-string-or-regex-FzNsMab1.mjs";
|
|
2
|
+
import "./shared/rolldown-build-D8oOi181.mjs";
|
|
3
|
+
import "./shared/bindingify-input-options-nvXYfbt3.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-BZ4FJxMm.mjs";
|
|
5
|
+
import "./shared/rolldown-CTRsCETA.mjs";
|
|
6
|
+
import { t as defineConfig } from "./shared/define-config-BF4P-Pum.mjs";
|
|
7
|
+
import { t as loadConfig } from "./shared/load-config-DumfiMa-.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/config.ts
|
|
10
10
|
const VERSION = version;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-dwgRHUz6.js";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./normalize-string-or-regex-
|
|
2
|
-
import { a as unwrapBindingResult, c as validateOption, i as normalizeBindingResult, l as PluginDriver, n as createBundlerOptions, o as parse, s as parseSync, t as RolldownBuild } from "./rolldown-build-
|
|
3
|
-
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./constructors-
|
|
1
|
+
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./normalize-string-or-regex-dwgRHUz6.js";
|
|
2
|
+
import { a as unwrapBindingResult, c as validateOption, i as normalizeBindingResult, l as PluginDriver, n as createBundlerOptions, o as parse, s as parseSync, t as RolldownBuild } from "./rolldown-build-7uuCodq1.js";
|
|
3
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./constructors-DoEj0CTZ.js";
|
|
4
|
+
import * as binding from "./rolldown-binding.wasi-browser.js";
|
|
4
5
|
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, createTokioRuntime, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi-browser.js";
|
|
5
6
|
|
|
6
7
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -232,4 +233,11 @@ function viteManifestPlugin(config) {
|
|
|
232
233
|
}
|
|
233
234
|
|
|
234
235
|
//#endregion
|
|
235
|
-
|
|
236
|
+
//#region src/experimental-index.ts
|
|
237
|
+
const memfs = {
|
|
238
|
+
fs: binding.__fs,
|
|
239
|
+
volume: binding.__volume
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
//#endregion
|
|
243
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-
|
|
1
|
+
import { $ as transformSync, B as ParserOptions, C as BindingViteManifestPluginConfig, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as isolatedDeclarationSync, K as createTokioRuntime, L as MinifyResult, N as IsolatedDeclarationsOptions, O as BindingViteTransformPluginConfig, P as IsolatedDeclarationsResult, Q as transform, R as NapiResolveOptions, U as ResolverFactory, W as TransformOptions, X as minifySync, Y as minify, Z as moduleRunnerTransform, _ as BindingViteCssPostPluginConfig, b as BindingViteHtmlPluginConfig, c as BindingRebuildStrategy, f as BindingUrlResolver, g as BindingViteCssPluginConfig, m as BindingViteAssetPluginConfig, n as BindingBundleState, q as isolatedDeclaration, r as BindingClientHmrUpdate, z as ParseResult } from "./shared/binding-r9j8jqRV.mjs";
|
|
2
|
+
import { Et as freeExternalMemory, M as SourceMapInput, P as OutputBundle, U as defineParallelPlugin, W as MinimalPluginContext, et as NormalizedOutputOptions, o as InputOptions, vt as OutputOptions, wt as RolldownOutput, xt as OutputChunk } from "./shared/define-config-Bwwa5Tc_.mjs";
|
|
3
|
+
import { t as BuiltinPlugin } from "./shared/utils-CMDrspre.mjs";
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-G-fr57ib.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -192,4 +192,10 @@ type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"
|
|
|
192
192
|
};
|
|
193
193
|
declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
|
|
194
194
|
//#endregion
|
|
195
|
-
|
|
195
|
+
//#region src/experimental-index.d.ts
|
|
196
|
+
declare const memfs: {
|
|
197
|
+
fs: any;
|
|
198
|
+
volume: any;
|
|
199
|
+
} | undefined;
|
|
200
|
+
//#endregion
|
|
201
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, type ViteHtmlPluginOptions, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-
|
|
3
|
-
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-
|
|
4
|
-
import { i as parseSync, r as parse } from "./shared/parse-ast-index-
|
|
5
|
-
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-
|
|
1
|
+
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-FzNsMab1.mjs";
|
|
2
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-D8oOi181.mjs";
|
|
3
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-nvXYfbt3.mjs";
|
|
4
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-BZ4FJxMm.mjs";
|
|
5
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-oU7W7sz4.mjs";
|
|
6
6
|
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, createTokioRuntime, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi.cjs";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
8
|
|
|
@@ -240,4 +240,8 @@ function viteManifestPlugin(config) {
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
//#endregion
|
|
243
|
-
|
|
243
|
+
//#region src/experimental-index.ts
|
|
244
|
+
const memfs = void 0;
|
|
245
|
+
|
|
246
|
+
//#endregion
|
|
247
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { k as withFilter } from "./shared/define-config-
|
|
1
|
+
import { k as withFilter } from "./shared/define-config-Bwwa5Tc_.mjs";
|
|
2
2
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
3
3
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as isPromiseLike, t as arraify } from "./shared/misc-
|
|
2
|
-
import { a as include, c as or, i as id, l as queries, n as code, o as moduleType, r as exclude, s as not, t as and, u as query } from "./shared/composable-filters-
|
|
1
|
+
import { n as isPromiseLike, t as arraify } from "./shared/misc-BubmxcE3.mjs";
|
|
2
|
+
import { a as include, c as or, i as id, l as queries, n as code, o as moduleType, r as exclude, s as not, t as and, u as query } from "./shared/composable-filters-G1eqjHFo.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/with-filter.ts
|
|
5
5
|
function withFilterImpl(pluginOption, filterObjectList) {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a as RollupLog } from "./shared/logging-BpAvp7KV.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/get-log-filter.d.ts
|
|
4
|
+
type GetLogFilter = (filters: string[]) => (log: RollupLog) => boolean;
|
|
5
|
+
declare const getLogFilter: GetLogFilter;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { GetLogFilter, type RollupLog, getLogFilter as default };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
//#region src/get-log-filter.ts
|
|
2
|
+
const getLogFilter = (filters) => {
|
|
3
|
+
if (filters.length === 0) return () => true;
|
|
4
|
+
const normalizedFilters = filters.map((filter) => filter.split("&").map((subFilter) => {
|
|
5
|
+
const inverted = subFilter.startsWith("!");
|
|
6
|
+
if (inverted) subFilter = subFilter.slice(1);
|
|
7
|
+
const [key, ...value] = subFilter.split(":");
|
|
8
|
+
return {
|
|
9
|
+
inverted,
|
|
10
|
+
key: key.split("."),
|
|
11
|
+
parts: value.join(":").split("*")
|
|
12
|
+
};
|
|
13
|
+
}));
|
|
14
|
+
return (log) => {
|
|
15
|
+
nextIntersectedFilter: for (const intersectedFilters of normalizedFilters) {
|
|
16
|
+
for (const { inverted, key, parts } of intersectedFilters) {
|
|
17
|
+
const isFilterSatisfied = testFilter(log, key, parts);
|
|
18
|
+
if (inverted ? isFilterSatisfied : !isFilterSatisfied) continue nextIntersectedFilter;
|
|
19
|
+
}
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
return false;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
const testFilter = (log, key, parts) => {
|
|
26
|
+
let rawValue = log;
|
|
27
|
+
for (let index = 0; index < key.length; index++) {
|
|
28
|
+
if (!rawValue) return false;
|
|
29
|
+
const part = key[index];
|
|
30
|
+
if (!(part in rawValue)) return false;
|
|
31
|
+
rawValue = rawValue[part];
|
|
32
|
+
}
|
|
33
|
+
let value = typeof rawValue === "object" ? JSON.stringify(rawValue) : String(rawValue);
|
|
34
|
+
if (parts.length === 1) return value === parts[0];
|
|
35
|
+
if (!value.startsWith(parts[0])) return false;
|
|
36
|
+
const lastPartIndex = parts.length - 1;
|
|
37
|
+
for (let index = 1; index < lastPartIndex; index++) {
|
|
38
|
+
const part = parts[index];
|
|
39
|
+
const position = value.indexOf(part);
|
|
40
|
+
if (position === -1) return false;
|
|
41
|
+
value = value.slice(position + part.length);
|
|
42
|
+
}
|
|
43
|
+
return value.endsWith(parts[lastPartIndex]);
|
|
44
|
+
};
|
|
45
|
+
var get_log_filter_default = getLogFilter;
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { get_log_filter_default as default };
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as arraify, P as logMultiplyNotifyOption, w as LOG_LEVEL_WARN, y as VERSION } from "./normalize-string-or-regex-
|
|
2
|
-
import { c as validateOption, l as PluginDriver, n as createBundlerOptions, r as aggregateBindingErrorsIntoJsError, t as RolldownBuild } from "./rolldown-build-
|
|
1
|
+
import { E as arraify, P as logMultiplyNotifyOption, w as LOG_LEVEL_WARN, y as VERSION } from "./normalize-string-or-regex-dwgRHUz6.js";
|
|
2
|
+
import { c as validateOption, l as PluginDriver, n as createBundlerOptions, r as aggregateBindingErrorsIntoJsError, t as RolldownBuild } from "./rolldown-build-7uuCodq1.js";
|
|
3
3
|
import { BindingMagicString, BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
4
4
|
|
|
5
5
|
//#region src/api/rolldown/index.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-
|
|
3
|
-
import { $ as InternalModuleFormat, A as VERSION, B as GetModuleInfo, C as ResolveIdResult, Ct as RenderedModule, D as SourceDescription, Dt as ModuleInfo, E as RolldownPluginOption, F as TreeshakingOptions, G as PluginContextMeta, H as DefineParallelPluginResult, I as TransformPluginContext, J as ModuleTypeFilter, K as GeneralHookFilter, L as EmittedAsset, M as SourceMapInput, N as RolldownOptionsFunction, O as TransformResult, Ot as SourcemapIgnoreListOption, P as OutputBundle, Q as RolldownFsModule, R as EmittedFile, S as ResolveIdExtraOptions, St as RenderedChunk, T as RolldownPlugin, Tt as SourceMap, V as PluginContext, W as MinimalPluginContext, X as RolldownDirectoryEntry, Y as BufferEncoding, Z as RolldownFileStats, _ as ModuleType, _t as ModuleFormat, a as InputOption, at as WatchOptions, b as PartialResolvedId, bt as OutputAsset, c as OptimizationOptions, ct as BuildOptions, d as CustomPluginOptions, dt as ChunkFileNamesFunction, et as NormalizedOutputOptions, f as FunctionPluginHooks, ft as ChunkingContext, g as ModuleOptions, gt as MinifyOptions, h as LoadResult, ht as GlobalsFunction, i as ExternalOption, it as RolldownWatcherEvent, j as ExistingRawSourceMap, l as WatcherOptions, lt as build, m as ImportKind, mt as GeneratedCodePreset, n as ConfigExport, nt as watch, o as InputOptions, ot as rolldown, p as HookFilterExtension, pt as GeneratedCodeOptions, q as HookFilter, r as RolldownOptions, rt as RolldownWatcher, s as ModuleTypes, st as RolldownBuild, t as defineConfig, tt as NormalizedInputOptions, u as AsyncPluginHooks, ut as AddonFunction, v as ObjectHook, vt as OutputOptions, w as ResolvedId, wt as RolldownOutput, x as Plugin, xt as OutputChunk, y as ParallelPluginHooks, yt as PreRenderedAsset, z as EmittedPrebuiltChunk } from "./shared/define-config-
|
|
1
|
+
import { a as RollupLog, i as RollupError, n as LogLevelOption, o as RollupLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BpAvp7KV.mjs";
|
|
2
|
+
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-r9j8jqRV.mjs";
|
|
3
|
+
import { $ as InternalModuleFormat, A as VERSION, B as GetModuleInfo, C as ResolveIdResult, Ct as RenderedModule, D as SourceDescription, Dt as ModuleInfo, E as RolldownPluginOption, F as TreeshakingOptions, G as PluginContextMeta, H as DefineParallelPluginResult, I as TransformPluginContext, J as ModuleTypeFilter, K as GeneralHookFilter, L as EmittedAsset, M as SourceMapInput, N as RolldownOptionsFunction, O as TransformResult, Ot as SourcemapIgnoreListOption, P as OutputBundle, Q as RolldownFsModule, R as EmittedFile, S as ResolveIdExtraOptions, St as RenderedChunk, T as RolldownPlugin, Tt as SourceMap, V as PluginContext, W as MinimalPluginContext, X as RolldownDirectoryEntry, Y as BufferEncoding, Z as RolldownFileStats, _ as ModuleType, _t as ModuleFormat, a as InputOption, at as WatchOptions, b as PartialResolvedId, bt as OutputAsset, c as OptimizationOptions, ct as BuildOptions, d as CustomPluginOptions, dt as ChunkFileNamesFunction, et as NormalizedOutputOptions, f as FunctionPluginHooks, ft as ChunkingContext, g as ModuleOptions, gt as MinifyOptions, h as LoadResult, ht as GlobalsFunction, i as ExternalOption, it as RolldownWatcherEvent, j as ExistingRawSourceMap, l as WatcherOptions, lt as build, m as ImportKind, mt as GeneratedCodePreset, n as ConfigExport, nt as watch, o as InputOptions, ot as rolldown, p as HookFilterExtension, pt as GeneratedCodeOptions, q as HookFilter, r as RolldownOptions, rt as RolldownWatcher, s as ModuleTypes, st as RolldownBuild, t as defineConfig, tt as NormalizedInputOptions, u as AsyncPluginHooks, ut as AddonFunction, v as ObjectHook, vt as OutputOptions, w as ResolvedId, wt as RolldownOutput, x as Plugin, xt as OutputChunk, y as ParallelPluginHooks, yt as PreRenderedAsset, z as EmittedPrebuiltChunk } from "./shared/define-config-Bwwa5Tc_.mjs";
|
|
4
|
+
import { i as WarningHandlerWithDefault, l as PartialNull, n as LoggingFunction } from "./shared/utils-CMDrspre.mjs";
|
|
4
5
|
export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { y as VERSION } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import "./shared/rolldown-build-
|
|
4
|
-
import "./shared/bindingify-input-options-
|
|
5
|
-
import "./shared/parse-ast-index-
|
|
6
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
7
|
-
import { t as defineConfig } from "./shared/define-config-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-DDjo8C9u.mjs";
|
|
2
|
+
import { y as VERSION } from "./shared/normalize-string-or-regex-FzNsMab1.mjs";
|
|
3
|
+
import "./shared/rolldown-build-D8oOi181.mjs";
|
|
4
|
+
import "./shared/bindingify-input-options-nvXYfbt3.mjs";
|
|
5
|
+
import "./shared/parse-ast-index-BZ4FJxMm.mjs";
|
|
6
|
+
import { t as rolldown } from "./shared/rolldown-CTRsCETA.mjs";
|
|
7
|
+
import { t as defineConfig } from "./shared/define-config-BF4P-Pum.mjs";
|
|
8
8
|
import { isMainThread } from "node:worker_threads";
|
|
9
9
|
import { BindingMagicString, initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
|
|
10
10
|
|
package/dist/{normalize-string-or-regex-Crhxh-US.js → normalize-string-or-regex-dwgRHUz6.js}
RENAMED
|
@@ -234,7 +234,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
234
234
|
|
|
235
235
|
//#endregion
|
|
236
236
|
//#region package.json
|
|
237
|
-
var version = "1.0.0-beta.
|
|
237
|
+
var version = "1.0.0-beta.55";
|
|
238
238
|
|
|
239
239
|
//#endregion
|
|
240
240
|
//#region src/version.ts
|
|
@@ -391,7 +391,7 @@ function bindingAssetSource(source) {
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
//#endregion
|
|
394
|
-
//#region \0@oxc-project+runtime@0.
|
|
394
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/decorate.js
|
|
395
395
|
function __decorate(decorators, target, key, desc) {
|
|
396
396
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
397
397
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./shared/normalize-string-or-regex-
|
|
2
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import "./shared/normalize-string-or-regex-FzNsMab1.mjs";
|
|
2
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-nvXYfbt3.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-BZ4FJxMm.mjs";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { x as Plugin } from "./shared/define-config-Bwwa5Tc_.mjs";
|
|
2
|
+
import { s as MaybePromise } from "./shared/utils-CMDrspre.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./normalize-string-or-regex-
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./constructors-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./normalize-string-or-regex-dwgRHUz6.js";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./constructors-DoEj0CTZ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
5
5
|
/**
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { u as BindingReplacePluginConfig } from "./shared/binding-r9j8jqRV.mjs";
|
|
2
|
+
import { t as BuiltinPlugin } from "./shared/utils-CMDrspre.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-G-fr57ib.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-FzNsMab1.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-oU7W7sz4.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
5
5
|
/**
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as augmentCodeLocation, C as LOG_LEVEL_INFO, D as unimplemented, E as arraify, F as logNoFileSystemInBrowser, I as logParseError, L as logPluginError, M as logCycleLoading, N as logInputHookInOutputPlugin, O as unreachable, R as locate, S as LOG_LEVEL_ERROR, T as logLevelPriority, _ as PlainObjectLike, a as bindingifyManifestPlugin, b as normalizeLog, c as collectChangedBundle, d as bindingifySourcemap$1, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, i as bindingifyCSSPostPlugin, j as error, k as unsupported, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_WARN, x as LOG_LEVEL_DEBUG, y as VERSION, z as getCodeFrame } from "./normalize-string-or-regex-
|
|
1
|
+
import { A as augmentCodeLocation, C as LOG_LEVEL_INFO, D as unimplemented, E as arraify, F as logNoFileSystemInBrowser, I as logParseError, L as logPluginError, M as logCycleLoading, N as logInputHookInOutputPlugin, O as unreachable, R as locate, S as LOG_LEVEL_ERROR, T as logLevelPriority, _ as PlainObjectLike, a as bindingifyManifestPlugin, b as normalizeLog, c as collectChangedBundle, d as bindingifySourcemap$1, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, i as bindingifyCSSPostPlugin, j as error, k as unsupported, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_WARN, x as LOG_LEVEL_DEBUG, y as VERSION, z as getCodeFrame } from "./normalize-string-or-regex-dwgRHUz6.js";
|
|
2
2
|
import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, parse, parseSync, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
@@ -2063,7 +2063,7 @@ const OnLogSchema = pipe(vFunction(), args(tuple([
|
|
|
2063
2063
|
LogOrStringHandlerSchema
|
|
2064
2064
|
])));
|
|
2065
2065
|
const OnwarnSchema = pipe(vFunction(), args(tuple([RollupLogSchema, pipe(vFunction(), args(tuple([union([RollupLogWithStringSchema, pipe(vFunction(), returns(RollupLogWithStringSchema))])])))])));
|
|
2066
|
-
const
|
|
2066
|
+
const DevModeSchema = union([boolean(), strictObject({
|
|
2067
2067
|
new: optional(boolean()),
|
|
2068
2068
|
port: optional(number()),
|
|
2069
2069
|
host: optional(string()),
|
|
@@ -2096,7 +2096,7 @@ const InputOptionsSchema = strictObject({
|
|
|
2096
2096
|
strictExecutionOrder: optional(boolean()),
|
|
2097
2097
|
onDemandWrapping: optional(boolean()),
|
|
2098
2098
|
incrementalBuild: optional(boolean()),
|
|
2099
|
-
|
|
2099
|
+
devMode: optional(DevModeSchema),
|
|
2100
2100
|
attachDebugInfo: optional(union([
|
|
2101
2101
|
literal("none"),
|
|
2102
2102
|
literal("simple"),
|
|
@@ -2219,6 +2219,8 @@ const OutputOptionsSchema = strictObject({
|
|
|
2219
2219
|
sourcemapPathTransform: optional(custom(() => true)),
|
|
2220
2220
|
banner: optional(union([string(), AddonFunctionSchema])),
|
|
2221
2221
|
footer: optional(union([string(), AddonFunctionSchema])),
|
|
2222
|
+
postBanner: optional(union([string(), AddonFunctionSchema])),
|
|
2223
|
+
postFooter: optional(union([string(), AddonFunctionSchema])),
|
|
2222
2224
|
intro: optional(union([string(), AddonFunctionSchema])),
|
|
2223
2225
|
outro: optional(union([string(), AddonFunctionSchema])),
|
|
2224
2226
|
extend: pipe(optional(boolean()), description("Extend global variable defined by name in IIFE / UMD formats")),
|
|
@@ -2266,6 +2268,8 @@ const OutputCliOverrideSchema = strictObject({
|
|
|
2266
2268
|
sanitizeFileName: pipe(optional(boolean()), description("Sanitize file name")),
|
|
2267
2269
|
banner: pipe(optional(string()), description(getAddonDescription("top", "outside"))),
|
|
2268
2270
|
footer: pipe(optional(string()), description(getAddonDescription("bottom", "outside"))),
|
|
2271
|
+
postBanner: pipe(optional(string()), description("A string to prepend to the top of each chunk. Applied after the `renderChunk` hook and minification")),
|
|
2272
|
+
postFooter: pipe(optional(string()), description("A string to append to the bottom of each chunk. Applied after the `renderChunk` hook and minification")),
|
|
2269
2273
|
intro: pipe(optional(string()), description(getAddonDescription("top", "inside"))),
|
|
2270
2274
|
outro: pipe(optional(string()), description(getAddonDescription("bottom", "inside"))),
|
|
2271
2275
|
esModule: pipe(optional(boolean()), description("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),
|
|
@@ -2348,7 +2352,7 @@ var RolldownOutputImpl = class extends PlainObjectLike {
|
|
|
2348
2352
|
__decorate([lazyProp], RolldownOutputImpl.prototype, "output", null);
|
|
2349
2353
|
|
|
2350
2354
|
//#endregion
|
|
2351
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2355
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.103.0/node_modules/oxc-parser/src-js/wrap.js
|
|
2352
2356
|
function wrap$1(result) {
|
|
2353
2357
|
let program, module, comments, errors;
|
|
2354
2358
|
return {
|
|
@@ -2634,7 +2638,7 @@ function e(e$1, t$2, n$1) {
|
|
|
2634
2638
|
|
|
2635
2639
|
//#endregion
|
|
2636
2640
|
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purry-DH9cw9sy.js
|
|
2637
|
-
function t(t$2, n$1, r) {
|
|
2641
|
+
function t$1(t$2, n$1, r) {
|
|
2638
2642
|
let i = t$2.length - n$1.length;
|
|
2639
2643
|
if (i === 0) return t$2(...n$1);
|
|
2640
2644
|
if (i === 1) return e(t$2, n$1, r);
|
|
@@ -2643,8 +2647,8 @@ function t(t$2, n$1, r) {
|
|
|
2643
2647
|
|
|
2644
2648
|
//#endregion
|
|
2645
2649
|
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/partition-DAu403JQ.js
|
|
2646
|
-
function t
|
|
2647
|
-
return t(n, t$2);
|
|
2650
|
+
function t(...t$2) {
|
|
2651
|
+
return t$1(n, t$2);
|
|
2648
2652
|
}
|
|
2649
2653
|
const n = (e$1, t$2) => {
|
|
2650
2654
|
let n$1 = [[], []];
|
|
@@ -2674,8 +2678,8 @@ function transformFilterMatcherToFilterExprs(filterOption) {
|
|
|
2674
2678
|
let idExcludes = [];
|
|
2675
2679
|
let codeIncludes = [];
|
|
2676
2680
|
let codeExcludes = [];
|
|
2677
|
-
if (id$1) [idIncludes, idExcludes] = t
|
|
2678
|
-
if (code$1) [codeIncludes, codeExcludes] = t
|
|
2681
|
+
if (id$1) [idIncludes, idExcludes] = t(generalHookFilterMatcherToFilterExprs(id$1, "id") ?? [], (m) => m.kind === "include");
|
|
2682
|
+
if (code$1) [codeIncludes, codeExcludes] = t(generalHookFilterMatcherToFilterExprs(code$1, "code") ?? [], (m) => m.kind === "include");
|
|
2679
2683
|
ret.push(...idExcludes);
|
|
2680
2684
|
ret.push(...codeExcludes);
|
|
2681
2685
|
let andExprList = [];
|
|
@@ -3613,6 +3617,12 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
3613
3617
|
get footer() {
|
|
3614
3618
|
return normalizeAddon(this.outputOptions.footer);
|
|
3615
3619
|
}
|
|
3620
|
+
get postBanner() {
|
|
3621
|
+
return normalizeAddon(this.outputOptions.postBanner);
|
|
3622
|
+
}
|
|
3623
|
+
get postFooter() {
|
|
3624
|
+
return normalizeAddon(this.outputOptions.postFooter);
|
|
3625
|
+
}
|
|
3616
3626
|
get intro() {
|
|
3617
3627
|
return normalizeAddon(this.outputOptions.intro);
|
|
3618
3628
|
}
|
|
@@ -3694,6 +3704,8 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "inlineDynamicImpo
|
|
|
3694
3704
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "externalLiveBindings", null);
|
|
3695
3705
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "banner", null);
|
|
3696
3706
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "footer", null);
|
|
3707
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postBanner", null);
|
|
3708
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postFooter", null);
|
|
3697
3709
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "intro", null);
|
|
3698
3710
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "outro", null);
|
|
3699
3711
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "esModule", null);
|
|
@@ -3898,10 +3910,10 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3898
3910
|
tsconfig: inputOptions.resolve?.tsconfigFilename ?? inputOptions.tsconfig
|
|
3899
3911
|
};
|
|
3900
3912
|
}
|
|
3901
|
-
function
|
|
3902
|
-
if (
|
|
3903
|
-
if (typeof
|
|
3904
|
-
return
|
|
3913
|
+
function bindingifyDevMode(devMode) {
|
|
3914
|
+
if (devMode) {
|
|
3915
|
+
if (typeof devMode === "boolean") return devMode ? {} : void 0;
|
|
3916
|
+
return devMode;
|
|
3905
3917
|
}
|
|
3906
3918
|
}
|
|
3907
3919
|
function bindingifyAttachDebugInfo(attachDebugInfo) {
|
|
@@ -3937,7 +3949,7 @@ function bindingifyExperimental(experimental) {
|
|
|
3937
3949
|
disableLiveBindings: experimental?.disableLiveBindings,
|
|
3938
3950
|
viteMode: experimental?.viteMode,
|
|
3939
3951
|
resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
|
|
3940
|
-
|
|
3952
|
+
devMode: bindingifyDevMode(experimental?.devMode),
|
|
3941
3953
|
attachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),
|
|
3942
3954
|
chunkModulesOrder,
|
|
3943
3955
|
chunkImportMap: experimental?.chunkImportMap,
|
|
@@ -4092,7 +4104,10 @@ var ChunkingContextImpl = class {
|
|
|
4092
4104
|
//#endregion
|
|
4093
4105
|
//#region src/utils/bindingify-output-options.ts
|
|
4094
4106
|
function bindingifyOutputOptions(outputOptions) {
|
|
4095
|
-
const { dir, format: format$1, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir } = outputOptions;
|
|
4107
|
+
const { dir, format: format$1, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir } = outputOptions;
|
|
4108
|
+
if (outputOptions.inlineDynamicImports === true) {
|
|
4109
|
+
if (manualChunks != null) throw new Error("Invalid value \"true\" for option \"output.inlineDynamicImports\" - this option is not supported for \"output.manualChunks\".");
|
|
4110
|
+
}
|
|
4096
4111
|
const advancedChunks = bindingifyAdvancedChunks(outputOptions.advancedChunks, manualChunks);
|
|
4097
4112
|
return {
|
|
4098
4113
|
dir,
|
|
@@ -4107,6 +4122,8 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
4107
4122
|
sourcemapPathTransform,
|
|
4108
4123
|
banner: bindingifyAddon(banner),
|
|
4109
4124
|
footer: bindingifyAddon(footer),
|
|
4125
|
+
postBanner: bindingifyAddon(postBanner),
|
|
4126
|
+
postFooter: bindingifyAddon(postFooter),
|
|
4110
4127
|
intro: bindingifyAddon(intro),
|
|
4111
4128
|
outro: bindingifyAddon(outro),
|
|
4112
4129
|
extend: outputOptions.extend,
|
|
@@ -4137,10 +4154,9 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
4137
4154
|
};
|
|
4138
4155
|
}
|
|
4139
4156
|
function bindingifyAddon(configAddon) {
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
};
|
|
4157
|
+
if (configAddon == null || configAddon === "") return;
|
|
4158
|
+
if (typeof configAddon === "function") return async (chunk) => configAddon(transformRenderedChunk(chunk));
|
|
4159
|
+
return configAddon;
|
|
4144
4160
|
}
|
|
4145
4161
|
function bindingifyFormat(format$1) {
|
|
4146
4162
|
switch (format$1) {
|
|
@@ -1303,6 +1303,8 @@ declare class BindingNormalizedOptions {
|
|
|
1303
1303
|
get footer(): string | undefined | null | undefined;
|
|
1304
1304
|
get intro(): string | undefined | null | undefined;
|
|
1305
1305
|
get outro(): string | undefined | null | undefined;
|
|
1306
|
+
get postBanner(): string | undefined | null | undefined;
|
|
1307
|
+
get postFooter(): string | undefined | null | undefined;
|
|
1306
1308
|
get externalLiveBindings(): boolean;
|
|
1307
1309
|
get extend(): boolean;
|
|
1308
1310
|
get globals(): Record<string, string> | undefined;
|
package/dist/shared/{bindingify-input-options-CxbvPG4D.mjs → bindingify-input-options-nvXYfbt3.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-
|
|
2
|
-
import { a as unreachable, o as unsupported, t as arraify } from "./misc-
|
|
3
|
-
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-
|
|
4
|
-
import { t as parseAst } from "./parse-ast-index-
|
|
5
|
-
import { a as include, c as or, i as id, n as code, o as moduleType, r as exclude, t as and } from "./composable-filters-
|
|
1
|
+
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-By66Jt-E.mjs";
|
|
2
|
+
import { a as unreachable, o as unsupported, t as arraify } from "./misc-BubmxcE3.mjs";
|
|
3
|
+
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-FzNsMab1.mjs";
|
|
4
|
+
import { t as parseAst } from "./parse-ast-index-BZ4FJxMm.mjs";
|
|
5
|
+
import { a as include, c as or, i as id, n as code, o as moduleType, r as exclude, t as and } from "./composable-filters-G1eqjHFo.mjs";
|
|
6
6
|
import { BindingAttachDebugInfo, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fsp from "node:fs/promises";
|
|
@@ -143,7 +143,7 @@ function e(e$1, t$2, n$1) {
|
|
|
143
143
|
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purry-DH9cw9sy.js
|
|
146
|
-
function t(t$2, n$1, r) {
|
|
146
|
+
function t$1(t$2, n$1, r) {
|
|
147
147
|
let i = t$2.length - n$1.length;
|
|
148
148
|
if (i === 0) return t$2(...n$1);
|
|
149
149
|
if (i === 1) return e(t$2, n$1, r);
|
|
@@ -152,8 +152,8 @@ function t(t$2, n$1, r) {
|
|
|
152
152
|
|
|
153
153
|
//#endregion
|
|
154
154
|
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/partition-DAu403JQ.js
|
|
155
|
-
function t
|
|
156
|
-
return t(n, t$2);
|
|
155
|
+
function t(...t$2) {
|
|
156
|
+
return t$1(n, t$2);
|
|
157
157
|
}
|
|
158
158
|
const n = (e$1, t$2) => {
|
|
159
159
|
let n$1 = [[], []];
|
|
@@ -183,8 +183,8 @@ function transformFilterMatcherToFilterExprs(filterOption) {
|
|
|
183
183
|
let idExcludes = [];
|
|
184
184
|
let codeIncludes = [];
|
|
185
185
|
let codeExcludes = [];
|
|
186
|
-
if (id$1) [idIncludes, idExcludes] = t
|
|
187
|
-
if (code$1) [codeIncludes, codeExcludes] = t
|
|
186
|
+
if (id$1) [idIncludes, idExcludes] = t(generalHookFilterMatcherToFilterExprs(id$1, "id") ?? [], (m) => m.kind === "include");
|
|
187
|
+
if (code$1) [codeIncludes, codeExcludes] = t(generalHookFilterMatcherToFilterExprs(code$1, "code") ?? [], (m) => m.kind === "include");
|
|
188
188
|
ret.push(...idExcludes);
|
|
189
189
|
ret.push(...codeExcludes);
|
|
190
190
|
let andExprList = [];
|
|
@@ -1117,6 +1117,12 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
1117
1117
|
get footer() {
|
|
1118
1118
|
return normalizeAddon(this.outputOptions.footer);
|
|
1119
1119
|
}
|
|
1120
|
+
get postBanner() {
|
|
1121
|
+
return normalizeAddon(this.outputOptions.postBanner);
|
|
1122
|
+
}
|
|
1123
|
+
get postFooter() {
|
|
1124
|
+
return normalizeAddon(this.outputOptions.postFooter);
|
|
1125
|
+
}
|
|
1120
1126
|
get intro() {
|
|
1121
1127
|
return normalizeAddon(this.outputOptions.intro);
|
|
1122
1128
|
}
|
|
@@ -1198,6 +1204,8 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "inlineDynamicImpo
|
|
|
1198
1204
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "externalLiveBindings", null);
|
|
1199
1205
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "banner", null);
|
|
1200
1206
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "footer", null);
|
|
1207
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postBanner", null);
|
|
1208
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postFooter", null);
|
|
1201
1209
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "intro", null);
|
|
1202
1210
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "outro", null);
|
|
1203
1211
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "esModule", null);
|
|
@@ -1402,10 +1410,10 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
1402
1410
|
tsconfig: inputOptions.resolve?.tsconfigFilename ?? inputOptions.tsconfig
|
|
1403
1411
|
};
|
|
1404
1412
|
}
|
|
1405
|
-
function
|
|
1406
|
-
if (
|
|
1407
|
-
if (typeof
|
|
1408
|
-
return
|
|
1413
|
+
function bindingifyDevMode(devMode) {
|
|
1414
|
+
if (devMode) {
|
|
1415
|
+
if (typeof devMode === "boolean") return devMode ? {} : void 0;
|
|
1416
|
+
return devMode;
|
|
1409
1417
|
}
|
|
1410
1418
|
}
|
|
1411
1419
|
function bindingifyAttachDebugInfo(attachDebugInfo) {
|
|
@@ -1441,7 +1449,7 @@ function bindingifyExperimental(experimental) {
|
|
|
1441
1449
|
disableLiveBindings: experimental?.disableLiveBindings,
|
|
1442
1450
|
viteMode: experimental?.viteMode,
|
|
1443
1451
|
resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
|
|
1444
|
-
|
|
1452
|
+
devMode: bindingifyDevMode(experimental?.devMode),
|
|
1445
1453
|
attachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),
|
|
1446
1454
|
chunkModulesOrder,
|
|
1447
1455
|
chunkImportMap: experimental?.chunkImportMap,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
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-r9j8jqRV.mjs";
|
|
2
|
+
import { t as BuiltinPlugin, u as StringOrRegExp } from "./utils-CMDrspre.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-FzNsMab1.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { A as BindingWatcherBundler, B as ParserOptions, F as JsxOptions, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, W as TransformOptions$1, a as BindingHookResolveIdExtraArgs, d as BindingTransformHookExtraArgs, j as BindingWatcherEvent, l as BindingRenderedChunk, s as BindingMagicString } from "./binding-
|
|
1
|
+
import { a as RollupLog, i as RollupError, n as LogLevelOption, o as RollupLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-BpAvp7KV.mjs";
|
|
2
|
+
import { A as BindingWatcherBundler, B as ParserOptions, F as JsxOptions, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, W as TransformOptions$1, a as BindingHookResolveIdExtraArgs, d as BindingTransformHookExtraArgs, j as BindingWatcherEvent, l as BindingRenderedChunk, s as BindingMagicString } from "./binding-r9j8jqRV.mjs";
|
|
3
|
+
import { a as MakeAsync, c as NullValue, l as PartialNull, n as LoggingFunction, o as MaybeArray, r as LoggingFunctionWithPosition, s as MaybePromise, t as BuiltinPlugin, u as StringOrRegExp } from "./utils-CMDrspre.mjs";
|
|
3
4
|
import { Program } from "@oxc-project/types";
|
|
4
5
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
5
6
|
|
|
@@ -256,6 +257,14 @@ interface OutputOptions {
|
|
|
256
257
|
sourcemapPathTransform?: SourcemapPathTransformOption;
|
|
257
258
|
banner?: string | AddonFunction;
|
|
258
259
|
footer?: string | AddonFunction;
|
|
260
|
+
/**
|
|
261
|
+
* Similar to `banner` option, but will run after the `renderChunk` hook and builtin minification.
|
|
262
|
+
*/
|
|
263
|
+
postBanner?: string | AddonFunction;
|
|
264
|
+
/**
|
|
265
|
+
* Similar to `footer` option, but will run after the `renderChunk` hook and builtin minification.
|
|
266
|
+
*/
|
|
267
|
+
postFooter?: string | AddonFunction;
|
|
259
268
|
intro?: string | AddonFunction;
|
|
260
269
|
outro?: string | AddonFunction;
|
|
261
270
|
extend?: boolean;
|
|
@@ -695,6 +704,8 @@ interface NormalizedOutputOptions {
|
|
|
695
704
|
externalLiveBindings: boolean;
|
|
696
705
|
banner: AddonFunction;
|
|
697
706
|
footer: AddonFunction;
|
|
707
|
+
postBanner: AddonFunction;
|
|
708
|
+
postFooter: AddonFunction;
|
|
698
709
|
intro: AddonFunction;
|
|
699
710
|
outro: AddonFunction;
|
|
700
711
|
esModule: boolean | "if-default-prop";
|
|
@@ -1313,7 +1324,7 @@ interface WatcherOptions {
|
|
|
1313
1324
|
clearScreen?: boolean;
|
|
1314
1325
|
}
|
|
1315
1326
|
type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
|
|
1316
|
-
type
|
|
1327
|
+
type DevModeOptions = boolean | {
|
|
1317
1328
|
host?: string;
|
|
1318
1329
|
port?: number;
|
|
1319
1330
|
implement?: string;
|
|
@@ -1439,7 +1450,7 @@ interface InputOptions {
|
|
|
1439
1450
|
disableLiveBindings?: boolean;
|
|
1440
1451
|
viteMode?: boolean;
|
|
1441
1452
|
resolveNewUrlToAsset?: boolean;
|
|
1442
|
-
|
|
1453
|
+
devMode?: DevModeOptions;
|
|
1443
1454
|
/**
|
|
1444
1455
|
* Control which order should use when rendering modules in chunk
|
|
1445
1456
|
*
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/log/logging.d.ts
|
|
2
|
+
type LogLevel = "info" | "debug" | "warn";
|
|
3
|
+
type LogLevelOption = LogLevel | "silent";
|
|
4
|
+
type LogLevelWithError = LogLevel | "error";
|
|
5
|
+
interface RollupLog {
|
|
6
|
+
binding?: string;
|
|
7
|
+
cause?: unknown;
|
|
8
|
+
code?: string;
|
|
9
|
+
exporter?: string;
|
|
10
|
+
frame?: string;
|
|
11
|
+
hook?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
ids?: string[];
|
|
14
|
+
loc?: {
|
|
15
|
+
column: number;
|
|
16
|
+
file?: string;
|
|
17
|
+
line: number;
|
|
18
|
+
};
|
|
19
|
+
message: string;
|
|
20
|
+
meta?: any;
|
|
21
|
+
names?: string[];
|
|
22
|
+
plugin?: string;
|
|
23
|
+
pluginCode?: unknown;
|
|
24
|
+
pos?: number;
|
|
25
|
+
reexporter?: string;
|
|
26
|
+
stack?: string;
|
|
27
|
+
url?: string;
|
|
28
|
+
}
|
|
29
|
+
type RollupLogWithString = RollupLog | string;
|
|
30
|
+
interface RollupError extends RollupLog {
|
|
31
|
+
name?: string;
|
|
32
|
+
stack?: string;
|
|
33
|
+
watchFiles?: string[];
|
|
34
|
+
}
|
|
35
|
+
type LogOrStringHandler = (level: LogLevelWithError, log: RollupLogWithString) => void;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { RollupLog as a, RollupError as i, LogLevelOption as n, RollupLogWithString as o, LogOrStringHandler as r, LogLevel as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as logInvalidLogPosition, c as logPluginError, n as error } from "./logs-
|
|
2
|
-
import { r as noop } from "./misc-
|
|
1
|
+
import { a as logInvalidLogPosition, c as logPluginError, n as error } from "./logs-By66Jt-E.mjs";
|
|
2
|
+
import { r as noop } from "./misc-BubmxcE3.mjs";
|
|
3
3
|
import { BindingCallableBuiltinPlugin } from "../rolldown-binding.wasi.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/log/logging.ts
|
|
@@ -32,7 +32,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region package.json
|
|
35
|
-
var version = "1.0.0-beta.
|
|
35
|
+
var version = "1.0.0-beta.55";
|
|
36
36
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
@@ -190,7 +190,7 @@ function bindingAssetSource(source) {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region \0@oxc-project+runtime@0.
|
|
193
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/decorate.js
|
|
194
194
|
function __decorate(decorators, target, key, desc) {
|
|
195
195
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
196
196
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as locate, n as error, s as logParseError, u as getCodeFrame } from "./logs-
|
|
1
|
+
import { l as locate, n as error, s as logParseError, u as getCodeFrame } from "./logs-By66Jt-E.mjs";
|
|
2
2
|
import { parse, parseSync } from "../rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.103.0/node_modules/oxc-parser/src-js/wrap.js
|
|
5
5
|
function wrap$1(result) {
|
|
6
6
|
let program, module, comments, errors;
|
|
7
7
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-
|
|
1
|
+
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-D8oOi181.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/rolldown/index.ts
|
|
4
4
|
const rolldown = async (input) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as logInputHookInOutputPlugin, n as error } from "./logs-
|
|
2
|
-
import { i as unimplemented } from "./misc-
|
|
3
|
-
import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-
|
|
4
|
-
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-
|
|
1
|
+
import { i as logInputHookInOutputPlugin, n as error } from "./logs-By66Jt-E.mjs";
|
|
2
|
+
import { i as unimplemented } from "./misc-BubmxcE3.mjs";
|
|
3
|
+
import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-FzNsMab1.mjs";
|
|
4
|
+
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-nvXYfbt3.mjs";
|
|
5
5
|
import { Worker } from "node:worker_threads";
|
|
6
6
|
import { BindingBundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1696,7 +1696,7 @@ const OnLogSchema = pipe(vFunction(), args(tuple([
|
|
|
1696
1696
|
LogOrStringHandlerSchema
|
|
1697
1697
|
])));
|
|
1698
1698
|
const OnwarnSchema = pipe(vFunction(), args(tuple([RollupLogSchema, pipe(vFunction(), args(tuple([union([RollupLogWithStringSchema, pipe(vFunction(), returns(RollupLogWithStringSchema))])])))])));
|
|
1699
|
-
const
|
|
1699
|
+
const DevModeSchema = union([boolean(), strictObject({
|
|
1700
1700
|
new: optional(boolean()),
|
|
1701
1701
|
port: optional(number()),
|
|
1702
1702
|
host: optional(string()),
|
|
@@ -1729,7 +1729,7 @@ const InputOptionsSchema = strictObject({
|
|
|
1729
1729
|
strictExecutionOrder: optional(boolean()),
|
|
1730
1730
|
onDemandWrapping: optional(boolean()),
|
|
1731
1731
|
incrementalBuild: optional(boolean()),
|
|
1732
|
-
|
|
1732
|
+
devMode: optional(DevModeSchema),
|
|
1733
1733
|
attachDebugInfo: optional(union([
|
|
1734
1734
|
literal("none"),
|
|
1735
1735
|
literal("simple"),
|
|
@@ -1852,6 +1852,8 @@ const OutputOptionsSchema = strictObject({
|
|
|
1852
1852
|
sourcemapPathTransform: optional(custom(() => true)),
|
|
1853
1853
|
banner: optional(union([string(), AddonFunctionSchema])),
|
|
1854
1854
|
footer: optional(union([string(), AddonFunctionSchema])),
|
|
1855
|
+
postBanner: optional(union([string(), AddonFunctionSchema])),
|
|
1856
|
+
postFooter: optional(union([string(), AddonFunctionSchema])),
|
|
1855
1857
|
intro: optional(union([string(), AddonFunctionSchema])),
|
|
1856
1858
|
outro: optional(union([string(), AddonFunctionSchema])),
|
|
1857
1859
|
extend: pipe(optional(boolean()), description("Extend global variable defined by name in IIFE / UMD formats")),
|
|
@@ -1899,6 +1901,8 @@ const OutputCliOverrideSchema = strictObject({
|
|
|
1899
1901
|
sanitizeFileName: pipe(optional(boolean()), description("Sanitize file name")),
|
|
1900
1902
|
banner: pipe(optional(string()), description(getAddonDescription("top", "outside"))),
|
|
1901
1903
|
footer: pipe(optional(string()), description(getAddonDescription("bottom", "outside"))),
|
|
1904
|
+
postBanner: pipe(optional(string()), description("A string to prepend to the top of each chunk. Applied after the `renderChunk` hook and minification")),
|
|
1905
|
+
postFooter: pipe(optional(string()), description("A string to append to the bottom of each chunk. Applied after the `renderChunk` hook and minification")),
|
|
1902
1906
|
intro: pipe(optional(string()), description(getAddonDescription("top", "inside"))),
|
|
1903
1907
|
outro: pipe(optional(string()), description(getAddonDescription("bottom", "inside"))),
|
|
1904
1908
|
esModule: pipe(optional(boolean()), description("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),
|
|
@@ -2014,7 +2018,10 @@ var ChunkingContextImpl = class {
|
|
|
2014
2018
|
//#endregion
|
|
2015
2019
|
//#region src/utils/bindingify-output-options.ts
|
|
2016
2020
|
function bindingifyOutputOptions(outputOptions) {
|
|
2017
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir } = outputOptions;
|
|
2021
|
+
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir } = outputOptions;
|
|
2022
|
+
if (outputOptions.inlineDynamicImports === true) {
|
|
2023
|
+
if (manualChunks != null) throw new Error("Invalid value \"true\" for option \"output.inlineDynamicImports\" - this option is not supported for \"output.manualChunks\".");
|
|
2024
|
+
}
|
|
2018
2025
|
const advancedChunks = bindingifyAdvancedChunks(outputOptions.advancedChunks, manualChunks);
|
|
2019
2026
|
return {
|
|
2020
2027
|
dir,
|
|
@@ -2029,6 +2036,8 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2029
2036
|
sourcemapPathTransform,
|
|
2030
2037
|
banner: bindingifyAddon(banner),
|
|
2031
2038
|
footer: bindingifyAddon(footer),
|
|
2039
|
+
postBanner: bindingifyAddon(postBanner),
|
|
2040
|
+
postFooter: bindingifyAddon(postFooter),
|
|
2032
2041
|
intro: bindingifyAddon(intro),
|
|
2033
2042
|
outro: bindingifyAddon(outro),
|
|
2034
2043
|
extend: outputOptions.extend,
|
|
@@ -2059,10 +2068,9 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2059
2068
|
};
|
|
2060
2069
|
}
|
|
2061
2070
|
function bindingifyAddon(configAddon) {
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
};
|
|
2071
|
+
if (configAddon == null || configAddon === "") return;
|
|
2072
|
+
if (typeof configAddon === "function") return async (chunk) => configAddon(transformRenderedChunk(chunk));
|
|
2073
|
+
return configAddon;
|
|
2066
2074
|
}
|
|
2067
2075
|
function bindingifyFormat(format) {
|
|
2068
2076
|
switch (format) {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { a as RollupLog } from "./logging-BpAvp7KV.mjs";
|
|
2
|
+
import { t as BindingBuiltinPluginName } from "./binding-r9j8jqRV.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/types/utils.d.ts
|
|
5
|
+
type MaybePromise<T> = T | Promise<T>;
|
|
6
|
+
type NullValue<T = void> = T | undefined | null | void;
|
|
7
|
+
type PartialNull<T> = { [P in keyof T]: T[P] | null };
|
|
8
|
+
type MakeAsync<Function_> = Function_ extends ((this: infer This, ...parameters: infer Arguments) => infer Return) ? (this: This, ...parameters: Arguments) => Return | Promise<Return> : never;
|
|
9
|
+
type MaybeArray<T> = T | T[];
|
|
10
|
+
type StringOrRegExp = string | RegExp;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/log/log-handler.d.ts
|
|
13
|
+
type LoggingFunction = (log: RollupLog | string | (() => RollupLog | string)) => void;
|
|
14
|
+
type LoggingFunctionWithPosition = (log: RollupLog | string | (() => RollupLog | string), pos?: number | {
|
|
15
|
+
column: number;
|
|
16
|
+
line: number;
|
|
17
|
+
}) => void;
|
|
18
|
+
type WarningHandlerWithDefault = (warning: RollupLog, defaultHandler: LoggingFunction) => void;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/builtin-plugin/utils.d.ts
|
|
21
|
+
declare class BuiltinPlugin {
|
|
22
|
+
name: BindingBuiltinPluginName;
|
|
23
|
+
_options?: unknown;
|
|
24
|
+
/** Vite-specific option to control plugin ordering */
|
|
25
|
+
enforce?: "pre" | "post";
|
|
26
|
+
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { MakeAsync as a, NullValue as c, WarningHandlerWithDefault as i, PartialNull as l, LoggingFunction as n, MaybeArray as o, LoggingFunctionWithPosition as r, MaybePromise as s, BuiltinPlugin as t, StringOrRegExp as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as logMultiplyNotifyOption } from "./logs-
|
|
2
|
-
import { t as arraify } from "./misc-
|
|
3
|
-
import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-
|
|
4
|
-
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-
|
|
5
|
-
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-
|
|
1
|
+
import { o as logMultiplyNotifyOption } from "./logs-By66Jt-E.mjs";
|
|
2
|
+
import { t as arraify } from "./misc-BubmxcE3.mjs";
|
|
3
|
+
import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-FzNsMab1.mjs";
|
|
4
|
+
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-D8oOi181.mjs";
|
|
5
|
+
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-nvXYfbt3.mjs";
|
|
6
6
|
import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
|
|
8
8
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
@@ -203,18 +203,18 @@ var SignalExit = class extends SignalExitBase {
|
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
const process$1 = globalThis.process;
|
|
206
|
-
const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
|
|
206
|
+
const { onExit: onExit$1, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
|
|
207
207
|
|
|
208
208
|
//#endregion
|
|
209
209
|
//#region src/utils/signal-exit.ts
|
|
210
|
-
function onExit
|
|
210
|
+
function onExit(...args) {
|
|
211
211
|
if (typeof process === "object" && process.versions.webcontainer) {
|
|
212
212
|
process.on("exit", (code) => {
|
|
213
213
|
args[0](code, null);
|
|
214
214
|
});
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
|
-
onExit(...args);
|
|
217
|
+
onExit$1(...args);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
//#endregion
|
|
@@ -347,4 +347,4 @@ const watch = (input) => {
|
|
|
347
347
|
};
|
|
348
348
|
|
|
349
349
|
//#endregion
|
|
350
|
-
export { onExit
|
|
350
|
+
export { onExit as n, watch as t };
|
package/package.json
CHANGED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { t as BindingBuiltinPluginName } from "./binding-yIBVkeOE.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/log/logging.d.ts
|
|
4
|
-
type LogLevel = "info" | "debug" | "warn";
|
|
5
|
-
type LogLevelOption = LogLevel | "silent";
|
|
6
|
-
type LogLevelWithError = LogLevel | "error";
|
|
7
|
-
interface RollupLog {
|
|
8
|
-
binding?: string;
|
|
9
|
-
cause?: unknown;
|
|
10
|
-
code?: string;
|
|
11
|
-
exporter?: string;
|
|
12
|
-
frame?: string;
|
|
13
|
-
hook?: string;
|
|
14
|
-
id?: string;
|
|
15
|
-
ids?: string[];
|
|
16
|
-
loc?: {
|
|
17
|
-
column: number;
|
|
18
|
-
file?: string;
|
|
19
|
-
line: number;
|
|
20
|
-
};
|
|
21
|
-
message: string;
|
|
22
|
-
meta?: any;
|
|
23
|
-
names?: string[];
|
|
24
|
-
plugin?: string;
|
|
25
|
-
pluginCode?: unknown;
|
|
26
|
-
pos?: number;
|
|
27
|
-
reexporter?: string;
|
|
28
|
-
stack?: string;
|
|
29
|
-
url?: string;
|
|
30
|
-
}
|
|
31
|
-
type RollupLogWithString = RollupLog | string;
|
|
32
|
-
interface RollupError extends RollupLog {
|
|
33
|
-
name?: string;
|
|
34
|
-
stack?: string;
|
|
35
|
-
watchFiles?: string[];
|
|
36
|
-
}
|
|
37
|
-
type LogOrStringHandler = (level: LogLevelWithError, log: RollupLogWithString) => void;
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/types/utils.d.ts
|
|
40
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
41
|
-
type NullValue<T = void> = T | undefined | null | void;
|
|
42
|
-
type PartialNull<T> = { [P in keyof T]: T[P] | null };
|
|
43
|
-
type MakeAsync<Function_> = Function_ extends ((this: infer This, ...parameters: infer Arguments) => infer Return) ? (this: This, ...parameters: Arguments) => Return | Promise<Return> : never;
|
|
44
|
-
type MaybeArray<T> = T | T[];
|
|
45
|
-
type StringOrRegExp = string | RegExp;
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/log/log-handler.d.ts
|
|
48
|
-
type LoggingFunction = (log: RollupLog | string | (() => RollupLog | string)) => void;
|
|
49
|
-
type LoggingFunctionWithPosition = (log: RollupLog | string | (() => RollupLog | string), pos?: number | {
|
|
50
|
-
column: number;
|
|
51
|
-
line: number;
|
|
52
|
-
}) => void;
|
|
53
|
-
type WarningHandlerWithDefault = (warning: RollupLog, defaultHandler: LoggingFunction) => void;
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/builtin-plugin/utils.d.ts
|
|
56
|
-
declare class BuiltinPlugin {
|
|
57
|
-
name: BindingBuiltinPluginName;
|
|
58
|
-
_options?: unknown;
|
|
59
|
-
/** Vite-specific option to control plugin ordering */
|
|
60
|
-
enforce?: "pre" | "post";
|
|
61
|
-
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
export { MakeAsync as a, NullValue as c, LogLevel as d, LogLevelOption as f, RollupLogWithString as g, RollupLog as h, WarningHandlerWithDefault as i, PartialNull as l, RollupError as m, LoggingFunction as n, MaybeArray as o, LogOrStringHandler as p, LoggingFunctionWithPosition as r, MaybePromise as s, BuiltinPlugin as t, StringOrRegExp as u };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|