@rolldown/browser 1.0.0-rc.4 → 1.0.0-rc.5
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 +5 -5
- package/dist/{error-DfXdOVMF.js → error-Cqi7XTjG.js} +1 -1
- package/dist/experimental-index.browser.mjs +3 -3
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +3 -3
- package/dist/filter-index.d.mts +1 -1
- package/dist/get-log-filter.d.mts +2 -6
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +2 -3
- package/dist/index.mjs +5 -5
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-gXO5p6r0.js → rolldown-build-D_uxS53o.js} +12 -8
- package/dist/shared/{bindingify-input-options-B32m-wO8.mjs → bindingify-input-options-CntM6OGD.mjs} +6 -5
- package/dist/shared/{define-config-MImu5XA0.d.mts → define-config-CMsxCx69.d.mts} +50 -4
- package/dist/shared/get-log-filter-MhZu4MML.d.mts +7 -0
- package/dist/shared/{load-config-nINjF42i.mjs → load-config-DwB0RYGU.mjs} +1 -1
- package/dist/shared/{parse-C5IFYsFB.mjs → parse-TCwR4L_P.mjs} +1 -1
- package/dist/shared/{rolldown-CkjERUOD.mjs → rolldown-aTvfnZNF.mjs} +1 -1
- package/dist/shared/{rolldown-build-nvl-pSiK.mjs → rolldown-build-Bvz-G_y6.mjs} +6 -3
- package/dist/shared/{types-C2Sw7GCQ.d.mts → types-CMaRlYYn.d.mts} +2 -2
- package/dist/shared/{watch-CC4jn0NJ.mjs → watch-BWJtu1lP.mjs} +2 -2
- package/dist/{transform-DmR2FE2Q.js → transform-BQei0Mty.js} +1 -1
- package/dist/utils-index.browser.mjs +2404 -3
- package/dist/utils-index.d.mts +349 -1
- package/dist/utils-index.mjs +2403 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-BWJtu1lP.mjs";
|
|
2
2
|
import "./shared/normalize-string-or-regex-CdT2cmt4.mjs";
|
|
3
|
-
import { S as version, x as description } from "./shared/bindingify-input-options-
|
|
3
|
+
import { S as version, x as description } from "./shared/bindingify-input-options-CntM6OGD.mjs";
|
|
4
4
|
import { h as arraify } from "./shared/composable-filters-CIxSuZSM.mjs";
|
|
5
|
-
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText$1, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-
|
|
5
|
+
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText$1, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-Bvz-G_y6.mjs";
|
|
6
6
|
import "./shared/error-DTJQ7tjB.mjs";
|
|
7
|
-
import "./shared/parse-
|
|
8
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
9
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
7
|
+
import "./shared/parse-TCwR4L_P.mjs";
|
|
8
|
+
import { t as rolldown } from "./shared/rolldown-aTvfnZNF.mjs";
|
|
9
|
+
import { t as loadConfig } from "./shared/load-config-DwB0RYGU.mjs";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import { parseArgs } from "node:util";
|
|
12
12
|
import process$1 from "node:process";
|
|
@@ -258,7 +258,7 @@ function getClearScreenFunction(options) {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
//#endregion
|
|
261
|
-
//#region \0@oxc-project+runtime@0.
|
|
261
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/usingCtx.js
|
|
262
262
|
function _usingCtx() {
|
|
263
263
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
264
264
|
var n = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-CMsxCx69.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./shared/normalize-string-or-regex-CdT2cmt4.mjs";
|
|
2
|
-
import { b as VERSION } from "./shared/bindingify-input-options-
|
|
3
|
-
import "./shared/rolldown-build-
|
|
2
|
+
import { b as VERSION } from "./shared/bindingify-input-options-CntM6OGD.mjs";
|
|
3
|
+
import "./shared/rolldown-build-Bvz-G_y6.mjs";
|
|
4
4
|
import "./shared/error-DTJQ7tjB.mjs";
|
|
5
|
-
import "./shared/parse-
|
|
6
|
-
import "./shared/rolldown-
|
|
5
|
+
import "./shared/parse-TCwR4L_P.mjs";
|
|
6
|
+
import "./shared/rolldown-aTvfnZNF.mjs";
|
|
7
7
|
import { t as defineConfig } from "./shared/define-config-BVG4QvnP.mjs";
|
|
8
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
8
|
+
import { t as loadConfig } from "./shared/load-config-DwB0RYGU.mjs";
|
|
9
9
|
|
|
10
10
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -16,7 +16,7 @@ function bindingifySourcemap(map) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
19
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.114.0/node_modules/oxc-parser/src-js/wrap.js
|
|
20
20
|
function wrap(result) {
|
|
21
21
|
let program, module, comments, errors;
|
|
22
22
|
return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-B0X1hEA4.js";
|
|
2
|
-
import { a as PluginDriver, i as validateOption, n as createBundlerOptions, r as transformToRollupOutput, 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 PluginDriver, i as validateOption, n as createBundlerOptions, r as transformToRollupOutput, t as RolldownBuild } from "./rolldown-build-D_uxS53o.js";
|
|
3
|
+
import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-Cqi7XTjG.js";
|
|
4
4
|
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./constructors-D2wC6vT5.js";
|
|
5
|
-
import { a as minifySync$2, i as minify$2, n as transform$1, r as transformSync$1, t as TsconfigCache$1 } from "./transform-
|
|
5
|
+
import { a as minifySync$2, i as minify$2, n as transform$1, r as transformSync$1, t as TsconfigCache$1 } from "./transform-BQei0Mty.js";
|
|
6
6
|
import * as binding from "./rolldown-binding.wasi-browser.js";
|
|
7
7
|
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, createTokioRuntime, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, resolveTsconfig, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as OutputOptions, an as RolldownOutput, c as InputOptions, pt as defineParallelPlugin, sn as freeExternalMemory, wt as NormalizedOutputOptions } from "./shared/define-config-CMsxCx69.mjs";
|
|
2
2
|
import { t as BuiltinPlugin } from "./shared/utils-DOXNRW_3.mjs";
|
|
3
3
|
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-CtryxP-m.mjs";
|
|
4
4
|
import { a as TsconfigRawOptions$1, c as MinifyOptions$2, d as minifySync$1, f as ParseResult$1, h as parseSync$1, i as TsconfigCompilerOptions$1, l as MinifyResult$1, m as parse$1, n as TransformResult$1, o as transform$1, p as ParserOptions$2, r as TsconfigCache$1, s as transformSync$1, t as BindingEnhancedTransformOptions, u as minify$1 } from "./shared/transform-ChAcTNv3.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-CdT2cmt4.mjs";
|
|
2
|
-
import { a 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 { a as transformToRollupOutput } from "./shared/bindingify-input-options-CntM6OGD.mjs";
|
|
3
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-Bvz-G_y6.mjs";
|
|
4
4
|
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-DTJQ7tjB.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-TCwR4L_P.mjs";
|
|
6
6
|
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-f9W8MQZ_.mjs";
|
|
7
7
|
import { a as minifySync$2, i as minify$2, n as transform$1, r as transformSync$1, t as TsconfigCache$1 } from "./shared/transform-DhHPKnL-.mjs";
|
|
8
8
|
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, createTokioRuntime, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, resolveTsconfig, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi.cjs";
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as id, F as TopLevelFilterExpression, G as moduleType, H as include, I as and, J as queries, K as not, L as code, M as FilterExpression, N as FilterExpressionKind, P as QueryFilterObject, R as exclude, U as interpreter, V as importerId, W as interpreterImpl, Y as query, j as withFilter, q as or, z as exprInterpreter } from "./shared/define-config-
|
|
1
|
+
import { B as id, F as TopLevelFilterExpression, G as moduleType, H as include, I as and, J as queries, K as not, L as code, M as FilterExpression, N as FilterExpressionKind, P as QueryFilterObject, R as exclude, U as interpreter, V as importerId, W as interpreterImpl, Y as query, j as withFilter, q as or, z as exprInterpreter } from "./shared/define-config-CMsxCx69.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../pluginutils/dist/filter/filter-vite-plugins.d.ts
|
|
4
4
|
/**
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./shared/logging-C28dTP71.mjs";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type GetLogFilter = (filters: string[]) => (log: RolldownLog) => boolean;
|
|
5
|
-
declare const getLogFilter: GetLogFilter;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { GetLogFilter, type RolldownLog, type RolldownLog as RollupLog, getLogFilter as default };
|
|
2
|
+
import { n as getLogFilter, t as GetLogFilter } from "./shared/get-log-filter-MhZu4MML.mjs";
|
|
3
|
+
export { GetLogFilter, RolldownLog, RolldownLog as RollupLog, getLogFilter as default };
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as logMultiplyNotifyOption } from "./normalize-string-or-regex-B0X1hEA4.js";
|
|
2
|
-
import { a as PluginDriver, c as RUNTIME_MODULE_ID, i as validateOption, l as VERSION, n as createBundlerOptions, o as LOG_LEVEL_WARN, s as arraify, t as RolldownBuild } from "./rolldown-build-
|
|
3
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
2
|
+
import { a as PluginDriver, c as RUNTIME_MODULE_ID, i as validateOption, l as VERSION, n as createBundlerOptions, o as LOG_LEVEL_WARN, s as arraify, t as RolldownBuild } from "./rolldown-build-D_uxS53o.js";
|
|
3
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-Cqi7XTjG.js";
|
|
4
4
|
import { BindingMagicString, BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
5
5
|
|
|
6
6
|
//#region src/api/rolldown/index.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-C28dTP71.mjs";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as VERSION, $t as OutputOptions, A as TransformResult, At as watch, Bt as AdvancedChunksGroup, C as Plugin, Ct as InternalModuleFormat, D as RolldownPlugin, Dt as ChecksOptions, E as ResolvedId, Et as TransformOptions, Ft as rolldown, Gt as CodeSplittingNameFunction, Ht as ChunkFileNamesFunction, It as RolldownBuild, Jt as GeneratedCodeOptions, Kt as CodeSplittingOptions, Lt as BuildOptions, Mt as RolldownWatcherEvent, Nt as RolldownWatcherWatcherEventMap, O as RolldownPluginOption, Ot as LoggingFunction, Pt as WatchOptions, Q as RUNTIME_MODULE_ID, Qt as ModuleFormat, Rt as build, S as PartialResolvedId, St as RolldownFsModule, T as ResolveIdResult, Tt as NormalizedInputOptions, Ut as ChunkingContext, Vt as AdvancedChunksOptions, Wt as CodeSplittingGroup, X as BindingMagicString, Xt as GlobalsFunction, Yt as GeneratedCodePreset, Z as PreRenderedChunk, Zt as MinifyOptions, _ as LoadResult, _t as HookFilter, a as ExternalOption, an as RolldownOutput, at as EmittedAsset, b as ObjectHook, bt as RolldownDirectoryEntry, c as InputOptions, cn as ModuleInfo, ct as EmittedPrebuiltChunk, d as WatcherOptions, dt as PluginContextResolveOptions, en as PreRenderedAsset, et as ExistingRawSourceMap, f as AsyncPluginHooks, ft as DefineParallelPluginResult, g as ImportKind, gt as GeneralHookFilter, h as HookFilterExtension, ht as PluginContextMeta, i as RolldownOptions, in as RenderedModule, it as TransformPluginContext, jt as RolldownWatcher, k as SourceDescription, kt as WarningHandlerWithDefault, l as ModuleTypes, ln as SourcemapIgnoreListOption, lt as GetModuleInfo, m as FunctionPluginHooks, mt as MinimalPluginContext, n as RolldownOptionsFunction, nn as OutputChunk, nt as OutputBundle, o as ExternalOptionFunction, on as SourceMap, ot as EmittedChunk, p as CustomPluginOptions, qt as CommentsOptions, r as defineConfig, rn as RenderedChunk, rt as TreeshakingOptions, s as InputOption, st as EmittedFile, t as ConfigExport, tn as OutputAsset, tt as SourceMapInput, u as OptimizationOptions, ut as PluginContext, v as ModuleOptions, vt as ModuleTypeFilter, w as ResolveIdExtraOptions, wt as NormalizedOutputOptions, x as ParallelPluginHooks, xt as RolldownFileStats, y as ModuleType, yt as BufferEncoding, zt as AddonFunction } from "./shared/define-config-CMsxCx69.mjs";
|
|
3
3
|
import { o as PartialNull } from "./shared/utils-DOXNRW_3.mjs";
|
|
4
|
-
|
|
5
|
-
export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, BindingMagicString, type BufferEncoding, type BuildOptions, type ChecksOptions, type ChunkFileNamesFunction, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
|
|
4
|
+
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, 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, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-BWJtu1lP.mjs";
|
|
2
2
|
import "./shared/normalize-string-or-regex-CdT2cmt4.mjs";
|
|
3
|
-
import { b as VERSION, y as RUNTIME_MODULE_ID } from "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/rolldown-build-
|
|
3
|
+
import { b as VERSION, y as RUNTIME_MODULE_ID } from "./shared/bindingify-input-options-CntM6OGD.mjs";
|
|
4
|
+
import "./shared/rolldown-build-Bvz-G_y6.mjs";
|
|
5
5
|
import "./shared/error-DTJQ7tjB.mjs";
|
|
6
|
-
import "./shared/parse-
|
|
7
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
6
|
+
import "./shared/parse-TCwR4L_P.mjs";
|
|
7
|
+
import { t as rolldown } from "./shared/rolldown-aTvfnZNF.mjs";
|
|
8
8
|
import { t as defineConfig } from "./shared/define-config-BVG4QvnP.mjs";
|
|
9
9
|
import { isMainThread } from "node:worker_threads";
|
|
10
10
|
import { BindingMagicString, initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./shared/normalize-string-or-regex-CdT2cmt4.mjs";
|
|
2
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
2
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CntM6OGD.mjs";
|
|
3
3
|
import "./shared/error-DTJQ7tjB.mjs";
|
|
4
|
-
import "./shared/parse-
|
|
4
|
+
import "./shared/parse-TCwR4L_P.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
7
7
|
|
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-CCc_0vhs.mjs";
|
|
2
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-TCwR4L_P.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/parse-ast-index.ts
|
|
5
5
|
function wrap(result, filename, sourceText) {
|
|
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-B0X1hEA4.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-Cqi7XTjG.js";
|
|
3
3
|
import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
4
4
|
|
|
5
5
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
@@ -452,7 +452,7 @@ const win32 = /* @__PURE__ */ mix(";");
|
|
|
452
452
|
|
|
453
453
|
//#endregion
|
|
454
454
|
//#region package.json
|
|
455
|
-
var version = "1.0.0-rc.
|
|
455
|
+
var version = "1.0.0-rc.5";
|
|
456
456
|
|
|
457
457
|
//#endregion
|
|
458
458
|
//#region src/constants/version.ts
|
|
@@ -2051,7 +2051,8 @@ const ChecksOptionsSchema = strictObject({
|
|
|
2051
2051
|
couldNotCleanDirectory: pipe(optional(boolean()), description("Whether to emit warnings when Rolldown could not clean the output directory")),
|
|
2052
2052
|
pluginTimings: pipe(optional(boolean()), description("Whether to emit warnings when plugins take significant time during the build process")),
|
|
2053
2053
|
duplicateShebang: pipe(optional(boolean()), description("Whether to emit warnings when both the code and postBanner contain shebang")),
|
|
2054
|
-
unsupportedTsconfigOption: pipe(optional(boolean()), description("Whether to emit warnings when a tsconfig option or combination of options is not supported"))
|
|
2054
|
+
unsupportedTsconfigOption: pipe(optional(boolean()), description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
2055
|
+
ineffectiveDynamicImport: pipe(optional(boolean()), description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
|
|
2055
2056
|
});
|
|
2056
2057
|
isTypeTrue();
|
|
2057
2058
|
const CompressOptionsKeepNamesSchema = strictObject({
|
|
@@ -2275,7 +2276,9 @@ const AdvancedChunksSchema = strictObject({
|
|
|
2275
2276
|
minShareCount: optional(number()),
|
|
2276
2277
|
maxSize: optional(number()),
|
|
2277
2278
|
minModuleSize: optional(number()),
|
|
2278
|
-
maxModuleSize: optional(number())
|
|
2279
|
+
maxModuleSize: optional(number()),
|
|
2280
|
+
entriesAware: optional(boolean()),
|
|
2281
|
+
entriesAwareMergeThreshold: optional(number())
|
|
2279
2282
|
})))
|
|
2280
2283
|
});
|
|
2281
2284
|
isTypeTrue();
|
|
@@ -2565,7 +2568,7 @@ function bindingAssetSource(source) {
|
|
|
2565
2568
|
}
|
|
2566
2569
|
|
|
2567
2570
|
//#endregion
|
|
2568
|
-
//#region \0@oxc-project+runtime@0.
|
|
2571
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/decorate.js
|
|
2569
2572
|
function __decorate(decorators, target, key, desc) {
|
|
2570
2573
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2571
2574
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2990,6 +2993,7 @@ function transformModuleInfo(info, option) {
|
|
|
2990
2993
|
dynamicallyImportedIds: info.dynamicallyImportedIds,
|
|
2991
2994
|
exports: info.exports,
|
|
2992
2995
|
isEntry: info.isEntry,
|
|
2996
|
+
inputFormat: info.inputFormat,
|
|
2993
2997
|
...option
|
|
2994
2998
|
};
|
|
2995
2999
|
}
|
|
@@ -3094,7 +3098,7 @@ function exclude(expr) {
|
|
|
3094
3098
|
}
|
|
3095
3099
|
|
|
3096
3100
|
//#endregion
|
|
3097
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
3101
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
3098
3102
|
function e(e, t, n) {
|
|
3099
3103
|
let r = (n) => e(n, ...t);
|
|
3100
3104
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -3104,7 +3108,7 @@ function e(e, t, n) {
|
|
|
3104
3108
|
}
|
|
3105
3109
|
|
|
3106
3110
|
//#endregion
|
|
3107
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
3111
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/purry.js
|
|
3108
3112
|
function t$1(t, n, r) {
|
|
3109
3113
|
let i = t.length - n.length;
|
|
3110
3114
|
if (i === 0) return t(...n);
|
|
@@ -3113,7 +3117,7 @@ function t$1(t, n, r) {
|
|
|
3113
3117
|
}
|
|
3114
3118
|
|
|
3115
3119
|
//#endregion
|
|
3116
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
3120
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/partition.js
|
|
3117
3121
|
function t(...t) {
|
|
3118
3122
|
return t$1(n, t);
|
|
3119
3123
|
}
|
package/dist/shared/{bindingify-input-options-B32m-wO8.mjs → bindingify-input-options-CntM6OGD.mjs}
RENAMED
|
@@ -8,7 +8,7 @@ import path from "node:path";
|
|
|
8
8
|
import fsp from "node:fs/promises";
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-rc.
|
|
11
|
+
var version = "1.0.0-rc.5";
|
|
12
12
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -227,7 +227,7 @@ function bindingAssetSource(source) {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
//#endregion
|
|
230
|
-
//#region \0@oxc-project+runtime@0.
|
|
230
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/decorate.js
|
|
231
231
|
function __decorate(decorators, target, key, desc) {
|
|
232
232
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
233
233
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -592,6 +592,7 @@ function transformModuleInfo(info, option) {
|
|
|
592
592
|
dynamicallyImportedIds: info.dynamicallyImportedIds,
|
|
593
593
|
exports: info.exports,
|
|
594
594
|
isEntry: info.isEntry,
|
|
595
|
+
inputFormat: info.inputFormat,
|
|
595
596
|
...option
|
|
596
597
|
};
|
|
597
598
|
}
|
|
@@ -612,7 +613,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
612
613
|
}
|
|
613
614
|
|
|
614
615
|
//#endregion
|
|
615
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
616
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
616
617
|
function e(e, t, n) {
|
|
617
618
|
let r = (n) => e(n, ...t);
|
|
618
619
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -622,7 +623,7 @@ function e(e, t, n) {
|
|
|
622
623
|
}
|
|
623
624
|
|
|
624
625
|
//#endregion
|
|
625
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
626
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/purry.js
|
|
626
627
|
function t$1(t, n, r) {
|
|
627
628
|
let i = t.length - n.length;
|
|
628
629
|
if (i === 0) return t(...n);
|
|
@@ -631,7 +632,7 @@ function t$1(t, n, r) {
|
|
|
631
632
|
}
|
|
632
633
|
|
|
633
634
|
//#endregion
|
|
634
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
635
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/partition.js
|
|
635
636
|
function t(...t) {
|
|
636
637
|
return t$1(n, t);
|
|
637
638
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-C28dTP71.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Dt as Program } from "./types-CMaRlYYn.mjs";
|
|
3
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-DOXNRW_3.mjs";
|
|
4
4
|
import { BindingHookResolveIdExtraArgs, BindingMagicString, BindingPluginContextResolveOptions, BindingRenderedChunk, BindingTransformHookExtraArgs, ExternalMemoryStatus, JsxOptions, MinifyOptions, ParserOptions, PreRenderedChunk, TransformOptions } from "../binding.cjs";
|
|
5
5
|
import { BindingWatcherBundler } from "../../binding.cjs";
|
|
6
|
+
import { BindingMagicString as BindingMagicString$1, PreRenderedChunk as PreRenderedChunk$1 } from "./binding.cjs";
|
|
6
7
|
|
|
7
8
|
//#region src/types/misc.d.ts
|
|
8
9
|
/** @inline */
|
|
@@ -51,6 +52,16 @@ interface ModuleInfo extends ModuleOptions {
|
|
|
51
52
|
* Whether this module is a user- or plugin-defined entry point.
|
|
52
53
|
*/
|
|
53
54
|
isEntry: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The detected format of the module, based on both its syntax and module definition
|
|
57
|
+
* metadata (such as `package.json` `type` and file extensions like `.mjs`/`.cjs`/`.mts`/`.cts`).
|
|
58
|
+
* - "esm" for ES modules (has `import`/`export` statements or is defined as ESM by module metadata)
|
|
59
|
+
* - "cjs" for CommonJS modules (uses `module.exports`, `exports`, top-level `return`, or is defined as CommonJS by module metadata)
|
|
60
|
+
* - "unknown" when the format could not be determined from either syntax or module definition metadata
|
|
61
|
+
*
|
|
62
|
+
* @experimental
|
|
63
|
+
*/
|
|
64
|
+
inputFormat: "es" | "cjs" | "unknown";
|
|
54
65
|
}
|
|
55
66
|
//#endregion
|
|
56
67
|
//#region src/utils/asset-source.d.ts
|
|
@@ -356,7 +367,7 @@ interface OutputOptions {
|
|
|
356
367
|
* - `'iife'` stands for [Immediately Invoked Function Expression](https://developer.mozilla.org/en-US/docs/Glossary/IIFE).
|
|
357
368
|
* - `'umd'` stands for [Universal Module Definition](https://github.com/umdjs/umd).
|
|
358
369
|
*
|
|
359
|
-
* @default '
|
|
370
|
+
* @default 'es'
|
|
360
371
|
*
|
|
361
372
|
*
|
|
362
373
|
*/
|
|
@@ -1046,6 +1057,36 @@ type CodeSplittingGroup = {
|
|
|
1046
1057
|
* @default 0
|
|
1047
1058
|
*/
|
|
1048
1059
|
minModuleSize?: number;
|
|
1060
|
+
/**
|
|
1061
|
+
* When `false` (default), all matching modules are merged into a single chunk.
|
|
1062
|
+
* Every entry that uses any of these modules must load the entire chunk — even
|
|
1063
|
+
* modules it doesn't need.
|
|
1064
|
+
*
|
|
1065
|
+
* When `true`, matching modules are grouped by which entries actually import them.
|
|
1066
|
+
* Modules shared by the same set of entries go into the same chunk, while modules
|
|
1067
|
+
* shared by a different set go into a separate chunk. This way, each entry only
|
|
1068
|
+
* loads the code it actually uses.
|
|
1069
|
+
*
|
|
1070
|
+
* Example: entries A, B, C all match a `"vendor"` group.
|
|
1071
|
+
* - `moduleX` is used by A, B, C
|
|
1072
|
+
* - `moduleY` is used by A, B only
|
|
1073
|
+
*
|
|
1074
|
+
* With `entriesAware: false` → one `vendor.js` chunk with both modules; C loads `moduleY` unnecessarily.
|
|
1075
|
+
* With `entriesAware: true` → `vendor.js` (moduleX, loaded by all) + `vendor2.js` (moduleY, loaded by A and B only).
|
|
1076
|
+
*
|
|
1077
|
+
* @default false
|
|
1078
|
+
*/
|
|
1079
|
+
entriesAware?: boolean;
|
|
1080
|
+
/**
|
|
1081
|
+
* Size threshold in bytes for merging small `entriesAware` subgroups into the
|
|
1082
|
+
* closest neighboring subgroup.
|
|
1083
|
+
*
|
|
1084
|
+
* This option only works when {@linkcode CodeSplittingGroup.entriesAware | entriesAware}
|
|
1085
|
+
* is `true`. Set to `0` to disable subgroup merging.
|
|
1086
|
+
*
|
|
1087
|
+
* @default 0
|
|
1088
|
+
*/
|
|
1089
|
+
entriesAwareMergeThreshold?: number;
|
|
1049
1090
|
};
|
|
1050
1091
|
/**
|
|
1051
1092
|
* Alias for {@linkcode CodeSplittingGroup}. Use this type for the `codeSplitting.groups` option.
|
|
@@ -1480,6 +1521,11 @@ interface ChecksOptions {
|
|
|
1480
1521
|
* @default true
|
|
1481
1522
|
* */
|
|
1482
1523
|
unsupportedTsconfigOption?: boolean;
|
|
1524
|
+
/**
|
|
1525
|
+
* Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting.
|
|
1526
|
+
* @default true
|
|
1527
|
+
* */
|
|
1528
|
+
ineffectiveDynamicImport?: boolean;
|
|
1483
1529
|
}
|
|
1484
1530
|
//#endregion
|
|
1485
1531
|
//#region src/options/transform-options.d.ts
|
|
@@ -2309,7 +2355,7 @@ type TreeshakingOptions = {
|
|
|
2309
2355
|
*
|
|
2310
2356
|
* See [related Oxc documentation](https://oxc.rs/docs/guide/usage/minifier/dead-code-elimination#ignoring-invalid-import-statement-side-effects) for more details.
|
|
2311
2357
|
*
|
|
2312
|
-
* @default
|
|
2358
|
+
* @default false
|
|
2313
2359
|
*/
|
|
2314
2360
|
invalidImportSideEffects?: boolean;
|
|
2315
2361
|
/**
|
|
@@ -3713,4 +3759,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
3713
3759
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
3714
3760
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
3715
3761
|
//#endregion
|
|
3716
|
-
export {
|
|
3762
|
+
export { VERSION as $, OutputOptions as $t, TransformResult as A, watch as At, id as B, AdvancedChunksGroup as Bt, Plugin as C, InternalModuleFormat as Ct, RolldownPlugin as D, ChecksOptions as Dt, ResolvedId as E, TransformOptions$1 as Et, TopLevelFilterExpression as F, rolldown as Ft, moduleType as G, CodeSplittingNameFunction as Gt, include as H, ChunkFileNamesFunction as Ht, and as I, RolldownBuild as It, queries as J, GeneratedCodeOptions as Jt, not as K, CodeSplittingOptions as Kt, code as L, BuildOptions as Lt, FilterExpression as M, RolldownWatcherEvent as Mt, FilterExpressionKind as N, RolldownWatcherWatcherEventMap as Nt, RolldownPluginOption as O, LoggingFunction as Ot, QueryFilterObject as P, WatchOptions as Pt, RUNTIME_MODULE_ID as Q, ModuleFormat as Qt, exclude as R, build as Rt, PartialResolvedId as S, RolldownFsModule as St, ResolveIdResult as T, NormalizedInputOptions as Tt, interpreter as U, ChunkingContext as Ut, importerId as V, AdvancedChunksOptions as Vt, interpreterImpl as W, CodeSplittingGroup as Wt, BindingMagicString$1 as X, GlobalsFunction as Xt, query as Y, GeneratedCodePreset as Yt, PreRenderedChunk$1 as Z, MinifyOptions$1 as Zt, LoadResult as _, HookFilter as _t, ExternalOption as a, RolldownOutput as an, EmittedAsset as at, ObjectHook as b, RolldownDirectoryEntry as bt, InputOptions as c, ModuleInfo as cn, EmittedPrebuiltChunk as ct, WatcherOptions as d, PluginContextResolveOptions as dt, PreRenderedAsset as en, ExistingRawSourceMap as et, AsyncPluginHooks as f, DefineParallelPluginResult as ft, ImportKind as g, GeneralHookFilter as gt, HookFilterExtension as h, PluginContextMeta as ht, RolldownOptions as i, RenderedModule as in, TransformPluginContext as it, withFilter as j, RolldownWatcher as jt, SourceDescription as k, WarningHandlerWithDefault as kt, ModuleTypes as l, SourcemapIgnoreListOption as ln, GetModuleInfo as lt, FunctionPluginHooks as m, MinimalPluginContext as mt, RolldownOptionsFunction as n, OutputChunk as nn, OutputBundle as nt, ExternalOptionFunction as o, SourceMap$1 as on, EmittedChunk as ot, CustomPluginOptions as p, defineParallelPlugin as pt, or as q, CommentsOptions as qt, defineConfig as r, RenderedChunk as rn, TreeshakingOptions as rt, InputOption as s, freeExternalMemory as sn, EmittedFile as st, ConfigExport as t, OutputAsset as tn, SourceMapInput as tt, OptimizationOptions as u, PluginContext as ut, ModuleOptions as v, ModuleTypeFilter as vt, ResolveIdExtraOptions as w, NormalizedOutputOptions as wt, ParallelPluginHooks as x, RolldownFileStats as xt, ModuleType as y, BufferEncoding as yt, exprInterpreter as z, AddonFunction as zt };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a as RolldownLog } from "./logging-C28dTP71.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/get-log-filter.d.ts
|
|
4
|
+
type GetLogFilter = (filters: string[]) => (log: RolldownLog) => boolean;
|
|
5
|
+
declare const getLogFilter: GetLogFilter;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { getLogFilter as n, GetLogFilter as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parse, parseSync } from "../rolldown-binding.wasi.cjs";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.114.0/node_modules/oxc-parser/src-js/wrap.js
|
|
4
4
|
function wrap(result) {
|
|
5
5
|
let program, module, comments, errors;
|
|
6
6
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-CCc_0vhs.mjs";
|
|
2
2
|
import { n as BuiltinPlugin } from "./normalize-string-or-regex-CdT2cmt4.mjs";
|
|
3
|
-
import { _ as LOG_LEVEL_WARN, a as transformToRollupOutput, b as VERSION, c as transformAssetSource, d as MinimalPluginContextImpl, f as normalizeHook, g as LOG_LEVEL_INFO, h as LOG_LEVEL_ERROR, i as transformModuleInfo, l as lazyProp, m as LOG_LEVEL_DEBUG, o as transformRenderedChunk, p as normalizeLog, s as __decorate, t as bindingifyInputOptions, u as PlainObjectLike, v as logLevelPriority } from "./bindingify-input-options-
|
|
3
|
+
import { _ as LOG_LEVEL_WARN, a as transformToRollupOutput, b as VERSION, c as transformAssetSource, d as MinimalPluginContextImpl, f as normalizeHook, g as LOG_LEVEL_INFO, h as LOG_LEVEL_ERROR, i as transformModuleInfo, l as lazyProp, m as LOG_LEVEL_DEBUG, o as transformRenderedChunk, p as normalizeLog, s as __decorate, t as bindingifyInputOptions, u as PlainObjectLike, v as logLevelPriority } from "./bindingify-input-options-CntM6OGD.mjs";
|
|
4
4
|
import { v as unimplemented } from "./composable-filters-CIxSuZSM.mjs";
|
|
5
5
|
import { i as unwrapBindingResult } from "./error-DTJQ7tjB.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
@@ -1594,7 +1594,8 @@ const ChecksOptionsSchema = strictObject({
|
|
|
1594
1594
|
couldNotCleanDirectory: pipe(optional(boolean()), description("Whether to emit warnings when Rolldown could not clean the output directory")),
|
|
1595
1595
|
pluginTimings: pipe(optional(boolean()), description("Whether to emit warnings when plugins take significant time during the build process")),
|
|
1596
1596
|
duplicateShebang: pipe(optional(boolean()), description("Whether to emit warnings when both the code and postBanner contain shebang")),
|
|
1597
|
-
unsupportedTsconfigOption: pipe(optional(boolean()), description("Whether to emit warnings when a tsconfig option or combination of options is not supported"))
|
|
1597
|
+
unsupportedTsconfigOption: pipe(optional(boolean()), description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
1598
|
+
ineffectiveDynamicImport: pipe(optional(boolean()), description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
|
|
1598
1599
|
});
|
|
1599
1600
|
isTypeTrue();
|
|
1600
1601
|
const CompressOptionsKeepNamesSchema = strictObject({
|
|
@@ -1818,7 +1819,9 @@ const AdvancedChunksSchema = strictObject({
|
|
|
1818
1819
|
minShareCount: optional(number()),
|
|
1819
1820
|
maxSize: optional(number()),
|
|
1820
1821
|
minModuleSize: optional(number()),
|
|
1821
|
-
maxModuleSize: optional(number())
|
|
1822
|
+
maxModuleSize: optional(number()),
|
|
1823
|
+
entriesAware: optional(boolean()),
|
|
1824
|
+
entriesAwareMergeThreshold: optional(number())
|
|
1822
1825
|
})))
|
|
1823
1826
|
});
|
|
1824
1827
|
isTypeTrue();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@oxc-project+types@0.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@oxc-project+types@0.114.0/node_modules/@oxc-project/types/types.d.ts
|
|
2
2
|
// Auto-generated code, DO NOT EDIT DIRECTLY!
|
|
3
3
|
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/typescript.rs`.
|
|
4
4
|
interface Program extends Span {
|
|
@@ -1297,4 +1297,4 @@ interface Span {
|
|
|
1297
1297
|
type ModuleKind = "script" | "module" | "commonjs";
|
|
1298
1298
|
type Node = Program | IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | ThisExpression | ArrayExpression | ObjectExpression | ObjectProperty | TemplateLiteral | TaggedTemplateExpression | TemplateElement | ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression | CallExpression | NewExpression | MetaProperty | SpreadElement | UpdateExpression | UnaryExpression | BinaryExpression | PrivateInExpression | LogicalExpression | ConditionalExpression | AssignmentExpression | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression | Super | AwaitExpression | ChainExpression | ParenthesizedExpression | Directive | Hashbang | BlockStatement | VariableDeclaration | VariableDeclarator | EmptyStatement | ExpressionStatement | IfStatement | DoWhileStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | ContinueStatement | BreakStatement | ReturnStatement | WithStatement | SwitchStatement | SwitchCase | LabeledStatement | ThrowStatement | TryStatement | CatchClause | DebuggerStatement | AssignmentPattern | ObjectPattern | BindingProperty | ArrayPattern | BindingRestElement | Function | FunctionBody | ArrowFunctionExpression | YieldExpression | Class | ClassBody | MethodDefinition | PropertyDefinition | PrivateIdentifier | StaticBlock | AccessorProperty | ImportExpression | ImportDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName | JSXMemberExpression | JSXExpressionContainer | JSXEmptyExpression | JSXAttribute | JSXSpreadAttribute | JSXIdentifier | JSXSpreadChild | JSXText | TSThisParameter | TSEnumDeclaration | TSEnumBody | TSEnumMember | TSTypeAnnotation | TSLiteralType | TSConditionalType | TSUnionType | TSIntersectionType | TSParenthesizedType | TSTypeOperator | TSArrayType | TSIndexedAccessType | TSTupleType | TSNamedTupleMember | TSOptionalType | TSRestType | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference | TSQualifiedName | TSTypeParameterInstantiation | TSTypeParameter | TSTypeParameterDeclaration | TSTypeAliasDeclaration | TSClassImplements | TSInterfaceDeclaration | TSInterfaceBody | TSPropertySignature | TSIndexSignature | TSCallSignatureDeclaration | TSMethodSignature | TSConstructSignatureDeclaration | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate | TSModuleDeclaration | TSGlobalDeclaration | TSModuleBlock | TSTypeLiteral | TSInferType | TSTypeQuery | TSImportType | TSImportTypeQualifiedName | TSFunctionType | TSConstructorType | TSMappedType | TSTemplateLiteralType | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | Decorator | TSExportAssignment | TSNamespaceExportDeclaration | TSInstantiationExpression | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType | ParamPattern;
|
|
1299
1299
|
//#endregion
|
|
1300
|
-
export { Program as t };
|
|
1300
|
+
export { JSXClosingElement as $, TaggedTemplateExpression as $n, TSFunctionType as $t, ExportAllDeclaration as A, TSRestType as An, ReturnStatement as At, IdentifierName as B, TSTypeAssertion as Bn, TSAsExpression as Bt, ClassBody as C, TSNumberKeyword as Cn, ObjectPattern as Ct, Decorator as D, TSParenthesizedType as Dn, Program as Dt, DebuggerStatement as E, TSParameterProperty as En, PrivateIdentifier as Et, ForInStatement as F, TSThisParameter as Fn, Super as Ft, ImportDefaultSpecifier as G, TSTypeParameterInstantiation as Gn, TSConditionalType as Gt, IfStatement as H, TSTypeOperator as Hn, TSBooleanKeyword as Ht, ForOfStatement as I, TSThisType as In, SwitchCase as It, ImportSpecifier as J, TSTypeReference as Jn, TSEnumBody as Jt, ImportExpression as K, TSTypePredicate as Kn, TSConstructSignatureDeclaration as Kt, ForStatement as L, TSTupleType as Ln, SwitchStatement as Lt, ExportNamedDeclaration as M, TSStringKeyword as Mn, SpreadElement as Mt, ExportSpecifier as N, TSSymbolKeyword as Nn, StaticBlock as Nt, DoWhileStatement as O, TSPropertySignature as On, PropertyDefinition as Ot, ExpressionStatement as P, TSTemplateLiteralType as Pn, StringLiteral as Pt, JSXAttribute as Q, TSVoidKeyword as Qn, TSExternalModuleReference as Qt, FormalParameterRest as R, TSTypeAliasDeclaration as Rn, TSAnyKeyword as Rt, Class as S, TSNullKeyword as Sn, ObjectExpression as St, ContinueStatement as T, TSOptionalType as Tn, ParenthesizedExpression as Tt, ImportAttribute as U, TSTypeParameter as Un, TSCallSignatureDeclaration as Ut, IdentifierReference as V, TSTypeLiteral as Vn, TSBigIntKeyword as Vt, ImportDeclaration as W, TSTypeParameterDeclaration as Wn, TSClassImplements as Wt, JSDocNullableType as X, TSUnionType as Xn, TSEnumMember as Xt, JSDocNonNullableType as Y, TSUndefinedKeyword as Yn, TSEnumDeclaration as Yt, JSDocUnknownType as Z, TSUnknownKeyword as Zn, TSExportAssignment as Zt, BooleanLiteral as _, TSModuleDeclaration as _n, MetaProperty as _t, AssignmentExpression as a, TSIndexedAccessType as an, UnaryExpression as ar, JSXIdentifier as at, CatchClause as b, TSNeverKeyword as bn, NullLiteral as bt, AssignmentTargetPropertyProperty as c, TSInterfaceBody as cn, VariableDeclaration as cr, JSXOpeningElement as ct, BigIntLiteral as d, TSIntersectionType as dn, WithStatement as dr, JSXSpreadChild as dt, TSGlobalDeclaration as en, TemplateElement as er, JSXClosingFragment as et, BinaryExpression as f, TSIntrinsicKeyword as fn, YieldExpression as fr, JSXText as ft, BlockStatement as g, TSModuleBlock as gn, MemberExpression as gt, BindingRestElement as h, TSMethodSignature as hn, LogicalExpression as ht, ArrowFunctionExpression as i, TSIndexSignatureName as in, TryStatement as ir, JSXFragment as it, ExportDefaultDeclaration as j, TSSatisfiesExpression as jn, SequenceExpression as jt, EmptyStatement as k, TSQualifiedName as kn, RegExpLiteral as kt, AssignmentTargetRest as l, TSInterfaceDeclaration as ln, VariableDeclarator as lr, JSXOpeningFragment as lt, BindingProperty as m, TSMappedType as mn, LabeledStatement as mt, ArrayExpression as n, TSImportType as nn, ThisExpression as nr, JSXEmptyExpression as nt, AssignmentPattern as o, TSInferType as on, UpdateExpression as or, JSXMemberExpression as ot, BindingIdentifier as p, TSLiteralType as pn, LabelIdentifier as pt, ImportNamespaceSpecifier as q, TSTypeQuery as qn, TSConstructorType as qt, ArrayPattern as r, TSIndexSignature as rn, ThrowStatement as rr, JSXExpressionContainer as rt, AssignmentTargetProperty as s, TSInstantiationExpression as sn, V8IntrinsicExpression as sr, JSXNamespacedName as st, AccessorProperty as t, TSImportEqualsDeclaration as tn, TemplateLiteral as tr, JSXElement as tt, AwaitExpression as u, TSInterfaceHeritage as un, WhileStatement as ur, JSXSpreadAttribute as ut, BreakStatement as v, TSNamedTupleMember as vn, MethodDefinition as vt, ConditionalExpression as w, TSObjectKeyword as wn, ObjectProperty as wt, ChainExpression as x, TSNonNullExpression as xn, NumericLiteral as xt, CallExpression as y, TSNamespaceExportDeclaration as yn, NewExpression as yt, Function as z, TSTypeAnnotation as zn, TSArrayType as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as logMultiplyNotifyOption } from "./logs-CCc_0vhs.mjs";
|
|
2
|
-
import { _ as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
2
|
+
import { _ as LOG_LEVEL_WARN } from "./bindingify-input-options-CntM6OGD.mjs";
|
|
3
3
|
import { h as arraify } from "./composable-filters-CIxSuZSM.mjs";
|
|
4
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
4
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-Bvz-G_y6.mjs";
|
|
5
5
|
import { t as aggregateBindingErrorsIntoJsError } from "./error-DTJQ7tjB.mjs";
|
|
6
6
|
import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-
|
|
1
|
+
import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-Cqi7XTjG.js";
|
|
2
2
|
import { TsconfigCache, collapseSourcemaps, enhancedTransform, enhancedTransformSync, minify, minifySync } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/minify.ts
|