@rolldown/browser 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +7 -7
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/{constructors-BXVEHwHm.js → constructors-BTLtc_G_.js} +3 -0
- package/dist/{error-DMfKBGWU.js → error-CIj5jXSo.js} +1 -1
- package/dist/experimental-index.browser.mjs +4 -4
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +4 -4
- package/dist/filter-index.d.mts +3 -3
- package/dist/filter-index.mjs +3 -3
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.browser.mjs +1 -1
- package/dist/plugins-index.mjs +1 -1
- package/dist/{resolve-tsconfig-eqfrsvjc.js → resolve-tsconfig-uVC8K7GR.js} +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-CKS7EawU.js → rolldown-build-DCjXbOeh.js} +38 -20
- package/dist/shared/{bindingify-input-options-CboGFdC4.mjs → bindingify-input-options-C7dl2XLe.mjs} +6 -6
- package/dist/shared/{composable-filters-B2ByPP8y.mjs → composable-filters-DpWB82jk.mjs} +2 -2
- package/dist/shared/{constructors-DO36gIcC.mjs → constructors-CI_8FAaP.mjs} +3 -0
- package/dist/shared/{define-config-Bah0mfyR.d.mts → define-config-CYgMQYTy.d.mts} +51 -11
- package/dist/shared/{load-config-BwBgui4p.mjs → load-config-BFkorvIR.mjs} +1 -1
- package/dist/shared/{parse-Lc1YQk0q.mjs → parse-Bmk53Le1.mjs} +1 -1
- package/dist/shared/{rolldown-WowDTCZP.mjs → rolldown-Dyy9Y2li.mjs} +1 -1
- package/dist/shared/{rolldown-build-DIb-iqkO.mjs → rolldown-build-DYE2Qi6z.mjs} +33 -15
- package/dist/shared/{watch-B81_EvN-.mjs → watch-DXAEaxPd.mjs} +3 -3
- package/dist/utils-index.browser.mjs +5 -5
- package/dist/utils-index.d.mts +1 -1
- package/dist/utils-index.mjs +4 -4
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { C as version, S as description } from "./shared/bindingify-input-options-
|
|
3
|
-
import { h as arraify } from "./shared/composable-filters-
|
|
4
|
-
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-
|
|
5
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
6
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-DXAEaxPd.mjs";
|
|
2
|
+
import { C as version, S as description } from "./shared/bindingify-input-options-C7dl2XLe.mjs";
|
|
3
|
+
import { h as arraify } from "./shared/composable-filters-DpWB82jk.mjs";
|
|
4
|
+
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-DYE2Qi6z.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-Dyy9Y2li.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-BFkorvIR.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import process$1 from "node:process";
|
|
9
9
|
import { performance } from "node:perf_hooks";
|
|
@@ -847,7 +847,7 @@ function getClearScreenFunction(options) {
|
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
849
|
//#endregion
|
|
850
|
-
//#region \0@oxc-project+runtime@0.
|
|
850
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/usingCtx.js
|
|
851
851
|
function _usingCtx() {
|
|
852
852
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
853
853
|
var n = Error();
|
package/dist/config.d.mts
CHANGED
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as VERSION } from "./shared/bindingify-input-options-
|
|
1
|
+
import { x as VERSION } from "./shared/bindingify-input-options-C7dl2XLe.mjs";
|
|
2
2
|
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
3
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
3
|
+
import { t as loadConfig } from "./shared/load-config-BFkorvIR.mjs";
|
|
4
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -31,6 +31,9 @@ function viteBuildImportAnalysisPlugin(config) {
|
|
|
31
31
|
function viteResolvePlugin(config) {
|
|
32
32
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-resolve", {
|
|
33
33
|
...config,
|
|
34
|
+
async resolveSubpathImports(id, importer, isRequire, scan) {
|
|
35
|
+
return config.resolveSubpathImports(id, importer, isRequire, scan);
|
|
36
|
+
},
|
|
34
37
|
yarnPnp: typeof process === "object" && !!process.versions?.pnp
|
|
35
38
|
}));
|
|
36
39
|
}
|
|
@@ -14,7 +14,7 @@ function bindingifySourcemap(map) {
|
|
|
14
14
|
} };
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
17
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.130.0/node_modules/oxc-parser/src-js/wrap.js
|
|
18
18
|
function wrap(result) {
|
|
19
19
|
let program, module, comments, errors;
|
|
20
20
|
return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CBPw_c5O.js";
|
|
2
|
-
import { a as validateOption, i as transformToRollupOutput, n as createBundlerOptions, o as PluginDriver, t as RolldownBuild } from "./rolldown-build-
|
|
3
|
-
import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-
|
|
4
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./constructors-
|
|
5
|
-
import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./resolve-tsconfig-
|
|
2
|
+
import { a as validateOption, i as transformToRollupOutput, n as createBundlerOptions, o as PluginDriver, t as RolldownBuild } from "./rolldown-build-DCjXbOeh.js";
|
|
3
|
+
import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-CIj5jXSo.js";
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./constructors-BTLtc_G_.js";
|
|
5
|
+
import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./resolve-tsconfig-uVC8K7GR.js";
|
|
6
6
|
import * as binding from "./rolldown-binding.wasi-browser.js";
|
|
7
7
|
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
8
8
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-CaVxb0SV.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Tt as NormalizedOutputOptions, cn as RolldownOutput, l as InputOptions, mt as defineParallelPlugin, nn as OutputOptions, un as freeExternalMemory } from "./shared/define-config-CYgMQYTy.mjs";
|
|
3
3
|
import { t as BuiltinPlugin } from "./shared/utils-KRVeJqya.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, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-kP3ISMFT.mjs";
|
|
5
5
|
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-B1JYJxhf.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-Dq6w-2tU.mjs";
|
|
2
|
-
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-
|
|
3
|
-
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-
|
|
2
|
+
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-C7dl2XLe.mjs";
|
|
3
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-DYE2Qi6z.mjs";
|
|
4
4
|
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-CQ6njWsV.mjs";
|
|
5
|
-
import { n as parseSync$2, t as parse$2 } from "./shared/parse-
|
|
6
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
5
|
+
import { n as parseSync$2, t as parse$2 } from "./shared/parse-Bmk53Le1.mjs";
|
|
6
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-CI_8FAaP.mjs";
|
|
7
7
|
import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./shared/resolve-tsconfig-Cwoo4h_o.mjs";
|
|
8
8
|
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi.cjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as
|
|
1
|
+
import { B as exclude, F as FilterExpressionKind, G as interpreter, H as id, I as QueryFilterObject, J as not, K as interpreterImpl, L as TopLevelFilterExpression, N as withFilter, P as FilterExpression, R as and, U as importerId, V as exprInterpreter, W as include, X as queries, Y as or, Z as query, q as moduleType, z as code } from "./shared/define-config-CYgMQYTy.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Filters out Vite plugins that have `apply: 'serve'` set.
|
|
6
6
|
*
|
|
@@ -30,7 +30,7 @@ import { B as exprInterpreter, F as QueryFilterObject, G as interpreterImpl, H a
|
|
|
30
30
|
*/
|
|
31
31
|
declare function filterVitePlugins<T = any>(plugins: T | T[] | null | undefined | false): T[];
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region
|
|
33
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a RegExp that matches the exact string specified.
|
|
36
36
|
*
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as id, c as interpreter, d as not, f as or, g as isPromiseLike, h as arraify, i as exprInterpreter, l as interpreterImpl, m as query, n as code, o as importerId, p as queries, r as exclude, s as include, t as and, u as moduleType } from "./shared/composable-filters-
|
|
2
|
-
//#region
|
|
1
|
+
import { a as id, c as interpreter, d as not, f as or, g as isPromiseLike, h as arraify, i as exprInterpreter, l as interpreterImpl, m as query, n as code, o as importerId, p as queries, r as exclude, s as include, t as and, u as moduleType } from "./shared/composable-filters-DpWB82jk.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js
|
|
3
3
|
/**
|
|
4
4
|
* Filters out Vite plugins that have `apply: 'serve'` set.
|
|
5
5
|
*
|
|
@@ -55,7 +55,7 @@ function filterVitePlugins(plugins) {
|
|
|
55
55
|
return result;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region
|
|
58
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js
|
|
59
59
|
/**
|
|
60
60
|
* Constructs a RegExp that matches the exact string specified.
|
|
61
61
|
*
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as logMultipleWatcherOption } from "./normalize-string-or-regex-CBPw_c5O.js";
|
|
2
|
-
import { a as validateOption, c as arraify, l as RUNTIME_MODULE_ID, n as createBundlerOptions, o as PluginDriver, r as RolldownMagicString, s as LOG_LEVEL_WARN, t as RolldownBuild, u as VERSION } from "./rolldown-build-
|
|
3
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
2
|
+
import { a as validateOption, c as arraify, l as RUNTIME_MODULE_ID, n as createBundlerOptions, o as PluginDriver, r as RolldownMagicString, s as LOG_LEVEL_WARN, t as RolldownBuild, u as VERSION } from "./rolldown-build-DCjXbOeh.js";
|
|
3
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-CIj5jXSo.js";
|
|
4
4
|
import { BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
5
5
|
//#region src/api/rolldown/index.ts
|
|
6
6
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as PreRenderedChunk } from "./shared/binding-CaVxb0SV.mjs";
|
|
2
2
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-C6h4g8dA.mjs";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $ as VERSION, $t as GlobalsFunction, A as RolldownPluginOption, At as WarningHandlerWithDefault, Bt as build, C as ParallelPluginHooks, Ct as RolldownFsModule, D as ResolveIdResult, Dt as TransformOptions, E as ResolveIdExtraOptions, Et as NormalizedInputOptions, Ft as RolldownWatcherWatcherEventMap, Gt as ChunkFileNamesFunction, Ht as AdvancedChunksGroup, It as WatchOptions, Jt as CodeSplittingNameFunction, Kt as ChunkingContext, Lt as rolldown, M as TransformResult, Mt as watch, Nt as RolldownWatcher, O as ResolvedId, Ot as ChecksOptions, Pt as RolldownWatcherEvent, Q as RUNTIME_MODULE_ID, Qt as GeneratedCodePreset, Rt as RolldownBuild, S as ObjectHook, St as RolldownFileStats, T as Plugin, Tt as NormalizedOutputOptions, Ut as AdvancedChunksOptions, Vt as AddonFunction, Wt as BuiltinModuleTag, Xt as CommentsOptions, Yt as CodeSplittingOptions, Zt as GeneratedCodeOptions, _ as HookFilterExtension, _t as GeneralHookFilter, a as ChunkOptimizationOptions, an as OutputChunk, at as TransformPluginContext, b as ModuleOptions, bt as BufferEncoding, c as InputOption, cn as RolldownOutput, ct as EmittedFile, d as OptimizationOptions, dn as ModuleInfo, dt as PluginContext, en as MinifyOptions, et as BundleError, f as WatcherFileWatcherOptions, fn as SourcemapIgnoreListOption, ft as PluginContextResolveOptions, g as FunctionPluginHooks, gt as PluginContextMeta, h as CustomPluginOptions, ht as MinimalPluginContext, i as RolldownOptions, in as OutputAsset, it as TreeshakingOptions, j as SourceDescription, jt as RolldownMagicString, k as RolldownPlugin, kt as LoggingFunction, l as InputOptions, ln as SourceMap, lt as EmittedPrebuiltChunk, m as AsyncPluginHooks, n as RolldownOptionsFunction, nn as OutputOptions, nt as SourceMapInput, o as ExternalOption, on as RenderedChunk, ot as EmittedAsset, p as WatcherOptions, pt as DefineParallelPluginResult, qt as CodeSplittingGroup, r as defineConfig, rn as PreRenderedAsset, rt as OutputBundle, s as ExternalOptionFunction, sn as RenderedModule, st as EmittedChunk, t as ConfigExport, tn as ModuleFormat, tt as ExistingRawSourceMap, u as ModuleTypes, ut as GetModuleInfo, v as ImportKind, vt as HookFilter, w as PartialResolvedId, wt as InternalModuleFormat, x as ModuleType, xt as RolldownDirectoryEntry, y as LoadResult, yt as ModuleTypeFilter, zt as BuildOptions } from "./shared/define-config-CYgMQYTy.mjs";
|
|
4
4
|
import { o as PartialNull } from "./shared/utils-KRVeJqya.mjs";
|
|
5
|
-
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, 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 };
|
|
5
|
+
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BufferEncoding, BuildOptions, BuiltinModuleTag, BundleError, ChecksOptions, ChunkFileNamesFunction, ChunkOptimizationOptions, 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, 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/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-
|
|
3
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-DXAEaxPd.mjs";
|
|
2
|
+
import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-C7dl2XLe.mjs";
|
|
3
|
+
import { t as rolldown } from "./shared/rolldown-Dyy9Y2li.mjs";
|
|
4
4
|
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
5
5
|
import { isMainThread } from "node:worker_threads";
|
|
6
6
|
import { initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-C7dl2XLe.mjs";
|
|
2
2
|
import { parentPort, workerData } from "node:worker_threads";
|
|
3
3
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
4
4
|
//#region src/parallel-plugin-worker.ts
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
|
|
2
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-Bmk53Le1.mjs";
|
|
3
3
|
//#region src/parse-ast-index.ts
|
|
4
4
|
function wrap(result, filename, sourceText) {
|
|
5
5
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./normalize-string-or-regex-CBPw_c5O.js";
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./constructors-
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./constructors-BTLtc_G_.js";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-Dq6w-2tU.mjs";
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CI_8FAaP.mjs";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-
|
|
1
|
+
import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-CIj5jXSo.js";
|
|
2
2
|
import { TsconfigCache, collapseSourcemaps, enhancedTransform, enhancedTransformSync, minify, minifySync, resolveTsconfig } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
/**
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as logCycleLoading, f as logNoFileSystemInBrowser, g as getCodeFrame, h as locate, i as bindingifyManifestPlugin, l as logInputHookInOutputPlugin, m as logPluginError, n as BuiltinPlugin, o as augmentCodeLocation, p as logParseError, r as bindingifyBuiltInPlugin, s as error, t as normalizedStringOrRegex, u as logInvalidLogPosition } from "./normalize-string-or-regex-CBPw_c5O.js";
|
|
2
|
-
import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
2
|
+
import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-CIj5jXSo.js";
|
|
3
3
|
import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
5
5
|
let _lazyMatch = () => {
|
|
@@ -454,7 +454,7 @@ const win32 = /* @__PURE__ */ mix(";");
|
|
|
454
454
|
*
|
|
455
455
|
* @category Plugin APIs
|
|
456
456
|
*/
|
|
457
|
-
const VERSION = "1.0.
|
|
457
|
+
const VERSION = "1.0.1";
|
|
458
458
|
//#endregion
|
|
459
459
|
//#region src/constants/index.ts
|
|
460
460
|
/**
|
|
@@ -749,8 +749,14 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
749
749
|
];
|
|
750
750
|
}
|
|
751
751
|
//#endregion
|
|
752
|
-
//#region ../../node_modules/.pnpm/valibot@1.
|
|
752
|
+
//#region ../../node_modules/.pnpm/valibot@1.4.0_typescript@6.0.3/node_modules/valibot/dist/index.mjs
|
|
753
753
|
let store$4;
|
|
754
|
+
const DEFAULT_CONFIG = {
|
|
755
|
+
lang: void 0,
|
|
756
|
+
message: void 0,
|
|
757
|
+
abortEarly: void 0,
|
|
758
|
+
abortPipeEarly: void 0
|
|
759
|
+
};
|
|
754
760
|
/**
|
|
755
761
|
* Returns the global configuration.
|
|
756
762
|
*
|
|
@@ -760,6 +766,7 @@ let store$4;
|
|
|
760
766
|
*/
|
|
761
767
|
/* @__NO_SIDE_EFFECTS__ */
|
|
762
768
|
function getGlobalConfig(config$1) {
|
|
769
|
+
if (!config$1 && true) return DEFAULT_CONFIG;
|
|
763
770
|
return {
|
|
764
771
|
lang: config$1?.lang ?? store$4?.lang,
|
|
765
772
|
message: config$1?.message,
|
|
@@ -857,6 +864,7 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
857
864
|
if (dataset.issues) dataset.issues.push(issue);
|
|
858
865
|
else dataset.issues = [issue];
|
|
859
866
|
}
|
|
867
|
+
const _standardCache = /* @__PURE__ */ new WeakMap();
|
|
860
868
|
/**
|
|
861
869
|
* Returns the Standard Schema properties.
|
|
862
870
|
*
|
|
@@ -866,13 +874,18 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
866
874
|
*/
|
|
867
875
|
/* @__NO_SIDE_EFFECTS__ */
|
|
868
876
|
function _getStandardProps(context) {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
877
|
+
let cached = _standardCache.get(context);
|
|
878
|
+
if (!cached) {
|
|
879
|
+
cached = {
|
|
880
|
+
version: 1,
|
|
881
|
+
vendor: "valibot",
|
|
882
|
+
validate(value$1) {
|
|
883
|
+
return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
_standardCache.set(context, cached);
|
|
887
|
+
}
|
|
888
|
+
return cached;
|
|
876
889
|
}
|
|
877
890
|
/**
|
|
878
891
|
* Disallows inherited object properties and prevents object prototype
|
|
@@ -887,7 +900,7 @@ function _getStandardProps(context) {
|
|
|
887
900
|
*/
|
|
888
901
|
/* @__NO_SIDE_EFFECTS__ */
|
|
889
902
|
function _isValidObjectKey(object$1, key) {
|
|
890
|
-
return Object.
|
|
903
|
+
return Object.prototype.hasOwnProperty.call(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
|
|
891
904
|
}
|
|
892
905
|
/**
|
|
893
906
|
* Joins multiple `expects` values with the given separator.
|
|
@@ -1011,6 +1024,7 @@ function returnsAsync(schema) {
|
|
|
1011
1024
|
}
|
|
1012
1025
|
};
|
|
1013
1026
|
}
|
|
1027
|
+
const ABORT_EARLY_CONFIG = { abortEarly: true };
|
|
1014
1028
|
/**
|
|
1015
1029
|
* Returns the fallback value of the schema.
|
|
1016
1030
|
*
|
|
@@ -1048,7 +1062,7 @@ function getDefault(schema, dataset, config$1) {
|
|
|
1048
1062
|
*/
|
|
1049
1063
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1050
1064
|
function is(schema, input) {
|
|
1051
|
-
return !schema["~run"]({ value: input },
|
|
1065
|
+
return !schema["~run"]({ value: input }, ABORT_EARLY_CONFIG).issues;
|
|
1052
1066
|
}
|
|
1053
1067
|
/**
|
|
1054
1068
|
* Creates an any schema.
|
|
@@ -1640,7 +1654,7 @@ function undefined_(message$1) {
|
|
|
1640
1654
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1641
1655
|
function _subIssues(datasets) {
|
|
1642
1656
|
let issues;
|
|
1643
|
-
if (datasets) for (const dataset of datasets) if (issues)
|
|
1657
|
+
if (datasets) for (const dataset of datasets) if (issues) for (const issue of dataset.issues) issues.push(issue);
|
|
1644
1658
|
else issues = dataset.issues;
|
|
1645
1659
|
return issues;
|
|
1646
1660
|
}
|
|
@@ -1980,7 +1994,8 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1980
1994
|
pluginTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when plugins take significant time during the build process")),
|
|
1981
1995
|
duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
|
|
1982
1996
|
unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
1983
|
-
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
|
|
1997
|
+
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),
|
|
1998
|
+
largeBarrelModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)"))
|
|
1984
1999
|
});
|
|
1985
2000
|
const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1986
2001
|
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
@@ -2098,7 +2113,10 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
2098
2113
|
onDemandWrapping: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2099
2114
|
incrementalBuild: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2100
2115
|
nativeMagicString: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2101
|
-
chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()
|
|
2116
|
+
chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
2117
|
+
mergeCommonChunks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2118
|
+
avoidRedundantChunkLoads: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
2119
|
+
})])),
|
|
2102
2120
|
lazyBarrel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
2103
2121
|
})),
|
|
2104
2122
|
transform: /* @__PURE__ */ optional(TransformOptionsSchema),
|
|
@@ -2450,7 +2468,7 @@ function bindingAssetSource(source) {
|
|
|
2450
2468
|
return { inner: source };
|
|
2451
2469
|
}
|
|
2452
2470
|
//#endregion
|
|
2453
|
-
//#region \0@oxc-project+runtime@0.
|
|
2471
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/decorate.js
|
|
2454
2472
|
function __decorate(decorators, target, key, desc) {
|
|
2455
2473
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2456
2474
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2971,7 +2989,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
2971
2989
|
return map;
|
|
2972
2990
|
}
|
|
2973
2991
|
//#endregion
|
|
2974
|
-
//#region
|
|
2992
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js
|
|
2975
2993
|
var And = class {
|
|
2976
2994
|
kind;
|
|
2977
2995
|
args;
|
|
@@ -3054,7 +3072,7 @@ function exclude(expr) {
|
|
|
3054
3072
|
return new Exclude(expr);
|
|
3055
3073
|
}
|
|
3056
3074
|
//#endregion
|
|
3057
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
3075
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
3058
3076
|
function e(e, t, n) {
|
|
3059
3077
|
let r = (n) => e(n, ...t);
|
|
3060
3078
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -3063,7 +3081,7 @@ function e(e, t, n) {
|
|
|
3063
3081
|
});
|
|
3064
3082
|
}
|
|
3065
3083
|
//#endregion
|
|
3066
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
3084
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/purry.js
|
|
3067
3085
|
function t$1(t, n, r) {
|
|
3068
3086
|
let i = t.length - n.length;
|
|
3069
3087
|
if (i === 0) return t(...n);
|
|
@@ -3071,7 +3089,7 @@ function t$1(t, n, r) {
|
|
|
3071
3089
|
throw Error(`Wrong number of arguments`);
|
|
3072
3090
|
}
|
|
3073
3091
|
//#endregion
|
|
3074
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
3092
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/partition.js
|
|
3075
3093
|
function t(...t) {
|
|
3076
3094
|
return t$1(n, t);
|
|
3077
3095
|
}
|
package/dist/shared/{bindingify-input-options-CboGFdC4.mjs → bindingify-input-options-C7dl2XLe.mjs}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-D80CXhvg.mjs";
|
|
2
2
|
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-Dq6w-2tU.mjs";
|
|
3
|
-
import { _ as noop, a as id, b as unsupported, f as or, h as arraify, n as code, r as exclude, s as include, t as and, u as moduleType, y as unreachable } from "./composable-filters-
|
|
3
|
+
import { _ as noop, a as id, b as unsupported, f as or, h as arraify, n as code, r as exclude, s as include, t as and, u as moduleType, y as unreachable } from "./composable-filters-DpWB82jk.mjs";
|
|
4
4
|
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-CQ6njWsV.mjs";
|
|
5
5
|
import { parseAst } from "../parse-ast-index.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";
|
|
9
9
|
//#region package.json
|
|
10
|
-
var version = "1.0.
|
|
10
|
+
var version = "1.0.1";
|
|
11
11
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/constants/version.ts
|
|
@@ -218,7 +218,7 @@ function bindingAssetSource(source) {
|
|
|
218
218
|
return { inner: source };
|
|
219
219
|
}
|
|
220
220
|
//#endregion
|
|
221
|
-
//#region \0@oxc-project+runtime@0.
|
|
221
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/decorate.js
|
|
222
222
|
function __decorate(decorators, target, key, desc) {
|
|
223
223
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
224
224
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -672,7 +672,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
672
672
|
return map;
|
|
673
673
|
}
|
|
674
674
|
//#endregion
|
|
675
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
675
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
676
676
|
function e(e, t, n) {
|
|
677
677
|
let r = (n) => e(n, ...t);
|
|
678
678
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -681,7 +681,7 @@ function e(e, t, n) {
|
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
683
|
//#endregion
|
|
684
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
684
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/purry.js
|
|
685
685
|
function t$1(t, n, r) {
|
|
686
686
|
let i = t.length - n.length;
|
|
687
687
|
if (i === 0) return t(...n);
|
|
@@ -689,7 +689,7 @@ function t$1(t, n, r) {
|
|
|
689
689
|
throw Error(`Wrong number of arguments`);
|
|
690
690
|
}
|
|
691
691
|
//#endregion
|
|
692
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
692
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/partition.js
|
|
693
693
|
function t(...t) {
|
|
694
694
|
return t$1(n, t);
|
|
695
695
|
}
|
|
@@ -18,7 +18,7 @@ function unsupported(info) {
|
|
|
18
18
|
}
|
|
19
19
|
function noop(..._args) {}
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region
|
|
21
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/utils.js
|
|
22
22
|
const postfixRE = /[?#].*$/;
|
|
23
23
|
function cleanUrl(url) {
|
|
24
24
|
return url.replace(postfixRE, "");
|
|
@@ -31,7 +31,7 @@ function extractQueryWithoutFragment(url) {
|
|
|
31
31
|
else return url.substring(questionMarkIndex, fragmentIndex);
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region
|
|
34
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js
|
|
35
35
|
var And = class {
|
|
36
36
|
kind;
|
|
37
37
|
args;
|
|
@@ -31,6 +31,9 @@ function viteBuildImportAnalysisPlugin(config) {
|
|
|
31
31
|
function viteResolvePlugin(config) {
|
|
32
32
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-resolve", {
|
|
33
33
|
...config,
|
|
34
|
+
async resolveSubpathImports(id, importer, isRequire, scan) {
|
|
35
|
+
return config.resolveSubpathImports(id, importer, isRequire, scan);
|
|
36
|
+
},
|
|
34
37
|
yarnPnp: typeof process === "object" && !!process.versions?.pnp
|
|
35
38
|
}));
|
|
36
39
|
}
|
|
@@ -895,9 +895,18 @@ interface OutputOptions {
|
|
|
895
895
|
*/
|
|
896
896
|
preserveModulesRoot?: string;
|
|
897
897
|
/**
|
|
898
|
-
* Whether to
|
|
898
|
+
* Whether to convert top-level `let` and `const` declarations into `var` declarations.
|
|
899
899
|
*
|
|
900
|
-
* Enabling this option can improve runtime performance of the generated code in
|
|
900
|
+
* Enabling this option can improve runtime performance of the generated code in
|
|
901
|
+
* certain environments by avoiding Temporal Dead Zone (TDZ) checks. Only declarations
|
|
902
|
+
* in the module's top-level scope are rewritten — declarations inside nested scopes
|
|
903
|
+
* (functions, blocks, etc.) are left as-is.
|
|
904
|
+
*
|
|
905
|
+
* Note:
|
|
906
|
+
* - Top-level `class X {}` declarations are always emitted as `var X = class {}` so
|
|
907
|
+
* rolldown can hoist them alongside other top-level bindings; this transform is
|
|
908
|
+
* independent of `topLevelVar`.
|
|
909
|
+
* - Top-level `function` declarations are never rewritten.
|
|
901
910
|
*
|
|
902
911
|
* @default false
|
|
903
912
|
*
|
|
@@ -1598,6 +1607,15 @@ interface ChecksOptions {
|
|
|
1598
1607
|
* @default true
|
|
1599
1608
|
* */
|
|
1600
1609
|
ineffectiveDynamicImport?: boolean;
|
|
1610
|
+
/**
|
|
1611
|
+
* Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000).
|
|
1612
|
+
*
|
|
1613
|
+
* Such modules can significantly slow down module resolution. Consider using
|
|
1614
|
+
* [`@rolldown/plugin-transform-imports`](https://github.com/rolldown/plugins/tree/main/packages/transform-imports)
|
|
1615
|
+
* to rewrite barrel imports at the source level so the barrel file is never loaded.
|
|
1616
|
+
* @default true
|
|
1617
|
+
* */
|
|
1618
|
+
largeBarrelModules?: boolean;
|
|
1601
1619
|
}
|
|
1602
1620
|
//#endregion
|
|
1603
1621
|
//#region src/options/transform-options.d.ts
|
|
@@ -2546,7 +2564,7 @@ type DefinedHookNames = { readonly [K in (typeof ENUMERATED_PLUGIN_HOOK_NAMES)[n
|
|
|
2546
2564
|
*/
|
|
2547
2565
|
declare const DEFINED_HOOK_NAMES: DefinedHookNames;
|
|
2548
2566
|
//#endregion
|
|
2549
|
-
//#region
|
|
2567
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts
|
|
2550
2568
|
type StringOrRegExp = string | RegExp;
|
|
2551
2569
|
type PluginModuleType = 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | (string & {});
|
|
2552
2570
|
type FilterExpressionKind = FilterExpression['kind'];
|
|
@@ -3151,6 +3169,28 @@ type InputOption = string | string[] | Record<string, string>;
|
|
|
3151
3169
|
type ExternalOptionFunction = (id: string, parentId: string | undefined, isResolved: boolean) => NullValue<boolean>;
|
|
3152
3170
|
/** @inline */
|
|
3153
3171
|
type ExternalOption = StringOrRegExp$1 | StringOrRegExp$1[] | ExternalOptionFunction;
|
|
3172
|
+
interface ChunkOptimizationOptions {
|
|
3173
|
+
/**
|
|
3174
|
+
* Merge common chunks into existing entry chunks when it is safe.
|
|
3175
|
+
*
|
|
3176
|
+
* This can reduce the number of emitted chunks by moving shared/common modules
|
|
3177
|
+
* into an entry chunk that already depends on them. Rolldown only applies the
|
|
3178
|
+
* merge when it does not create a circular chunk dependency or change strict
|
|
3179
|
+
* entry export signatures. This pass also covers safe empty-facade cleanup.
|
|
3180
|
+
*
|
|
3181
|
+
* @default true
|
|
3182
|
+
*/
|
|
3183
|
+
mergeCommonChunks?: boolean;
|
|
3184
|
+
/**
|
|
3185
|
+
* Avoid emitting redundant chunk loads for dynamic entries.
|
|
3186
|
+
*
|
|
3187
|
+
* This pass can reduce dynamic-entry dependent chunks when the shared modules
|
|
3188
|
+
* are guaranteed to be loaded by every importer of that dynamic entry.
|
|
3189
|
+
*
|
|
3190
|
+
* @default true
|
|
3191
|
+
*/
|
|
3192
|
+
avoidRedundantChunkLoads?: boolean;
|
|
3193
|
+
}
|
|
3154
3194
|
type ModuleTypes = Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css" | "asset" | "copy">;
|
|
3155
3195
|
interface WatcherFileWatcherOptions {
|
|
3156
3196
|
/**
|
|
@@ -3754,18 +3794,18 @@ interface InputOptions {
|
|
|
3754
3794
|
*/
|
|
3755
3795
|
nativeMagicString?: boolean;
|
|
3756
3796
|
/**
|
|
3757
|
-
* Control
|
|
3758
|
-
* This optimization can reduce the number of generated chunks.
|
|
3797
|
+
* Control chunk optimizations.
|
|
3759
3798
|
*
|
|
3760
|
-
*
|
|
3761
|
-
*
|
|
3799
|
+
* `true` enables both common-chunk merging and redundant dynamic chunk-load avoidance.
|
|
3800
|
+
* `false` disables all chunk optimizations. Use the object form to control
|
|
3801
|
+
* `mergeCommonChunks` and `avoidRedundantChunkLoads` separately.
|
|
3762
3802
|
*
|
|
3763
|
-
*
|
|
3764
|
-
* as
|
|
3803
|
+
* These optimizations are automatically disabled when any module uses top-level await (TLA) or contains TLA dependencies,
|
|
3804
|
+
* as they could affect execution order guarantees.
|
|
3765
3805
|
*
|
|
3766
3806
|
* @default true
|
|
3767
3807
|
*/
|
|
3768
|
-
chunkOptimization?: boolean;
|
|
3808
|
+
chunkOptimization?: boolean | ChunkOptimizationOptions;
|
|
3769
3809
|
/**
|
|
3770
3810
|
* Control whether to enable lazy barrel optimization.
|
|
3771
3811
|
*
|
|
@@ -3897,4 +3937,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
3897
3937
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
3898
3938
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
3899
3939
|
//#endregion
|
|
3900
|
-
export {
|
|
3940
|
+
export { VERSION as $, GlobalsFunction as $t, RolldownPluginOption as A, WarningHandlerWithDefault as At, exclude as B, build as Bt, ParallelPluginHooks as C, RolldownFsModule as Ct, ResolveIdResult as D, TransformOptions as Dt, ResolveIdExtraOptions as E, NormalizedInputOptions as Et, FilterExpressionKind as F, RolldownWatcherWatcherEventMap as Ft, interpreter as G, ChunkFileNamesFunction as Gt, id as H, AdvancedChunksGroup as Ht, QueryFilterObject as I, WatchOptions as It, not as J, CodeSplittingNameFunction as Jt, interpreterImpl as K, ChunkingContext as Kt, TopLevelFilterExpression as L, rolldown as Lt, TransformResult as M, watch as Mt, withFilter as N, RolldownWatcher as Nt, ResolvedId as O, ChecksOptions as Ot, FilterExpression as P, RolldownWatcherEvent as Pt, RUNTIME_MODULE_ID as Q, GeneratedCodePreset as Qt, and as R, RolldownBuild as Rt, ObjectHook as S, RolldownFileStats as St, Plugin as T, NormalizedOutputOptions as Tt, importerId as U, AdvancedChunksOptions as Ut, exprInterpreter as V, AddonFunction as Vt, include as W, BuiltinModuleTag as Wt, queries as X, CommentsOptions as Xt, or as Y, CodeSplittingOptions as Yt, query as Z, GeneratedCodeOptions as Zt, HookFilterExtension as _, GeneralHookFilter as _t, ChunkOptimizationOptions as a, OutputChunk as an, TransformPluginContext as at, ModuleOptions as b, BufferEncoding as bt, InputOption as c, RolldownOutput as cn, EmittedFile as ct, OptimizationOptions as d, ModuleInfo as dn, PluginContext as dt, MinifyOptions as en, BundleError as et, WatcherFileWatcherOptions as f, SourcemapIgnoreListOption as fn, PluginContextResolveOptions as ft, FunctionPluginHooks as g, PluginContextMeta as gt, CustomPluginOptions as h, MinimalPluginContext as ht, RolldownOptions as i, OutputAsset as in, TreeshakingOptions as it, SourceDescription as j, RolldownMagicString as jt, RolldownPlugin as k, LoggingFunction as kt, InputOptions as l, SourceMap as ln, EmittedPrebuiltChunk as lt, AsyncPluginHooks as m, defineParallelPlugin as mt, RolldownOptionsFunction as n, OutputOptions as nn, SourceMapInput as nt, ExternalOption as o, RenderedChunk as on, EmittedAsset as ot, WatcherOptions as p, DefineParallelPluginResult as pt, moduleType as q, CodeSplittingGroup as qt, defineConfig as r, PreRenderedAsset as rn, OutputBundle as rt, ExternalOptionFunction as s, RenderedModule as sn, EmittedChunk as st, ConfigExport as t, ModuleFormat as tn, ExistingRawSourceMap as tt, ModuleTypes as u, freeExternalMemory as un, GetModuleInfo as ut, ImportKind as v, HookFilter as vt, PartialResolvedId as w, InternalModuleFormat as wt, ModuleType as x, RolldownDirectoryEntry as xt, LoadResult as y, ModuleTypeFilter as yt, code as z, BuildOptions as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parse, parseSync } from "../rolldown-binding.wasi.cjs";
|
|
2
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.130.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
function wrap(result) {
|
|
4
4
|
let program, module, comments, errors;
|
|
5
5
|
return {
|
|
@@ -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-DYE2Qi6z.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
|
|
2
2
|
import { n as BuiltinPlugin } from "./normalize-string-or-regex-Dq6w-2tU.mjs";
|
|
3
|
-
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-
|
|
4
|
-
import { v as unimplemented } from "./composable-filters-
|
|
3
|
+
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-C7dl2XLe.mjs";
|
|
4
|
+
import { v as unimplemented } from "./composable-filters-DpWB82jk.mjs";
|
|
5
5
|
import { i as unwrapBindingResult } from "./error-CQ6njWsV.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import { BindingBundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
@@ -211,8 +211,14 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
211
211
|
];
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region ../../node_modules/.pnpm/valibot@1.
|
|
214
|
+
//#region ../../node_modules/.pnpm/valibot@1.4.0_typescript@6.0.3/node_modules/valibot/dist/index.mjs
|
|
215
215
|
let store$4;
|
|
216
|
+
const DEFAULT_CONFIG = {
|
|
217
|
+
lang: void 0,
|
|
218
|
+
message: void 0,
|
|
219
|
+
abortEarly: void 0,
|
|
220
|
+
abortPipeEarly: void 0
|
|
221
|
+
};
|
|
216
222
|
/**
|
|
217
223
|
* Returns the global configuration.
|
|
218
224
|
*
|
|
@@ -222,6 +228,7 @@ let store$4;
|
|
|
222
228
|
*/
|
|
223
229
|
/* @__NO_SIDE_EFFECTS__ */
|
|
224
230
|
function getGlobalConfig(config$1) {
|
|
231
|
+
if (!config$1 && true) return DEFAULT_CONFIG;
|
|
225
232
|
return {
|
|
226
233
|
lang: config$1?.lang ?? store$4?.lang,
|
|
227
234
|
message: config$1?.message,
|
|
@@ -319,6 +326,7 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
319
326
|
if (dataset.issues) dataset.issues.push(issue);
|
|
320
327
|
else dataset.issues = [issue];
|
|
321
328
|
}
|
|
329
|
+
const _standardCache = /* @__PURE__ */ new WeakMap();
|
|
322
330
|
/**
|
|
323
331
|
* Returns the Standard Schema properties.
|
|
324
332
|
*
|
|
@@ -328,13 +336,18 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
328
336
|
*/
|
|
329
337
|
/* @__NO_SIDE_EFFECTS__ */
|
|
330
338
|
function _getStandardProps(context) {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
339
|
+
let cached = _standardCache.get(context);
|
|
340
|
+
if (!cached) {
|
|
341
|
+
cached = {
|
|
342
|
+
version: 1,
|
|
343
|
+
vendor: "valibot",
|
|
344
|
+
validate(value$1) {
|
|
345
|
+
return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
_standardCache.set(context, cached);
|
|
349
|
+
}
|
|
350
|
+
return cached;
|
|
338
351
|
}
|
|
339
352
|
/**
|
|
340
353
|
* Disallows inherited object properties and prevents object prototype
|
|
@@ -349,7 +362,7 @@ function _getStandardProps(context) {
|
|
|
349
362
|
*/
|
|
350
363
|
/* @__NO_SIDE_EFFECTS__ */
|
|
351
364
|
function _isValidObjectKey(object$1, key) {
|
|
352
|
-
return Object.
|
|
365
|
+
return Object.prototype.hasOwnProperty.call(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
|
|
353
366
|
}
|
|
354
367
|
/**
|
|
355
368
|
* Joins multiple `expects` values with the given separator.
|
|
@@ -473,6 +486,7 @@ function returnsAsync(schema) {
|
|
|
473
486
|
}
|
|
474
487
|
};
|
|
475
488
|
}
|
|
489
|
+
const ABORT_EARLY_CONFIG = { abortEarly: true };
|
|
476
490
|
/**
|
|
477
491
|
* Returns the fallback value of the schema.
|
|
478
492
|
*
|
|
@@ -510,7 +524,7 @@ function getDefault(schema, dataset, config$1) {
|
|
|
510
524
|
*/
|
|
511
525
|
/* @__NO_SIDE_EFFECTS__ */
|
|
512
526
|
function is(schema, input) {
|
|
513
|
-
return !schema["~run"]({ value: input },
|
|
527
|
+
return !schema["~run"]({ value: input }, ABORT_EARLY_CONFIG).issues;
|
|
514
528
|
}
|
|
515
529
|
/**
|
|
516
530
|
* Creates an any schema.
|
|
@@ -1122,7 +1136,7 @@ function undefined_(message$1) {
|
|
|
1122
1136
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1123
1137
|
function _subIssues(datasets) {
|
|
1124
1138
|
let issues;
|
|
1125
|
-
if (datasets) for (const dataset of datasets) if (issues)
|
|
1139
|
+
if (datasets) for (const dataset of datasets) if (issues) for (const issue of dataset.issues) issues.push(issue);
|
|
1126
1140
|
else issues = dataset.issues;
|
|
1127
1141
|
return issues;
|
|
1128
1142
|
}
|
|
@@ -1535,7 +1549,8 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1535
1549
|
pluginTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when plugins take significant time during the build process")),
|
|
1536
1550
|
duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
|
|
1537
1551
|
unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
1538
|
-
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
|
|
1552
|
+
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),
|
|
1553
|
+
largeBarrelModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)"))
|
|
1539
1554
|
});
|
|
1540
1555
|
const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1541
1556
|
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
@@ -1653,7 +1668,10 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1653
1668
|
onDemandWrapping: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1654
1669
|
incrementalBuild: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1655
1670
|
nativeMagicString: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1656
|
-
chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()
|
|
1671
|
+
chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1672
|
+
mergeCommonChunks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1673
|
+
avoidRedundantChunkLoads: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1674
|
+
})])),
|
|
1657
1675
|
lazyBarrel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1658
1676
|
})),
|
|
1659
1677
|
transform: /* @__PURE__ */ optional(TransformOptionsSchema),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
|
|
2
|
-
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
3
|
-
import { h as arraify } from "./composable-filters-
|
|
4
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
2
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-C7dl2XLe.mjs";
|
|
3
|
+
import { h as arraify } from "./composable-filters-DpWB82jk.mjs";
|
|
4
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-DYE2Qi6z.mjs";
|
|
5
5
|
import { t as aggregateBindingErrorsIntoJsError } from "./error-CQ6njWsV.mjs";
|
|
6
6
|
import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as parse, o as parseSync } from "./error-
|
|
2
|
-
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { a as parse, o as parseSync } from "./error-CIj5jXSo.js";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-uVC8K7GR.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.130.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
4
4
|
function walkNode(node, visitors) {
|
|
5
5
|
if (node == null) return;
|
|
6
6
|
if (Array.isArray(node)) {
|
|
@@ -2010,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2010
2010
|
exit !== null && exit(node);
|
|
2011
2011
|
}
|
|
2012
2012
|
//#endregion
|
|
2013
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2013
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.130.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2014
2014
|
/** Mapping from node type name to node type ID */
|
|
2015
2015
|
const NODE_TYPE_IDS_MAP = new Map([
|
|
2016
2016
|
["DebuggerStatement", 0],
|
|
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
|
|
|
2180
2180
|
["TSUnionType", 164]
|
|
2181
2181
|
]);
|
|
2182
2182
|
//#endregion
|
|
2183
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2183
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.130.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|
package/dist/utils-index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $ as AssignmentPattern, $n as TSInferType, $r as UpdateExpression, $t as JSXMemberExpression, An as SwitchStatement, Ar as TSTupleType, At as ForStatement, Bn as TSConstructorType, Br as TSTypeQuery, Bt as ImportNamespaceSpecifier, Cn as ReturnStatement, Cr as TSRestType, Ct as ExportAllDeclaration, Dn as StringLiteral, Dr as TSTemplateLiteralType, Dt as ExpressionStatement, En as StaticBlock, Er as TSSymbolKeyword, Et as ExportSpecifier, Fn as TSBooleanKeyword, Fr as TSTypeOperator, Ft as IfStatement, Gn as TSExternalModuleReference, Gr as TSVoidKeyword, Gt as JSXAttribute, Hn as TSEnumDeclaration, Hr as TSUndefinedKeyword, Ht as JSDocNonNullableType, In as TSCallSignatureDeclaration, Ir as TSTypeParameter, It as ImportAttribute, J as AccessorProperty, Jn as TSImportEqualsDeclaration, Jr as TemplateLiteral, Jt as JSXElement, Kn as TSFunctionType, Kr as TaggedTemplateExpression, Kt as JSXClosingElement, Ln as TSClassImplements, Lr as TSTypeParameterDeclaration, Lt as ImportDeclaration, Mn as TSArrayType, Mr as TSTypeAnnotation, Mt as Function, Nn as TSAsExpression, Nr as TSTypeAssertion, Nt as IdentifierName, On as Super, Or as TSThisParameter, Ot as ForInStatement, Pn as TSBigIntKeyword, Pr as TSTypeLiteral, Pt as IdentifierReference, Q as AssignmentExpression, Qn as TSIndexedAccessType, Qr as UnaryExpression, Qt as JSXIdentifier, Rn as TSConditionalType, Rr as TSTypeParameterInstantiation, Rt as ImportDefaultSpecifier, Sn as RegExpLiteral, Sr as TSQualifiedName, St as EmptyStatement, Tn as SpreadElement, Tr as TSStringKeyword, Tt as ExportNamedDeclaration, Un as TSEnumMember, Ur as TSUnionType, Ut as JSDocNullableType, Vn as TSEnumBody, Vr as TSTypeReference, Vt as ImportSpecifier, Wn as TSExportAssignment, Wr as TSUnknownKeyword, Wt as JSDocUnknownType, X as ArrayPattern, Xn as TSIndexSignature, Xr as ThrowStatement, Xt as JSXExpressionContainer, Y as ArrayExpression, Yn as TSImportType, Yr as ThisExpression, Yt as JSXEmptyExpression, Z as ArrowFunctionExpression, Zn as TSIndexSignatureName, Zr as TryStatement, Zt as JSXFragment, _ as BindingTsconfigRawOptions, _n as ObjectProperty, _r as TSObjectKeyword, _t as ConditionalExpression, ai as YieldExpression, an as JSXText, ar as TSIntrinsicKeyword, at as BinaryExpression, bn as Program, br as TSParenthesizedType, bt as Decorator, cn as LogicalExpression, cr as TSMethodSignature, ct as BindingRestElement, dn as MethodDefinition, dr as TSNamedTupleMember, dt as BreakStatement, ei as V8IntrinsicExpression, en as JSXNamespacedName, er as TSInstantiationExpression, et as AssignmentTargetProperty, fn as NewExpression, fr as TSNamespaceExportDeclaration, ft as CallExpression, g as BindingTsconfigCompilerOptions, gn as ObjectPattern, gr as TSNumberKeyword, gt as ClassBody, hn as ObjectExpression, hr as TSNullKeyword, ht as Class, ii as WithStatement, in as JSXSpreadChild, ir as TSIntersectionType, it as BigIntLiteral, jn as TSAnyKeyword, jr as TSTypeAliasDeclaration, jt as FormalParameterRest, kn as SwitchCase, kr as TSThisType, kt as ForOfStatement, ln as MemberExpression, lr as TSModuleBlock, lt as BlockStatement, mn as NumericLiteral, mr as TSNonNullExpression, mt as ChainExpression, ni as VariableDeclarator, nn as JSXOpeningFragment, nr as TSInterfaceDeclaration, nt as AssignmentTargetRest, oi as types_d_exports, on as LabelIdentifier, or as TSLiteralType, ot as BindingIdentifier, pn as NullLiteral, pr as TSNeverKeyword, pt as CatchClause, qn as TSGlobalDeclaration, qr as TemplateElement, qt as JSXClosingFragment, ri as WhileStatement, rn as JSXSpreadAttribute, rr as TSInterfaceHeritage, rt as AwaitExpression, sn as LabeledStatement, sr as TSMappedType, st as BindingProperty, ti as VariableDeclaration, tn as JSXOpeningElement, tr as TSInterfaceBody, tt as AssignmentTargetPropertyProperty, un as MetaProperty, ur as TSModuleDeclaration, ut as BooleanLiteral, vn as ParenthesizedExpression, vr as TSOptionalType, vt as ContinueStatement, wn as SequenceExpression, wr as TSSatisfiesExpression, wt as ExportDefaultDeclaration, xn as PropertyDefinition, xr as TSPropertySignature, xt as DoWhileStatement, yn as PrivateIdentifier, yr as TSParameterProperty, yt as DebuggerStatement, zn as TSConstructSignatureDeclaration, zr as TSTypePredicate, zt as ImportExpression } from "./shared/binding-CaVxb0SV.mjs";
|
|
2
2
|
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-kP3ISMFT.mjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.130.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
5
5
|
interface VisitorObject$1 {
|
|
6
6
|
DebuggerStatement?: (node: DebuggerStatement) => void;
|
|
7
7
|
"DebuggerStatement:exit"?: (node: DebuggerStatement) => void;
|
package/dist/utils-index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-Bmk53Le1.mjs";
|
|
2
2
|
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-Cwoo4h_o.mjs";
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.130.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
4
4
|
function walkNode(node, visitors) {
|
|
5
5
|
if (node == null) return;
|
|
6
6
|
if (Array.isArray(node)) {
|
|
@@ -2010,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2010
2010
|
exit !== null && exit(node);
|
|
2011
2011
|
}
|
|
2012
2012
|
//#endregion
|
|
2013
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2013
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.130.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2014
2014
|
/** Mapping from node type name to node type ID */
|
|
2015
2015
|
const NODE_TYPE_IDS_MAP = new Map([
|
|
2016
2016
|
["DebuggerStatement", 0],
|
|
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
|
|
|
2180
2180
|
["TSUnionType", 164]
|
|
2181
2181
|
]);
|
|
2182
2182
|
//#endregion
|
|
2183
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2183
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.130.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|