@rolldown/browser 1.0.0-rc.15 → 1.0.0-rc.16
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 +6 -6
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/{error-DJs8b3WW.js → error-DyjphrNB.js} +1 -1
- package/dist/experimental-index.browser.mjs +3 -3
- package/dist/experimental-index.d.mts +5 -5
- package/dist/experimental-index.mjs +3 -3
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.d.mts +3 -3
- package/dist/{resolve-tsconfig-CeKKTyZM.js → resolve-tsconfig-wB7yLsyK.js} +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-COq5DwaJ.js → rolldown-build-DyzPc6vz.js} +28 -48
- package/dist/shared/{binding-ZnDS8vT0.d.mts → binding-CaVxb0SV.d.mts} +27 -0
- package/dist/shared/{bindingify-input-options-BAdogY5b.mjs → bindingify-input-options-BM_ALGnD.mjs} +22 -46
- package/dist/shared/{constructors-nS2X45yE.d.mts → constructors-B1JYJxhf.d.mts} +2 -2
- package/dist/shared/{define-config-DGsflQU7.d.mts → define-config-iFrqKPOQ.d.mts} +23 -2
- package/dist/shared/{load-config-BfS98Qsv.mjs → load-config-BbGXN4n6.mjs} +1 -1
- package/dist/shared/{parse-BmK0RQzi.mjs → parse-Cxk58XCS.mjs} +1 -1
- package/dist/shared/{prompt-BYQIwEjg.mjs → prompt-U5ajztzG.mjs} +4 -2
- package/dist/shared/{rolldown-paK1AteK.mjs → rolldown-DrY5vEjL.mjs} +1 -1
- package/dist/shared/{rolldown-build-CENnhnWn.mjs → rolldown-build-BMFr9KVX.mjs} +7 -3
- package/dist/shared/{transform-Dd-_yDYG.d.mts → transform-kP3ISMFT.d.mts} +1 -1
- package/dist/shared/{utils-B9dwRBJP.d.mts → utils-KRVeJqya.d.mts} +1 -1
- package/dist/shared/{watch-CLJyTbAH.mjs → watch-B_mctB4m.mjs} +2 -2
- package/dist/utils-index.browser.mjs +5 -5
- package/dist/utils-index.d.mts +3 -3
- 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-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-B_mctB4m.mjs";
|
|
2
|
+
import { C as version, S as description } from "./shared/bindingify-input-options-BM_ALGnD.mjs";
|
|
3
3
|
import { h as arraify } from "./shared/composable-filters-B2ByPP8y.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-
|
|
5
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
6
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
4
|
+
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-BMFr9KVX.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-DrY5vEjL.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-BbGXN4n6.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.126.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-BM_ALGnD.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-BbGXN4n6.mjs";
|
|
4
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -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.126.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-Db8ibFkp.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-
|
|
2
|
+
import { a as validateOption, i as transformToRollupOutput, n as createBundlerOptions, o as PluginDriver, t as RolldownBuild } from "./rolldown-build-DyzPc6vz.js";
|
|
3
|
+
import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-DyjphrNB.js";
|
|
4
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-LtcP0f-6.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-
|
|
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-wB7yLsyK.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,8 +1,8 @@
|
|
|
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-
|
|
2
|
-
import { c as InputOptions, cn as freeExternalMemory, en as OutputOptions, on as RolldownOutput, pt as defineParallelPlugin, wt as NormalizedOutputOptions } from "./shared/define-config-
|
|
3
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
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-
|
|
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-
|
|
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 { c as InputOptions, cn as freeExternalMemory, en as OutputOptions, on as RolldownOutput, pt as defineParallelPlugin, wt as NormalizedOutputOptions } from "./shared/define-config-iFrqKPOQ.mjs";
|
|
3
|
+
import { t as BuiltinPlugin } from "./shared/utils-KRVeJqya.mjs";
|
|
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
|
+
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";
|
|
6
6
|
|
|
7
7
|
//#region src/api/dev/dev-options.d.ts
|
|
8
8
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-D0o84ejN.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-BM_ALGnD.mjs";
|
|
3
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-BMFr9KVX.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-
|
|
5
|
+
import { n as parseSync$2, t as parse$2 } from "./shared/parse-Cxk58XCS.mjs";
|
|
6
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-BGLoUvKR.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";
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as exprInterpreter, F as QueryFilterObject, G as interpreterImpl, H as importerId, I as TopLevelFilterExpression, J as or, K as moduleType, L as and, M as withFilter, N as FilterExpression, P as FilterExpressionKind, R as code, U as include, V as id, W as interpreter, X as query, Y as queries, q as not, z as exclude } from "./shared/define-config-
|
|
1
|
+
import { B as exprInterpreter, F as QueryFilterObject, G as interpreterImpl, H as importerId, I as TopLevelFilterExpression, J as or, K as moduleType, L as and, M as withFilter, N as FilterExpression, P as FilterExpressionKind, R as code, U as include, V as id, W as interpreter, X as query, Y as queries, q as not, z as exclude } from "./shared/define-config-iFrqKPOQ.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../pluginutils/dist/filter/filter-vite-plugins.d.ts
|
|
4
4
|
/**
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as logMultipleWatcherOption } from "./normalize-string-or-regex-Db8ibFkp.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-DyzPc6vz.js";
|
|
3
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-DyjphrNB.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
|
-
import { z as PreRenderedChunk } from "./shared/binding-
|
|
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 BundleError, $t as ModuleFormat, A as SourceDescription, At as RolldownMagicString, Bt as AddonFunction, C as PartialResolvedId, Ct as InternalModuleFormat, D as ResolvedId, Dt as ChecksOptions, E as ResolveIdResult, Et as TransformOptions, Ft as WatchOptions, Gt as CodeSplittingGroup, Ht as AdvancedChunksOptions, It as rolldown, Jt as CommentsOptions, Kt as CodeSplittingNameFunction, Lt as RolldownBuild, Mt as RolldownWatcher, Nt as RolldownWatcherEvent, O as RolldownPlugin, Ot as LoggingFunction, Pt as RolldownWatcherWatcherEventMap, Q as VERSION, Qt as MinifyOptions, Rt as BuildOptions, S as ParallelPluginHooks, St as RolldownFsModule, T as ResolveIdExtraOptions, Tt as NormalizedInputOptions, Ut as ChunkFileNamesFunction, Vt as AdvancedChunksGroup, Wt as ChunkingContext, Xt as GeneratedCodePreset, Yt as GeneratedCodeOptions, Z as RUNTIME_MODULE_ID, Zt as GlobalsFunction, _ as ImportKind, _t as HookFilter, a as ExternalOption, an as RenderedModule, at as EmittedAsset, b as ModuleType, bt as RolldownDirectoryEntry, c as InputOptions, ct as EmittedPrebuiltChunk, d as WatcherFileWatcherOptions, dt as PluginContextResolveOptions, en as OutputOptions, et as ExistingRawSourceMap, f as WatcherOptions, ft as DefineParallelPluginResult, g as HookFilterExtension, gt as GeneralHookFilter, h as FunctionPluginHooks, ht as PluginContextMeta, i as RolldownOptions, in as RenderedChunk, it as TransformPluginContext, j as TransformResult, jt as watch, k as RolldownPluginOption, kt as WarningHandlerWithDefault, l as ModuleTypes, ln as ModuleInfo, lt as GetModuleInfo, m as CustomPluginOptions, mt as MinimalPluginContext, n as RolldownOptionsFunction, nn as OutputAsset, nt as OutputBundle, o as ExternalOptionFunction, on as RolldownOutput, ot as EmittedChunk, p as AsyncPluginHooks, qt as CodeSplittingOptions, r as defineConfig, rn as OutputChunk, rt as TreeshakingOptions, s as InputOption, sn as SourceMap, st as EmittedFile, t as ConfigExport, tn as PreRenderedAsset, tt as SourceMapInput, u as OptimizationOptions, un as SourcemapIgnoreListOption, ut as PluginContext, v as LoadResult, vt as ModuleTypeFilter, w as Plugin, wt as NormalizedOutputOptions, x as ObjectHook, xt as RolldownFileStats, y as ModuleOptions, yt as BufferEncoding, zt as build } from "./shared/define-config-
|
|
4
|
-
import { o as PartialNull } from "./shared/utils-
|
|
3
|
+
import { $ as BundleError, $t as ModuleFormat, A as SourceDescription, At as RolldownMagicString, Bt as AddonFunction, C as PartialResolvedId, Ct as InternalModuleFormat, D as ResolvedId, Dt as ChecksOptions, E as ResolveIdResult, Et as TransformOptions, Ft as WatchOptions, Gt as CodeSplittingGroup, Ht as AdvancedChunksOptions, It as rolldown, Jt as CommentsOptions, Kt as CodeSplittingNameFunction, Lt as RolldownBuild, Mt as RolldownWatcher, Nt as RolldownWatcherEvent, O as RolldownPlugin, Ot as LoggingFunction, Pt as RolldownWatcherWatcherEventMap, Q as VERSION, Qt as MinifyOptions, Rt as BuildOptions, S as ParallelPluginHooks, St as RolldownFsModule, T as ResolveIdExtraOptions, Tt as NormalizedInputOptions, Ut as ChunkFileNamesFunction, Vt as AdvancedChunksGroup, Wt as ChunkingContext, Xt as GeneratedCodePreset, Yt as GeneratedCodeOptions, Z as RUNTIME_MODULE_ID, Zt as GlobalsFunction, _ as ImportKind, _t as HookFilter, a as ExternalOption, an as RenderedModule, at as EmittedAsset, b as ModuleType, bt as RolldownDirectoryEntry, c as InputOptions, ct as EmittedPrebuiltChunk, d as WatcherFileWatcherOptions, dt as PluginContextResolveOptions, en as OutputOptions, et as ExistingRawSourceMap, f as WatcherOptions, ft as DefineParallelPluginResult, g as HookFilterExtension, gt as GeneralHookFilter, h as FunctionPluginHooks, ht as PluginContextMeta, i as RolldownOptions, in as RenderedChunk, it as TransformPluginContext, j as TransformResult, jt as watch, k as RolldownPluginOption, kt as WarningHandlerWithDefault, l as ModuleTypes, ln as ModuleInfo, lt as GetModuleInfo, m as CustomPluginOptions, mt as MinimalPluginContext, n as RolldownOptionsFunction, nn as OutputAsset, nt as OutputBundle, o as ExternalOptionFunction, on as RolldownOutput, ot as EmittedChunk, p as AsyncPluginHooks, qt as CodeSplittingOptions, r as defineConfig, rn as OutputChunk, rt as TreeshakingOptions, s as InputOption, sn as SourceMap, st as EmittedFile, t as ConfigExport, tn as PreRenderedAsset, tt as SourceMapInput, u as OptimizationOptions, un as SourcemapIgnoreListOption, ut as PluginContext, v as LoadResult, vt as ModuleTypeFilter, w as Plugin, wt as NormalizedOutputOptions, x as ObjectHook, xt as RolldownFileStats, y as ModuleOptions, yt as BufferEncoding, zt as build } from "./shared/define-config-iFrqKPOQ.mjs";
|
|
4
|
+
import { o as PartialNull } from "./shared/utils-KRVeJqya.mjs";
|
|
5
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 };
|
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-B_mctB4m.mjs";
|
|
2
|
+
import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-BM_ALGnD.mjs";
|
|
3
|
+
import { t as rolldown } from "./shared/rolldown-DrY5vEjL.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-BM_ALGnD.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as Plugin } from "./shared/define-config-
|
|
2
|
-
import { i as MaybePromise } from "./shared/utils-
|
|
1
|
+
import { w as Plugin } from "./shared/define-config-iFrqKPOQ.mjs";
|
|
2
|
+
import { i as MaybePromise } from "./shared/utils-KRVeJqya.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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-Cxk58XCS.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);
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as BindingReplacePluginConfig } from "./shared/binding-
|
|
2
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { m as BindingReplacePluginConfig } from "./shared/binding-CaVxb0SV.mjs";
|
|
2
|
+
import { t as BuiltinPlugin } from "./shared/utils-KRVeJqya.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-B1JYJxhf.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-
|
|
1
|
+
import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-DyjphrNB.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-Db8ibFkp.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-DyjphrNB.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.0-rc.
|
|
457
|
+
const VERSION = "1.0.0-rc.16";
|
|
458
458
|
//#endregion
|
|
459
459
|
//#region src/constants/index.ts
|
|
460
460
|
/**
|
|
@@ -1918,6 +1918,8 @@ const TypescriptSchema = /* @__PURE__ */ object({
|
|
|
1918
1918
|
allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1919
1919
|
allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1920
1920
|
removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1921
|
+
optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1922
|
+
optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1921
1923
|
declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1922
1924
|
stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1923
1925
|
sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
@@ -2013,6 +2015,7 @@ const CompressTreeshakeOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
2013
2015
|
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2014
2016
|
manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
2015
2017
|
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
|
|
2018
|
+
propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2016
2019
|
unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2017
2020
|
invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
2018
2021
|
});
|
|
@@ -2227,7 +2230,8 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
|
2227
2230
|
minModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
2228
2231
|
maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
2229
2232
|
entriesAware: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2230
|
-
entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
2233
|
+
entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
2234
|
+
tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
|
|
2231
2235
|
})))
|
|
2232
2236
|
});
|
|
2233
2237
|
isTypeTrue();
|
|
@@ -2506,7 +2510,7 @@ function bindingAssetSource(source) {
|
|
|
2506
2510
|
return { inner: source };
|
|
2507
2511
|
}
|
|
2508
2512
|
//#endregion
|
|
2509
|
-
//#region \0@oxc-project+runtime@0.
|
|
2513
|
+
//#region \0@oxc-project+runtime@0.126.0/helpers/decorate.js
|
|
2510
2514
|
function __decorate(decorators, target, key, desc) {
|
|
2511
2515
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2512
2516
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3908,30 +3912,6 @@ function bindingifyCloseWatcher(args) {
|
|
|
3908
3912
|
}
|
|
3909
3913
|
//#endregion
|
|
3910
3914
|
//#region src/plugin/generated/hook-usage.ts
|
|
3911
|
-
let HookUsageKind = /* @__PURE__ */ function(HookUsageKind) {
|
|
3912
|
-
HookUsageKind[HookUsageKind["buildStart"] = 1] = "buildStart";
|
|
3913
|
-
HookUsageKind[HookUsageKind["resolveId"] = 2] = "resolveId";
|
|
3914
|
-
HookUsageKind[HookUsageKind["resolveDynamicImport"] = 4] = "resolveDynamicImport";
|
|
3915
|
-
HookUsageKind[HookUsageKind["load"] = 8] = "load";
|
|
3916
|
-
HookUsageKind[HookUsageKind["transform"] = 16] = "transform";
|
|
3917
|
-
HookUsageKind[HookUsageKind["moduleParsed"] = 32] = "moduleParsed";
|
|
3918
|
-
HookUsageKind[HookUsageKind["buildEnd"] = 64] = "buildEnd";
|
|
3919
|
-
HookUsageKind[HookUsageKind["renderStart"] = 128] = "renderStart";
|
|
3920
|
-
HookUsageKind[HookUsageKind["renderError"] = 256] = "renderError";
|
|
3921
|
-
HookUsageKind[HookUsageKind["renderChunk"] = 512] = "renderChunk";
|
|
3922
|
-
HookUsageKind[HookUsageKind["augmentChunkHash"] = 1024] = "augmentChunkHash";
|
|
3923
|
-
HookUsageKind[HookUsageKind["generateBundle"] = 2048] = "generateBundle";
|
|
3924
|
-
HookUsageKind[HookUsageKind["writeBundle"] = 4096] = "writeBundle";
|
|
3925
|
-
HookUsageKind[HookUsageKind["closeBundle"] = 8192] = "closeBundle";
|
|
3926
|
-
HookUsageKind[HookUsageKind["watchChange"] = 16384] = "watchChange";
|
|
3927
|
-
HookUsageKind[HookUsageKind["closeWatcher"] = 32768] = "closeWatcher";
|
|
3928
|
-
HookUsageKind[HookUsageKind["transformAst"] = 65536] = "transformAst";
|
|
3929
|
-
HookUsageKind[HookUsageKind["banner"] = 131072] = "banner";
|
|
3930
|
-
HookUsageKind[HookUsageKind["footer"] = 262144] = "footer";
|
|
3931
|
-
HookUsageKind[HookUsageKind["intro"] = 524288] = "intro";
|
|
3932
|
-
HookUsageKind[HookUsageKind["outro"] = 1048576] = "outro";
|
|
3933
|
-
return HookUsageKind;
|
|
3934
|
-
}({});
|
|
3935
3915
|
var HookUsage = class {
|
|
3936
3916
|
bitflag = BigInt(0);
|
|
3937
3917
|
constructor() {}
|
|
@@ -3944,26 +3924,26 @@ var HookUsage = class {
|
|
|
3944
3924
|
};
|
|
3945
3925
|
function extractHookUsage(plugin) {
|
|
3946
3926
|
let hookUsage = new HookUsage();
|
|
3947
|
-
if (plugin.buildStart) hookUsage.union(
|
|
3948
|
-
if (plugin.resolveId) hookUsage.union(
|
|
3949
|
-
if (plugin.resolveDynamicImport) hookUsage.union(
|
|
3950
|
-
if (plugin.load) hookUsage.union(
|
|
3951
|
-
if (plugin.transform) hookUsage.union(
|
|
3952
|
-
if (plugin.moduleParsed) hookUsage.union(
|
|
3953
|
-
if (plugin.buildEnd) hookUsage.union(
|
|
3954
|
-
if (plugin.renderStart) hookUsage.union(
|
|
3955
|
-
if (plugin.renderError) hookUsage.union(
|
|
3956
|
-
if (plugin.renderChunk) hookUsage.union(
|
|
3957
|
-
if (plugin.augmentChunkHash) hookUsage.union(
|
|
3958
|
-
if (plugin.generateBundle) hookUsage.union(
|
|
3959
|
-
if (plugin.writeBundle) hookUsage.union(
|
|
3960
|
-
if (plugin.closeBundle) hookUsage.union(
|
|
3961
|
-
if (plugin.watchChange) hookUsage.union(
|
|
3962
|
-
if (plugin.closeWatcher) hookUsage.union(
|
|
3963
|
-
if (plugin.banner) hookUsage.union(
|
|
3964
|
-
if (plugin.footer) hookUsage.union(
|
|
3965
|
-
if (plugin.intro) hookUsage.union(
|
|
3966
|
-
if (plugin.outro) hookUsage.union(
|
|
3927
|
+
if (plugin.buildStart) hookUsage.union(1);
|
|
3928
|
+
if (plugin.resolveId) hookUsage.union(2);
|
|
3929
|
+
if (plugin.resolveDynamicImport) hookUsage.union(4);
|
|
3930
|
+
if (plugin.load) hookUsage.union(8);
|
|
3931
|
+
if (plugin.transform) hookUsage.union(16);
|
|
3932
|
+
if (plugin.moduleParsed) hookUsage.union(32);
|
|
3933
|
+
if (plugin.buildEnd) hookUsage.union(64);
|
|
3934
|
+
if (plugin.renderStart) hookUsage.union(128);
|
|
3935
|
+
if (plugin.renderError) hookUsage.union(256);
|
|
3936
|
+
if (plugin.renderChunk) hookUsage.union(512);
|
|
3937
|
+
if (plugin.augmentChunkHash) hookUsage.union(1024);
|
|
3938
|
+
if (plugin.generateBundle) hookUsage.union(2048);
|
|
3939
|
+
if (plugin.writeBundle) hookUsage.union(4096);
|
|
3940
|
+
if (plugin.closeBundle) hookUsage.union(8192);
|
|
3941
|
+
if (plugin.watchChange) hookUsage.union(16384);
|
|
3942
|
+
if (plugin.closeWatcher) hookUsage.union(32768);
|
|
3943
|
+
if (plugin.banner) hookUsage.union(131072);
|
|
3944
|
+
if (plugin.footer) hookUsage.union(262144);
|
|
3945
|
+
if (plugin.intro) hookUsage.union(524288);
|
|
3946
|
+
if (plugin.outro) hookUsage.union(1048576);
|
|
3967
3947
|
return hookUsage;
|
|
3968
3948
|
}
|
|
3969
3949
|
//#endregion
|
|
@@ -1459,6 +1459,15 @@ interface TreeShakeOptions {
|
|
|
1459
1459
|
* @default 'always'
|
|
1460
1460
|
*/
|
|
1461
1461
|
propertyReadSideEffects?: boolean | 'always';
|
|
1462
|
+
/**
|
|
1463
|
+
* Whether property write accesses (assignments to member expressions) have side effects.
|
|
1464
|
+
*
|
|
1465
|
+
* When false, assignments like `obj.prop = value` are considered side-effect-free
|
|
1466
|
+
* (assuming the object and value expressions themselves are side-effect-free).
|
|
1467
|
+
*
|
|
1468
|
+
* @default true
|
|
1469
|
+
*/
|
|
1470
|
+
propertyWriteSideEffects?: boolean;
|
|
1462
1471
|
/**
|
|
1463
1472
|
* Whether accessing a global variable has side effects.
|
|
1464
1473
|
*
|
|
@@ -2457,6 +2466,24 @@ interface TypeScriptOptions {
|
|
|
2457
2466
|
* Defaults to `false`.
|
|
2458
2467
|
*/
|
|
2459
2468
|
removeClassFieldsWithoutInitializer?: boolean;
|
|
2469
|
+
/**
|
|
2470
|
+
* When true, optimize const enums by inlining their values at usage sites
|
|
2471
|
+
* and removing the enum declaration.
|
|
2472
|
+
*
|
|
2473
|
+
* @default false
|
|
2474
|
+
*/
|
|
2475
|
+
optimizeConstEnums?: boolean;
|
|
2476
|
+
/**
|
|
2477
|
+
* When true, optimize regular (non-const) enums by inlining their member
|
|
2478
|
+
* accesses at usage sites when the member value is statically known.
|
|
2479
|
+
*
|
|
2480
|
+
* Non-exported enum declarations are also removed when all members are
|
|
2481
|
+
* evaluable and no references to the enum as a runtime value exist
|
|
2482
|
+
* (e.g., `console.log(Foo)`, `typeof Foo`, or passing the enum as an argument).
|
|
2483
|
+
*
|
|
2484
|
+
* @default false
|
|
2485
|
+
*/
|
|
2486
|
+
optimizeEnums?: boolean;
|
|
2460
2487
|
/**
|
|
2461
2488
|
* Also generate a `.d.ts` declaration file for TypeScript files.
|
|
2462
2489
|
*
|
package/dist/shared/{bindingify-input-options-BAdogY5b.mjs → bindingify-input-options-BM_ALGnD.mjs}
RENAMED
|
@@ -7,7 +7,7 @@ import { BindingAttachDebugInfo, BindingChunkModuleOrderBy, BindingLogLevel, Bin
|
|
|
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.0-rc.
|
|
10
|
+
var version = "1.0.0-rc.16";
|
|
11
11
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/constants/version.ts
|
|
@@ -216,7 +216,7 @@ function bindingAssetSource(source) {
|
|
|
216
216
|
return { inner: source };
|
|
217
217
|
}
|
|
218
218
|
//#endregion
|
|
219
|
-
//#region \0@oxc-project+runtime@0.
|
|
219
|
+
//#region \0@oxc-project+runtime@0.126.0/helpers/decorate.js
|
|
220
220
|
function __decorate(decorators, target, key, desc) {
|
|
221
221
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
222
222
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1464,30 +1464,6 @@ function bindingifyCloseWatcher(args) {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
//#endregion
|
|
1466
1466
|
//#region src/plugin/generated/hook-usage.ts
|
|
1467
|
-
let HookUsageKind = /* @__PURE__ */ function(HookUsageKind) {
|
|
1468
|
-
HookUsageKind[HookUsageKind["buildStart"] = 1] = "buildStart";
|
|
1469
|
-
HookUsageKind[HookUsageKind["resolveId"] = 2] = "resolveId";
|
|
1470
|
-
HookUsageKind[HookUsageKind["resolveDynamicImport"] = 4] = "resolveDynamicImport";
|
|
1471
|
-
HookUsageKind[HookUsageKind["load"] = 8] = "load";
|
|
1472
|
-
HookUsageKind[HookUsageKind["transform"] = 16] = "transform";
|
|
1473
|
-
HookUsageKind[HookUsageKind["moduleParsed"] = 32] = "moduleParsed";
|
|
1474
|
-
HookUsageKind[HookUsageKind["buildEnd"] = 64] = "buildEnd";
|
|
1475
|
-
HookUsageKind[HookUsageKind["renderStart"] = 128] = "renderStart";
|
|
1476
|
-
HookUsageKind[HookUsageKind["renderError"] = 256] = "renderError";
|
|
1477
|
-
HookUsageKind[HookUsageKind["renderChunk"] = 512] = "renderChunk";
|
|
1478
|
-
HookUsageKind[HookUsageKind["augmentChunkHash"] = 1024] = "augmentChunkHash";
|
|
1479
|
-
HookUsageKind[HookUsageKind["generateBundle"] = 2048] = "generateBundle";
|
|
1480
|
-
HookUsageKind[HookUsageKind["writeBundle"] = 4096] = "writeBundle";
|
|
1481
|
-
HookUsageKind[HookUsageKind["closeBundle"] = 8192] = "closeBundle";
|
|
1482
|
-
HookUsageKind[HookUsageKind["watchChange"] = 16384] = "watchChange";
|
|
1483
|
-
HookUsageKind[HookUsageKind["closeWatcher"] = 32768] = "closeWatcher";
|
|
1484
|
-
HookUsageKind[HookUsageKind["transformAst"] = 65536] = "transformAst";
|
|
1485
|
-
HookUsageKind[HookUsageKind["banner"] = 131072] = "banner";
|
|
1486
|
-
HookUsageKind[HookUsageKind["footer"] = 262144] = "footer";
|
|
1487
|
-
HookUsageKind[HookUsageKind["intro"] = 524288] = "intro";
|
|
1488
|
-
HookUsageKind[HookUsageKind["outro"] = 1048576] = "outro";
|
|
1489
|
-
return HookUsageKind;
|
|
1490
|
-
}({});
|
|
1491
1467
|
var HookUsage = class {
|
|
1492
1468
|
bitflag = BigInt(0);
|
|
1493
1469
|
constructor() {}
|
|
@@ -1500,26 +1476,26 @@ var HookUsage = class {
|
|
|
1500
1476
|
};
|
|
1501
1477
|
function extractHookUsage(plugin) {
|
|
1502
1478
|
let hookUsage = new HookUsage();
|
|
1503
|
-
if (plugin.buildStart) hookUsage.union(
|
|
1504
|
-
if (plugin.resolveId) hookUsage.union(
|
|
1505
|
-
if (plugin.resolveDynamicImport) hookUsage.union(
|
|
1506
|
-
if (plugin.load) hookUsage.union(
|
|
1507
|
-
if (plugin.transform) hookUsage.union(
|
|
1508
|
-
if (plugin.moduleParsed) hookUsage.union(
|
|
1509
|
-
if (plugin.buildEnd) hookUsage.union(
|
|
1510
|
-
if (plugin.renderStart) hookUsage.union(
|
|
1511
|
-
if (plugin.renderError) hookUsage.union(
|
|
1512
|
-
if (plugin.renderChunk) hookUsage.union(
|
|
1513
|
-
if (plugin.augmentChunkHash) hookUsage.union(
|
|
1514
|
-
if (plugin.generateBundle) hookUsage.union(
|
|
1515
|
-
if (plugin.writeBundle) hookUsage.union(
|
|
1516
|
-
if (plugin.closeBundle) hookUsage.union(
|
|
1517
|
-
if (plugin.watchChange) hookUsage.union(
|
|
1518
|
-
if (plugin.closeWatcher) hookUsage.union(
|
|
1519
|
-
if (plugin.banner) hookUsage.union(
|
|
1520
|
-
if (plugin.footer) hookUsage.union(
|
|
1521
|
-
if (plugin.intro) hookUsage.union(
|
|
1522
|
-
if (plugin.outro) hookUsage.union(
|
|
1479
|
+
if (plugin.buildStart) hookUsage.union(1);
|
|
1480
|
+
if (plugin.resolveId) hookUsage.union(2);
|
|
1481
|
+
if (plugin.resolveDynamicImport) hookUsage.union(4);
|
|
1482
|
+
if (plugin.load) hookUsage.union(8);
|
|
1483
|
+
if (plugin.transform) hookUsage.union(16);
|
|
1484
|
+
if (plugin.moduleParsed) hookUsage.union(32);
|
|
1485
|
+
if (plugin.buildEnd) hookUsage.union(64);
|
|
1486
|
+
if (plugin.renderStart) hookUsage.union(128);
|
|
1487
|
+
if (plugin.renderError) hookUsage.union(256);
|
|
1488
|
+
if (plugin.renderChunk) hookUsage.union(512);
|
|
1489
|
+
if (plugin.augmentChunkHash) hookUsage.union(1024);
|
|
1490
|
+
if (plugin.generateBundle) hookUsage.union(2048);
|
|
1491
|
+
if (plugin.writeBundle) hookUsage.union(4096);
|
|
1492
|
+
if (plugin.closeBundle) hookUsage.union(8192);
|
|
1493
|
+
if (plugin.watchChange) hookUsage.union(16384);
|
|
1494
|
+
if (plugin.closeWatcher) hookUsage.union(32768);
|
|
1495
|
+
if (plugin.banner) hookUsage.union(131072);
|
|
1496
|
+
if (plugin.footer) hookUsage.union(262144);
|
|
1497
|
+
if (plugin.intro) hookUsage.union(524288);
|
|
1498
|
+
if (plugin.outro) hookUsage.union(1048576);
|
|
1523
1499
|
return hookUsage;
|
|
1524
1500
|
}
|
|
1525
1501
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, b as BindingViteDynamicImportVarsPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteBuildImportAnalysisPluginConfig } from "./binding-
|
|
2
|
-
import { s as StringOrRegExp, t as BuiltinPlugin } from "./utils-
|
|
1
|
+
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, b as BindingViteDynamicImportVarsPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteBuildImportAnalysisPluginConfig } from "./binding-CaVxb0SV.mjs";
|
|
2
|
+
import { s as StringOrRegExp, t as BuiltinPlugin } from "./utils-KRVeJqya.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, bn as Program, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, u as BindingMagicString, z as PreRenderedChunk } from "./binding-
|
|
1
|
+
import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, bn as Program, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, u as BindingMagicString, z as PreRenderedChunk } from "./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 "./logging-C6h4g8dA.mjs";
|
|
3
|
-
import { a as NullValue, i as MaybePromise, n as MakeAsync, o as PartialNull, r as MaybeArray, s as StringOrRegExp$1, t as BuiltinPlugin } from "./utils-
|
|
3
|
+
import { a as NullValue, i as MaybePromise, n as MakeAsync, o as PartialNull, r as MaybeArray, s as StringOrRegExp$1, t as BuiltinPlugin } from "./utils-KRVeJqya.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/types/misc.d.ts
|
|
6
6
|
/** @inline */
|
|
@@ -943,6 +943,12 @@ interface OutputOptions {
|
|
|
943
943
|
*/
|
|
944
944
|
strict?: boolean | "auto";
|
|
945
945
|
}
|
|
946
|
+
/**
|
|
947
|
+
* Built-in module tag names computed by rolldown.
|
|
948
|
+
*
|
|
949
|
+
* - `'$initial'` — the module is statically imported by at least one user-defined entry point, or is part of its static dependency chain.
|
|
950
|
+
*/
|
|
951
|
+
type BuiltinModuleTag = "$initial";
|
|
946
952
|
type CodeSplittingGroup = {
|
|
947
953
|
/**
|
|
948
954
|
* Name of the group. It will be also used as the name of the chunk and replace the `[name]` placeholder in the {@linkcode OutputOptions.chunkFileNames | output.chunkFileNames} option.
|
|
@@ -1106,6 +1112,21 @@ type CodeSplittingGroup = {
|
|
|
1106
1112
|
* @default 0
|
|
1107
1113
|
*/
|
|
1108
1114
|
entriesAwareMergeThreshold?: number;
|
|
1115
|
+
/**
|
|
1116
|
+
* Filter modules by tags. Only modules that have **all** specified tags
|
|
1117
|
+
* are captured by this group. Combines with `test` and other filters —
|
|
1118
|
+
* a module must match all criteria.
|
|
1119
|
+
*
|
|
1120
|
+
* Built-in tags: `'$initial'` (module is statically imported by a user-defined entry or part of its dependency chain).
|
|
1121
|
+
*
|
|
1122
|
+
* @see {@link https://rolldown.rs/in-depth/manual-code-splitting | Manual Code Splitting}
|
|
1123
|
+
*
|
|
1124
|
+
* @example
|
|
1125
|
+
* ```js
|
|
1126
|
+
* { name: 'initial-deps', tags: ['$initial'], maxSize: 1048576 }
|
|
1127
|
+
* ```
|
|
1128
|
+
*/
|
|
1129
|
+
tags?: BuiltinModuleTag[];
|
|
1109
1130
|
};
|
|
1110
1131
|
/**
|
|
1111
1132
|
* Alias for {@linkcode CodeSplittingGroup}. Use this type for the `codeSplitting.groups` option.
|
|
@@ -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.126.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
function wrap(result) {
|
|
4
4
|
let program, module, comments, errors;
|
|
5
5
|
return {
|
|
@@ -592,10 +592,12 @@ let wD = class extends x {
|
|
|
592
592
|
return this.options[this.cursor].value;
|
|
593
593
|
}
|
|
594
594
|
toggleAll() {
|
|
595
|
-
|
|
595
|
+
const u = this.value.length === this.options.length;
|
|
596
|
+
this.value = u ? [] : this.options.map((F) => F.value);
|
|
596
597
|
}
|
|
597
598
|
toggleValue() {
|
|
598
|
-
|
|
599
|
+
const u = this.value.includes(this._value);
|
|
600
|
+
this.value = u ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
|
|
599
601
|
}
|
|
600
602
|
};
|
|
601
603
|
var SD = Object.defineProperty, $D = (t, u, F) => u in t ? SD(t, u, {
|
|
@@ -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-BMFr9KVX.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
|
|
2
2
|
import { n as BuiltinPlugin } from "./normalize-string-or-regex-D0o84ejN.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-
|
|
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-BM_ALGnD.mjs";
|
|
4
4
|
import { v as unimplemented } from "./composable-filters-B2ByPP8y.mjs";
|
|
5
5
|
import { i as unwrapBindingResult } from "./error-CQ6njWsV.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
@@ -1475,6 +1475,8 @@ const TypescriptSchema = /* @__PURE__ */ object({
|
|
|
1475
1475
|
allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1476
1476
|
allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1477
1477
|
removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1478
|
+
optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1479
|
+
optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1478
1480
|
declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1479
1481
|
stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1480
1482
|
sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
@@ -1570,6 +1572,7 @@ const CompressTreeshakeOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1570
1572
|
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1571
1573
|
manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1572
1574
|
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
|
|
1575
|
+
propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1573
1576
|
unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1574
1577
|
invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1575
1578
|
});
|
|
@@ -1784,7 +1787,8 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
|
1784
1787
|
minModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1785
1788
|
maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1786
1789
|
entriesAware: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1787
|
-
entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
1790
|
+
entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1791
|
+
tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
|
|
1788
1792
|
})))
|
|
1789
1793
|
});
|
|
1790
1794
|
isTypeTrue();
|
|
@@ -2933,7 +2937,7 @@ function createConsola(options = {}) {
|
|
|
2933
2937
|
defaults: { level },
|
|
2934
2938
|
stdout: process.stdout,
|
|
2935
2939
|
stderr: process.stderr,
|
|
2936
|
-
prompt: (...args) => import("./prompt-
|
|
2940
|
+
prompt: (...args) => import("./prompt-U5ajztzG.mjs").then((m) => m.prompt(...args)),
|
|
2937
2941
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
2938
2942
|
...options
|
|
2939
2943
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-
|
|
1
|
+
import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-CaVxb0SV.mjs";
|
|
2
2
|
import { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/resolve-tsconfig.d.ts
|
|
@@ -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-
|
|
2
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-BM_ALGnD.mjs";
|
|
3
3
|
import { h as arraify } from "./composable-filters-B2ByPP8y.mjs";
|
|
4
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
4
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-BMFr9KVX.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-DyjphrNB.js";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-wB7yLsyK.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.126.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.126.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.126.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
|
-
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-
|
|
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-
|
|
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
|
+
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.126.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-Cxk58XCS.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.126.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.126.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.126.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|