@voidzero-dev/vite-plus-core 0.1.7 → 0.1.8
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 +27 -11
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +8 -8
- package/dist/rolldown/experimental-index.d.mts +2 -2
- package/dist/rolldown/experimental-index.mjs +8 -8
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +9 -10
- package/dist/rolldown/parallel-plugin-worker.mjs +5 -5
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +2 -2
- package/dist/rolldown/plugins-index.d.mts +2 -2
- package/dist/rolldown/plugins-index.mjs +3 -3
- package/dist/rolldown/shared/{bindingify-input-options-DkwIzK4F.mjs → bindingify-input-options-D6u7COm1.mjs} +18 -10
- package/dist/rolldown/shared/{constructors-D91FHkmz.mjs → constructors-Ctal_Rbv.mjs} +1 -1
- package/dist/rolldown/shared/{constructors-Bnr_ApVf.d.mts → constructors-DNuo4d0H.d.mts} +1 -1
- package/dist/rolldown/shared/{define-config-B1jccsL9.d.mts → define-config-cG45vHwf.d.mts} +15 -5
- package/dist/rolldown/shared/{error-tpgdcGrK.mjs → error-CP8smW_P.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-Dapgaecf.mjs → load-config-CjCoDD5h.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-BCllTl21.mjs → normalize-string-or-regex-C5RWbu3O.mjs} +1 -1
- package/dist/rolldown/shared/{parse-DFYpKkKl.mjs → parse-8FR1cSLd.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-DK6iIJl8.mjs → rolldown-B7hI_r7G.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-rw0HCMhn.mjs → rolldown-build-CYoDea9V.mjs} +7 -7
- package/dist/rolldown/shared/{transform-BSCulZAO.mjs → transform-BfdLLNnY.mjs} +2 -2
- package/dist/rolldown/shared/{watch-D8uEZyLj.mjs → watch-CAj7leYN.mjs} +4 -4
- package/dist/rolldown/utils-index.mjs +4 -4
- package/dist/tsdown/build-B1oBkI4C-zptCT7Nv.js +5 -0
- package/dist/tsdown/{build-BG-XbM6V-hoyhQqI3.js → build-CpOl_krN-DF8oTAEE.js} +56 -39
- package/dist/tsdown/{debug-C4FmgzkJ-B6m_gRpz.js → debug-C4FmgzkJ-Fxa4sdkP.js} +2 -2
- package/dist/tsdown/{detect-J1_Vd1yf-BWDiPZkP.js → detect-J1_Vd1yf-uzwu6GvK.js} +1 -1
- package/dist/tsdown/{dist-Dx-jtFHM.js → dist-BTs7u0nu.js} +1 -1
- package/dist/tsdown/{dist-C9Oecl0H.js → dist-dJp148cE.js} +21 -24
- package/dist/tsdown/{filename-tIvGuRvQ.js → filename-UU7z2A9Z.js} +1 -1
- package/dist/tsdown/{index-node-Bpsmc0eX-jMz9gD3P.js → index-node-Bpsmc0eX-BiLag9_o.js} +1 -1
- package/dist/tsdown/index-types.d.ts +30 -11
- package/dist/tsdown/index.js +5 -5
- package/dist/tsdown/{main-DN-_H9u2.js → main-BUXYXu1I.js} +3 -3
- package/dist/tsdown/{resolver-CdD-yT15-3eaymYLw.js → resolver-BUWpVKW_-BR1glCep.js} +3 -4
- package/dist/tsdown/run.js +4 -4
- package/dist/tsdown/{tsc-context-DiIjfXAG.js → tsc-context-BQtoHArj.js} +2 -2
- package/dist/tsdown/{tsc-OwK9UHsV.js → tsc-ncSpKhL9.js} +6 -8
- package/dist/vite/node/index.d.ts +2 -2
- package/package.json +34 -34
- package/dist/tsdown/build-DHPfiKA--CvTonTfC.js +0 -5
- /package/dist/rolldown/shared/{binding-BSVL02lq.mjs → binding-C5G6_6ql.mjs} +0 -0
package/dist/rolldown/cli.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import "./shared/normalize-string-or-regex-
|
|
4
|
-
import {
|
|
1
|
+
import "./shared/binding-C5G6_6ql.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-CAj7leYN.mjs";
|
|
3
|
+
import "./shared/normalize-string-or-regex-C5RWbu3O.mjs";
|
|
4
|
+
import { C as version, S as description } from "./shared/bindingify-input-options-D6u7COm1.mjs";
|
|
5
5
|
import { t as arraify } from "./shared/misc-DJYbNKZX.mjs";
|
|
6
|
-
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-
|
|
7
|
-
import "./shared/error-
|
|
8
|
-
import "./shared/parse-
|
|
9
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
10
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
6
|
+
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-CYoDea9V.mjs";
|
|
7
|
+
import "./shared/error-CP8smW_P.mjs";
|
|
8
|
+
import "./shared/parse-8FR1cSLd.mjs";
|
|
9
|
+
import { t as rolldown } from "./shared/rolldown-B7hI_r7G.mjs";
|
|
10
|
+
import { t as loadConfig } from "./shared/load-config-CjCoDD5h.mjs";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import process$1 from "node:process";
|
|
13
13
|
import { EventEmitter } from "events";
|
|
@@ -674,10 +674,26 @@ function parseCliArguments() {
|
|
|
674
674
|
if (value === void 0) continue;
|
|
675
675
|
const values = Array.isArray(value) ? value : [value];
|
|
676
676
|
if (typeof values[0] !== "string") continue;
|
|
677
|
+
let usedDeprecatedSyntax = false;
|
|
677
678
|
const result = {};
|
|
678
679
|
for (const v of values) for (const pair of String(v).split(",")) {
|
|
679
|
-
const
|
|
680
|
-
|
|
680
|
+
const colonIdx = pair.indexOf(":");
|
|
681
|
+
const eqIdx = pair.indexOf("=");
|
|
682
|
+
let k;
|
|
683
|
+
let val;
|
|
684
|
+
if (colonIdx > 0 && (eqIdx === -1 || colonIdx < eqIdx)) {
|
|
685
|
+
k = pair.slice(0, colonIdx);
|
|
686
|
+
val = pair.slice(colonIdx + 1);
|
|
687
|
+
} else if (eqIdx > 0) {
|
|
688
|
+
k = pair.slice(0, eqIdx);
|
|
689
|
+
val = pair.slice(eqIdx + 1);
|
|
690
|
+
usedDeprecatedSyntax = true;
|
|
691
|
+
} else continue;
|
|
692
|
+
result[k] = val;
|
|
693
|
+
}
|
|
694
|
+
if (usedDeprecatedSyntax) {
|
|
695
|
+
const optionName = camelCaseToKebabCase(schemaKey);
|
|
696
|
+
logger.warn(`Using \`key=value\` syntax for \`--${optionName}\` is deprecated. Use \`key:value\` instead.`);
|
|
681
697
|
}
|
|
682
698
|
parent[leafKey] = result;
|
|
683
699
|
}
|
package/dist/rolldown/config.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import "./shared/normalize-string-or-regex-
|
|
3
|
-
import {
|
|
4
|
-
import "./shared/rolldown-build-
|
|
5
|
-
import "./shared/error-
|
|
6
|
-
import "./shared/parse-
|
|
7
|
-
import "./shared/rolldown-
|
|
1
|
+
import "./shared/binding-C5G6_6ql.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-C5RWbu3O.mjs";
|
|
3
|
+
import { x as VERSION } from "./shared/bindingify-input-options-D6u7COm1.mjs";
|
|
4
|
+
import "./shared/rolldown-build-CYoDea9V.mjs";
|
|
5
|
+
import "./shared/error-CP8smW_P.mjs";
|
|
6
|
+
import "./shared/parse-8FR1cSLd.mjs";
|
|
7
|
+
import "./shared/rolldown-B7hI_r7G.mjs";
|
|
8
8
|
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
9
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
9
|
+
import { t as loadConfig } from "./shared/load-config-CjCoDD5h.mjs";
|
|
10
10
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as IsolatedDeclarationsOptions, B as ResolverFactory, D as BindingViteTransformPluginConfig, F as NapiResolveOptions, G as isolatedDeclarationSync, K as moduleRunnerTransform, S as BindingViteManifestPluginConfig, U as TsconfigCache$1, W as isolatedDeclaration, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsResult, n as BindingBundleAnalyzerPluginConfig, q as resolveTsconfig, r as BindingBundleState, z as ResolveResult } from "./shared/binding-BohGL_65.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-
|
|
2
|
+
import { Jt as freeExternalMemory, Kt as RolldownOutput, Lt as OutputOptions, N as BuiltinPlugin, X as defineParallelPlugin, c as InputOptions, st as NormalizedOutputOptions } from "./shared/define-config-cG45vHwf.mjs";
|
|
3
|
+
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-DNuo4d0H.mjs";
|
|
4
4
|
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, n as TransformResult$1, o as MinifyResult$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-BoJxrM-e.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import {
|
|
4
|
-
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-
|
|
5
|
-
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-
|
|
6
|
-
import { n as parseSync$1, t as parse$1 } from "./shared/parse-
|
|
7
|
-
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-
|
|
8
|
-
import { a as minifySync$1, i as minify$1, n as transform$1, r as transformSync$1, t as import_binding$1 } from "./shared/transform-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-C5G6_6ql.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-C5RWbu3O.mjs";
|
|
3
|
+
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-D6u7COm1.mjs";
|
|
4
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-CYoDea9V.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-CP8smW_P.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-8FR1cSLd.mjs";
|
|
7
|
+
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-Ctal_Rbv.mjs";
|
|
8
|
+
import { a as minifySync$1, i as minify$1, n as transform$1, r as transformSync$1, t as import_binding$1 } from "./shared/transform-BfdLLNnY.mjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
10
|
//#region src/api/dev/dev-engine.ts
|
|
11
11
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-C6h4g8dA.mjs";
|
|
2
|
-
import { R as PreRenderedChunk
|
|
3
|
-
import { $ as GeneralHookFilter, A as SourceDescription, At as
|
|
4
|
-
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks,
|
|
2
|
+
import { R as PreRenderedChunk } from "./shared/binding-BohGL_65.mjs";
|
|
3
|
+
import { $ as GeneralHookFilter, A as SourceDescription, At as CodeSplittingOptions, B as TreeshakingOptions, Bt as PartialNull, C as PartialResolvedId, Ct as AddonFunction, D as ResolvedId, Dt as ChunkingContext, E as ResolveIdResult, Et as ChunkFileNamesFunction, F as VERSION, Ft as MinifyOptions, G as EmittedPrebuiltChunk, Gt as RenderedModule, H as EmittedAsset, Ht as OutputAsset, I as BundleError, It as ModuleFormat, J as PluginContextResolveOptions, K as GetModuleInfo, Kt as RolldownOutput, L as ExistingRawSourceMap, Lt as OutputOptions, Mt as GeneratedCodeOptions, Nt as GeneratedCodePreset, O as RolldownPlugin, Ot as CodeSplittingGroup, P as RUNTIME_MODULE_ID, Pt as GlobalsFunction, Q as PluginContextMeta, R as SourceMapInput, Rt as PreRenderedAsset, S as ParallelPluginHooks, St as build, T as ResolveIdExtraOptions, Tt as AdvancedChunksOptions, U as EmittedChunk, Ut as OutputChunk, V as TransformPluginContext, W as EmittedFile, Wt as RenderedChunk, Xt as SourcemapIgnoreListOption, Y as DefineParallelPluginResult, Yt as ModuleInfo, Z as MinimalPluginContext, _ as ImportKind, _t as RolldownWatcherWatcherEventMap, a as ExternalOption, at as RolldownFsModule, b as ModuleType, bt as RolldownBuild, c as InputOptions, ct as NormalizedInputOptions, d as WatcherFileWatcherOptions, dt as LoggingFunction, et as HookFilter, f as WatcherOptions, ft as WarningHandlerWithDefault, g as HookFilterExtension, gt as RolldownWatcherEvent, h as FunctionPluginHooks, ht as RolldownWatcher, i as RolldownOptions, it as RolldownFileStats, j as TransformResult, jt as CommentsOptions, k as RolldownPluginOption, kt as CodeSplittingNameFunction, l as ModuleTypes, lt as TransformOptions, m as CustomPluginOptions, mt as watch, n as RolldownOptionsFunction, nt as BufferEncoding, o as ExternalOptionFunction, ot as InternalModuleFormat, p as AsyncPluginHooks, pt as BindingMagicString, q as PluginContext, qt as SourceMap, r as defineConfig, rt as RolldownDirectoryEntry, s as InputOption, st as NormalizedOutputOptions, t as ConfigExport, tt as ModuleTypeFilter, u as OptimizationOptions, ut as ChecksOptions, v as LoadResult, vt as WatchOptions, w as Plugin, wt as AdvancedChunksGroup, x as ObjectHook, xt as BuildOptions, y as ModuleOptions, yt as rolldown, z as OutputBundle } from "./shared/define-config-cG45vHwf.mjs";
|
|
4
|
+
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BufferEncoding, BuildOptions, BundleError, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, CommentsOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedChunk, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, 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, PluginContextResolveOptions, PreRenderedAsset, PreRenderedChunk, RUNTIME_MODULE_ID, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, BindingMagicString as RolldownMagicString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherFileWatcherOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/rolldown/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import "./shared/normalize-string-or-regex-
|
|
4
|
-
import {
|
|
5
|
-
import "./shared/rolldown-build-
|
|
6
|
-
import "./shared/error-
|
|
7
|
-
import "./shared/parse-
|
|
8
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-C5G6_6ql.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-CAj7leYN.mjs";
|
|
3
|
+
import "./shared/normalize-string-or-regex-C5RWbu3O.mjs";
|
|
4
|
+
import { a as BindingMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-D6u7COm1.mjs";
|
|
5
|
+
import "./shared/rolldown-build-CYoDea9V.mjs";
|
|
6
|
+
import "./shared/error-CP8smW_P.mjs";
|
|
7
|
+
import "./shared/parse-8FR1cSLd.mjs";
|
|
8
|
+
import { t as rolldown } from "./shared/rolldown-B7hI_r7G.mjs";
|
|
9
9
|
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
10
10
|
import { isMainThread } from "node:worker_threads";
|
|
11
11
|
//#region src/setup.ts
|
|
@@ -51,5 +51,4 @@ async function build(options) {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
|
-
|
|
55
|
-
export { BindingMagicString, RUNTIME_MODULE_ID, VERSION, build, defineConfig, rolldown, watch };
|
|
54
|
+
export { RUNTIME_MODULE_ID, BindingMagicString as RolldownMagicString, VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import "./shared/normalize-string-or-regex-
|
|
3
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/error-
|
|
5
|
-
import "./shared/parse-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-C5G6_6ql.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-C5RWbu3O.mjs";
|
|
3
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-D6u7COm1.mjs";
|
|
4
|
+
import "./shared/error-CP8smW_P.mjs";
|
|
5
|
+
import "./shared/parse-8FR1cSLd.mjs";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
8
8
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as Plugin, zt as MaybePromise } from "./shared/define-config-cG45vHwf.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
4
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
1
|
+
import "./shared/binding-C5G6_6ql.mjs";
|
|
2
2
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
|
|
3
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
3
|
+
import { n as parseSync, t as parse } from "./shared/parse-8FR1cSLd.mjs";
|
|
4
4
|
//#region src/parse-ast-index.ts
|
|
5
5
|
function wrap(result, filename, sourceText) {
|
|
6
6
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { m as BindingReplacePluginConfig } from "./shared/binding-BohGL_65.mjs";
|
|
2
|
-
import { N as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
2
|
+
import { N as BuiltinPlugin } from "./shared/define-config-cG45vHwf.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DNuo4d0H.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import "./shared/binding-C5G6_6ql.mjs";
|
|
2
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-C5RWbu3O.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-Ctal_Rbv.mjs";
|
|
4
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
5
5
|
/**
|
|
6
6
|
* Replaces targeted strings in files while bundling.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-C5G6_6ql.mjs";
|
|
2
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-
|
|
3
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-C5RWbu3O.mjs";
|
|
4
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-
|
|
5
|
+
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-CP8smW_P.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";
|
|
@@ -560,6 +560,15 @@ function collectChangedBundle(changed, bundle) {
|
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
562
|
//#endregion
|
|
563
|
+
//#region src/binding-magic-string.ts
|
|
564
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
565
|
+
Object.defineProperty(import_binding.BindingMagicString.prototype, "isRolldownMagicString", {
|
|
566
|
+
value: true,
|
|
567
|
+
writable: false,
|
|
568
|
+
configurable: false
|
|
569
|
+
});
|
|
570
|
+
const BindingMagicString = import_binding.BindingMagicString;
|
|
571
|
+
//#endregion
|
|
563
572
|
//#region src/utils/transform-module-info.ts
|
|
564
573
|
function transformModuleInfo(info, option) {
|
|
565
574
|
return {
|
|
@@ -784,7 +793,6 @@ function bindingifyRenderChunkFilter(filterOption) {
|
|
|
784
793
|
}
|
|
785
794
|
//#endregion
|
|
786
795
|
//#region src/plugin/bindingify-plugin-hook-meta.ts
|
|
787
|
-
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
788
796
|
function bindingifyPluginHookMeta(options) {
|
|
789
797
|
return { order: bindingPluginOrder(options.order) };
|
|
790
798
|
}
|
|
@@ -1072,7 +1080,7 @@ function bindingifyTransform(args) {
|
|
|
1072
1080
|
Object.defineProperties(meta, {
|
|
1073
1081
|
magicString: { get() {
|
|
1074
1082
|
if (magicStringInstance) return magicStringInstance;
|
|
1075
|
-
magicStringInstance = new
|
|
1083
|
+
magicStringInstance = new BindingMagicString(code);
|
|
1076
1084
|
return magicStringInstance;
|
|
1077
1085
|
} },
|
|
1078
1086
|
ast: { get() {
|
|
@@ -1106,7 +1114,7 @@ function bindingifyTransform(args) {
|
|
|
1106
1114
|
let normalizedCode = void 0;
|
|
1107
1115
|
let map = ret.map;
|
|
1108
1116
|
if (typeof ret.code === "string") normalizedCode = ret.code;
|
|
1109
|
-
else if (ret.code instanceof
|
|
1117
|
+
else if (ret.code instanceof BindingMagicString) {
|
|
1110
1118
|
let magicString = ret.code;
|
|
1111
1119
|
normalizedCode = magicString.toString();
|
|
1112
1120
|
let fallbackSourcemap = ctx.sendMagicString(magicString);
|
|
@@ -1195,14 +1203,14 @@ function bindingifyRenderChunk(args) {
|
|
|
1195
1203
|
if (args.options.experimental?.nativeMagicString) Object.defineProperty(renderChunkMeta, "magicString", {
|
|
1196
1204
|
get() {
|
|
1197
1205
|
if (magicStringInstance) return magicStringInstance;
|
|
1198
|
-
magicStringInstance = new
|
|
1206
|
+
magicStringInstance = new BindingMagicString(code);
|
|
1199
1207
|
return magicStringInstance;
|
|
1200
1208
|
},
|
|
1201
1209
|
configurable: true
|
|
1202
1210
|
});
|
|
1203
1211
|
const ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), code, transformRenderedChunk(chunk), args.pluginContextData.getOutputOptions(opts), renderChunkMeta);
|
|
1204
1212
|
if (ret == null) return;
|
|
1205
|
-
if (ret instanceof
|
|
1213
|
+
if (ret instanceof BindingMagicString) {
|
|
1206
1214
|
const normalizedCode = ret.toString();
|
|
1207
1215
|
const generatedMap = ret.generateMap();
|
|
1208
1216
|
return {
|
|
@@ -1217,7 +1225,7 @@ function bindingifyRenderChunk(args) {
|
|
|
1217
1225
|
};
|
|
1218
1226
|
}
|
|
1219
1227
|
if (typeof ret === "string") return { code: ret };
|
|
1220
|
-
if (ret.code instanceof
|
|
1228
|
+
if (ret.code instanceof BindingMagicString) {
|
|
1221
1229
|
const magicString = ret.code;
|
|
1222
1230
|
const normalizedCode = magicString.toString();
|
|
1223
1231
|
if (ret.map === null) return { code: normalizedCode };
|
|
@@ -2154,4 +2162,4 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
2154
2162
|
};
|
|
2155
2163
|
}
|
|
2156
2164
|
//#endregion
|
|
2157
|
-
export { version as S,
|
|
2165
|
+
export { version as C, description as S, LOG_LEVEL_INFO as _, BindingMagicString as a, RUNTIME_MODULE_ID as b, __decorate as c, PlainObjectLike as d, MinimalPluginContextImpl as f, LOG_LEVEL_ERROR as g, LOG_LEVEL_DEBUG as h, transformModuleInfo as i, transformAssetSource as l, normalizeLog as m, PluginContextData as n, transformToRollupOutput as o, normalizeHook as p, bindingifyPlugin as r, transformRenderedChunk as s, bindingifyInputOptions as t, lazyProp as u, LOG_LEVEL_WARN as v, VERSION as x, logLevelPriority as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-C5RWbu3O.mjs";
|
|
2
2
|
//#region src/builtin-plugin/constructors.ts
|
|
3
3
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
4
4
|
return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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 {
|
|
2
|
+
import { N as BuiltinPlugin, Vt as StringOrRegExp } from "./define-config-cG45vHwf.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-BohGL_65.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$1 } 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
|
|
|
@@ -595,11 +595,11 @@ interface OutputOptions {
|
|
|
595
595
|
* Rolldown uses Oxc Minifier under the hood. See Oxc's [minification documentation](https://oxc.rs/docs/guide/usage/minifier#features) for more details.
|
|
596
596
|
*
|
|
597
597
|
* - `true`: Enable full minification including code compression and dead code elimination
|
|
598
|
-
* - `false`: Disable minification
|
|
599
|
-
* - `'dce-only'`: Only perform dead code elimination without code compression
|
|
598
|
+
* - `false`: Disable minification
|
|
599
|
+
* - `'dce-only'`: Only perform dead code elimination without code compression (default)
|
|
600
600
|
* - `MinifyOptions`: Fine-grained control over minification settings
|
|
601
601
|
*
|
|
602
|
-
* @default
|
|
602
|
+
* @default 'dce-only'
|
|
603
603
|
*/
|
|
604
604
|
minify?: boolean | "dce-only" | MinifyOptions;
|
|
605
605
|
/**
|
|
@@ -1398,6 +1398,16 @@ interface RolldownWatcher {
|
|
|
1398
1398
|
*/
|
|
1399
1399
|
declare function watch(input: WatchOptions | WatchOptions[]): RolldownWatcher;
|
|
1400
1400
|
//#endregion
|
|
1401
|
+
//#region src/binding-magic-string.d.ts
|
|
1402
|
+
interface BindingMagicString extends BindingMagicString$1 {
|
|
1403
|
+
readonly isRolldownMagicString: true;
|
|
1404
|
+
}
|
|
1405
|
+
type BindingMagicStringConstructor = Omit<typeof BindingMagicString$1, "prototype"> & {
|
|
1406
|
+
new (...args: ConstructorParameters<typeof BindingMagicString$1>): BindingMagicString;
|
|
1407
|
+
prototype: BindingMagicString;
|
|
1408
|
+
};
|
|
1409
|
+
declare const BindingMagicString: BindingMagicStringConstructor;
|
|
1410
|
+
//#endregion
|
|
1401
1411
|
//#region src/log/log-handler.d.ts
|
|
1402
1412
|
type LoggingFunction = (log: RolldownLog | string | (() => RolldownLog | string)) => void;
|
|
1403
1413
|
type LoggingFunctionWithPosition = (log: RolldownLog | string | (() => RolldownLog | string), pos?: number | {
|
|
@@ -3761,4 +3771,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
3761
3771
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
3762
3772
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
3763
3773
|
//#endregion
|
|
3764
|
-
export { GeneralHookFilter as $, SourceDescription as A,
|
|
3774
|
+
export { GeneralHookFilter as $, SourceDescription as A, CodeSplittingOptions as At, TreeshakingOptions as B, PartialNull as Bt, PartialResolvedId as C, AddonFunction as Ct, ResolvedId as D, ChunkingContext as Dt, ResolveIdResult as E, ChunkFileNamesFunction as Et, VERSION as F, MinifyOptions as Ft, EmittedPrebuiltChunk as G, RenderedModule as Gt, EmittedAsset as H, OutputAsset as Ht, BundleError as I, ModuleFormat as It, PluginContextResolveOptions as J, freeExternalMemory as Jt, GetModuleInfo as K, RolldownOutput as Kt, ExistingRawSourceMap as L, OutputOptions as Lt, withFilter as M, GeneratedCodeOptions as Mt, BuiltinPlugin as N, GeneratedCodePreset as Nt, RolldownPlugin as O, CodeSplittingGroup as Ot, RUNTIME_MODULE_ID as P, GlobalsFunction as Pt, PluginContextMeta as Q, SourceMapInput as R, PreRenderedAsset as Rt, ParallelPluginHooks as S, build as St, ResolveIdExtraOptions as T, AdvancedChunksOptions as Tt, EmittedChunk as U, OutputChunk as Ut, TransformPluginContext as V, StringOrRegExp as Vt, EmittedFile as W, RenderedChunk as Wt, defineParallelPlugin as X, SourcemapIgnoreListOption as Xt, DefineParallelPluginResult as Y, ModuleInfo as Yt, MinimalPluginContext as Z, ImportKind as _, RolldownWatcherWatcherEventMap as _t, ExternalOption as a, RolldownFsModule as at, ModuleType as b, RolldownBuild 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, RolldownWatcherEvent as gt, FunctionPluginHooks as h, RolldownWatcher as ht, RolldownOptions as i, RolldownFileStats as it, TransformResult as j, CommentsOptions as jt, RolldownPluginOption as k, CodeSplittingNameFunction as kt, ModuleTypes as l, TransformOptions as lt, CustomPluginOptions as m, watch as mt, RolldownOptionsFunction as n, BufferEncoding as nt, ExternalOptionFunction as o, InternalModuleFormat as ot, AsyncPluginHooks as p, BindingMagicString as pt, PluginContext as q, SourceMap 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, WatchOptions as vt, Plugin as w, AdvancedChunksGroup as wt, ObjectHook as x, BuildOptions as xt, ModuleOptions as y, rolldown as yt, OutputBundle as z, MaybePromise as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-C5G6_6ql.mjs";
|
|
2
2
|
import { c as logPluginError, n as error } from "./logs-D80CXhvg.mjs";
|
|
3
3
|
//#region src/builtin-plugin/utils.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-C5G6_6ql.mjs";
|
|
2
2
|
//#region ../../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
function wrap(result) {
|
|
4
4
|
let program, module, comments, errors;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
1
|
+
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-CYoDea9V.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-C5G6_6ql.mjs";
|
|
2
2
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
|
|
3
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
4
|
-
import {
|
|
3
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-C5RWbu3O.mjs";
|
|
4
|
+
import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-D6u7COm1.mjs";
|
|
5
5
|
import { i as unimplemented } from "./misc-DJYbNKZX.mjs";
|
|
6
|
-
import { i as unwrapBindingResult } from "./error-
|
|
6
|
+
import { i as unwrapBindingResult } from "./error-CP8smW_P.mjs";
|
|
7
7
|
import { Worker } from "node:worker_threads";
|
|
8
8
|
import path, { sep } from "node:path";
|
|
9
9
|
import { formatWithOptions, styleText } from "node:util";
|
|
@@ -1512,7 +1512,7 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
|
|
|
1512
1512
|
JsxOptionsSchema
|
|
1513
1513
|
])),
|
|
1514
1514
|
target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
|
|
1515
|
-
define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key
|
|
1515
|
+
define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
|
|
1516
1516
|
inject: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ string()])]))), /* @__PURE__ */ description("Inject import statements on demand")),
|
|
1517
1517
|
dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
|
|
1518
1518
|
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(TransformPluginsSchema), /* @__PURE__ */ description("Third-party plugins to use"))
|
|
@@ -1842,7 +1842,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1842
1842
|
MinifyOptionsSchema
|
|
1843
1843
|
])), /* @__PURE__ */ description("Minify the bundled file")),
|
|
1844
1844
|
name: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Name for UMD / IIFE format outputs")),
|
|
1845
|
-
globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), GlobalsFunctionSchema])), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key
|
|
1845
|
+
globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), GlobalsFunctionSchema])), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),
|
|
1846
1846
|
paths: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), PathsFunctionSchema])), /* @__PURE__ */ description("Maps external module IDs to paths")),
|
|
1847
1847
|
generatedCode: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ partial(GeneratedCodeOptionsSchema)), /* @__PURE__ */ description("Generated code options")),
|
|
1848
1848
|
externalLiveBindings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("external live bindings")),
|
|
@@ -1886,7 +1886,7 @@ const OutputCliOverrideSchema = /* @__PURE__ */ strictObject({
|
|
|
1886
1886
|
intro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("top", "inside"))),
|
|
1887
1887
|
outro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("bottom", "inside"))),
|
|
1888
1888
|
esModule: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),
|
|
1889
|
-
globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key
|
|
1889
|
+
globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),
|
|
1890
1890
|
codeSplitting: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1891
1891
|
minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
|
|
1892
1892
|
minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-C5G6_6ql.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-CP8smW_P.mjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-C5G6_6ql.mjs";
|
|
2
2
|
import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-D6u7COm1.mjs";
|
|
4
4
|
import { t as arraify } from "./misc-DJYbNKZX.mjs";
|
|
5
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
6
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-CYoDea9V.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-CP8smW_P.mjs";
|
|
7
7
|
//#region ../../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
8
8
|
/**
|
|
9
9
|
* This is not the set of all possible signals.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import "./shared/error-
|
|
3
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
4
|
-
import { a as minifySync, i as minify, n as transform, r as transformSync, t as import_binding } from "./shared/transform-
|
|
1
|
+
import "./shared/binding-C5G6_6ql.mjs";
|
|
2
|
+
import "./shared/error-CP8smW_P.mjs";
|
|
3
|
+
import { n as parseSync, t as parse } from "./shared/parse-8FR1cSLd.mjs";
|
|
4
|
+
import { a as minifySync, i as minify, n as transform, r as transformSync, t as import_binding } from "./shared/transform-BfdLLNnY.mjs";
|
|
5
5
|
//#region ../../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
6
6
|
function walkNode(node, visitors) {
|
|
7
7
|
if (node == null) return;
|