@rolldown/browser 1.0.0-rc.16 → 1.0.0-rc.17
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-DyjphrNB.js → error-Dh25MMQy.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/index.browser.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/{resolve-tsconfig-wB7yLsyK.js → resolve-tsconfig-D9b_5AH9.js} +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-DyzPc6vz.js → rolldown-build-BaQhCalv.js} +4 -4
- package/dist/shared/{bindingify-input-options-BM_ALGnD.mjs → bindingify-input-options-CAamVRUH.mjs} +2 -2
- package/dist/shared/{define-config-iFrqKPOQ.d.mts → define-config-Bah0mfyR.d.mts} +14 -1
- package/dist/shared/{load-config-BbGXN4n6.mjs → load-config-CHcdd_88.mjs} +1 -1
- package/dist/shared/{parse-Cxk58XCS.mjs → parse-CEVlGaMp.mjs} +1 -1
- package/dist/shared/{rolldown-DrY5vEjL.mjs → rolldown-BHRUKOuQ.mjs} +1 -1
- package/dist/shared/{rolldown-build-BMFr9KVX.mjs → rolldown-build-D3SzYm67.mjs} +2 -2
- package/dist/shared/{watch-B_mctB4m.mjs → watch-DGUCNeAO.mjs} +2 -2
- package/dist/utils-index.browser.mjs +5 -5
- package/dist/utils-index.d.mts +1 -1
- package/dist/utils-index.mjs +4 -4
- package/package.json +4 -4
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-DGUCNeAO.mjs";
|
|
2
|
+
import { C as version, S as description } from "./shared/bindingify-input-options-CAamVRUH.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-D3SzYm67.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-BHRUKOuQ.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-CHcdd_88.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.127.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-CAamVRUH.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-CHcdd_88.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.127.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-BaQhCalv.js";
|
|
3
|
+
import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-Dh25MMQy.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-D9b_5AH9.js";
|
|
6
6
|
import * as binding from "./rolldown-binding.wasi-browser.js";
|
|
7
7
|
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
8
8
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-CaVxb0SV.mjs";
|
|
2
|
-
import { c as InputOptions, cn as freeExternalMemory, en as OutputOptions, on as RolldownOutput, pt as defineParallelPlugin, wt as NormalizedOutputOptions } from "./shared/define-config-
|
|
2
|
+
import { c as InputOptions, cn as freeExternalMemory, en as OutputOptions, on as RolldownOutput, pt as defineParallelPlugin, wt as NormalizedOutputOptions } from "./shared/define-config-Bah0mfyR.mjs";
|
|
3
3
|
import { t as BuiltinPlugin } from "./shared/utils-KRVeJqya.mjs";
|
|
4
4
|
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-kP3ISMFT.mjs";
|
|
5
5
|
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-B1JYJxhf.mjs";
|
|
@@ -1,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-CAamVRUH.mjs";
|
|
3
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-D3SzYm67.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-CEVlGaMp.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-Bah0mfyR.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-BaQhCalv.js";
|
|
3
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-Dh25MMQy.js";
|
|
4
4
|
import { BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
5
5
|
//#region src/api/rolldown/index.ts
|
|
6
6
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as PreRenderedChunk } from "./shared/binding-CaVxb0SV.mjs";
|
|
2
2
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-C6h4g8dA.mjs";
|
|
3
|
-
import { $ as 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-
|
|
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-Bah0mfyR.mjs";
|
|
4
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-DGUCNeAO.mjs";
|
|
2
|
+
import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-CAamVRUH.mjs";
|
|
3
|
+
import { t as rolldown } from "./shared/rolldown-BHRUKOuQ.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-CAamVRUH.mjs";
|
|
2
2
|
import { parentPort, workerData } from "node:worker_threads";
|
|
3
3
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
4
4
|
//#region src/parallel-plugin-worker.ts
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
|
|
2
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-CEVlGaMp.mjs";
|
|
3
3
|
//#region src/parse-ast-index.ts
|
|
4
4
|
function wrap(result, filename, sourceText) {
|
|
5
5
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-
|
|
1
|
+
import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-Dh25MMQy.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-Dh25MMQy.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.17";
|
|
458
458
|
//#endregion
|
|
459
459
|
//#region src/constants/index.ts
|
|
460
460
|
/**
|
|
@@ -747,7 +747,7 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
747
747
|
];
|
|
748
748
|
}
|
|
749
749
|
//#endregion
|
|
750
|
-
//#region ../../node_modules/.pnpm/valibot@1.3.1_typescript@6.0.
|
|
750
|
+
//#region ../../node_modules/.pnpm/valibot@1.3.1_typescript@6.0.3/node_modules/valibot/dist/index.mjs
|
|
751
751
|
let store$4;
|
|
752
752
|
/**
|
|
753
753
|
* Returns the global configuration.
|
|
@@ -2510,7 +2510,7 @@ function bindingAssetSource(source) {
|
|
|
2510
2510
|
return { inner: source };
|
|
2511
2511
|
}
|
|
2512
2512
|
//#endregion
|
|
2513
|
-
//#region \0@oxc-project+runtime@0.
|
|
2513
|
+
//#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
|
|
2514
2514
|
function __decorate(decorators, target, key, desc) {
|
|
2515
2515
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2516
2516
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
package/dist/shared/{bindingify-input-options-BM_ALGnD.mjs → bindingify-input-options-CAamVRUH.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.17";
|
|
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.127.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);
|
|
@@ -151,8 +151,21 @@ interface SourceMap {
|
|
|
151
151
|
}
|
|
152
152
|
/** @category Plugin APIs */
|
|
153
153
|
interface RenderedModule {
|
|
154
|
+
/**
|
|
155
|
+
* The rendered code of this module.
|
|
156
|
+
*
|
|
157
|
+
* The unused variables and functions are removed.
|
|
158
|
+
*/
|
|
154
159
|
readonly code: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* The length of the rendered code of this module.
|
|
162
|
+
*/
|
|
155
163
|
renderedLength: number;
|
|
164
|
+
/**
|
|
165
|
+
* The list of exported names from this module.
|
|
166
|
+
*
|
|
167
|
+
* The names that are not used are not included.
|
|
168
|
+
*/
|
|
156
169
|
renderedExports: string[];
|
|
157
170
|
}
|
|
158
171
|
/**
|
|
@@ -2470,7 +2483,7 @@ interface ExistingRawSourceMap {
|
|
|
2470
2483
|
mappings: string;
|
|
2471
2484
|
names?: string[];
|
|
2472
2485
|
sources?: (string | null)[];
|
|
2473
|
-
sourcesContent?: (string | null)[];
|
|
2486
|
+
sourcesContent?: (string | null | undefined)[];
|
|
2474
2487
|
sourceRoot?: string;
|
|
2475
2488
|
version?: number;
|
|
2476
2489
|
x_google_ignoreList?: number[];
|
|
@@ -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.127.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
function wrap(result) {
|
|
4
4
|
let program, module, comments, errors;
|
|
5
5
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
1
|
+
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-D3SzYm67.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-CAamVRUH.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";
|
|
@@ -211,7 +211,7 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
211
211
|
];
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region ../../node_modules/.pnpm/valibot@1.3.1_typescript@6.0.
|
|
214
|
+
//#region ../../node_modules/.pnpm/valibot@1.3.1_typescript@6.0.3/node_modules/valibot/dist/index.mjs
|
|
215
215
|
let store$4;
|
|
216
216
|
/**
|
|
217
217
|
* Returns the global configuration.
|
|
@@ -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-CAamVRUH.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-D3SzYm67.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-Dh25MMQy.js";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-D9b_5AH9.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.127.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.127.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.127.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|
package/dist/utils-index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $ as AssignmentPattern, $n as TSInferType, $r as UpdateExpression, $t as JSXMemberExpression, An as SwitchStatement, Ar as TSTupleType, At as ForStatement, Bn as TSConstructorType, Br as TSTypeQuery, Bt as ImportNamespaceSpecifier, Cn as ReturnStatement, Cr as TSRestType, Ct as ExportAllDeclaration, Dn as StringLiteral, Dr as TSTemplateLiteralType, Dt as ExpressionStatement, En as StaticBlock, Er as TSSymbolKeyword, Et as ExportSpecifier, Fn as TSBooleanKeyword, Fr as TSTypeOperator, Ft as IfStatement, Gn as TSExternalModuleReference, Gr as TSVoidKeyword, Gt as JSXAttribute, Hn as TSEnumDeclaration, Hr as TSUndefinedKeyword, Ht as JSDocNonNullableType, In as TSCallSignatureDeclaration, Ir as TSTypeParameter, It as ImportAttribute, J as AccessorProperty, Jn as TSImportEqualsDeclaration, Jr as TemplateLiteral, Jt as JSXElement, Kn as TSFunctionType, Kr as TaggedTemplateExpression, Kt as JSXClosingElement, Ln as TSClassImplements, Lr as TSTypeParameterDeclaration, Lt as ImportDeclaration, Mn as TSArrayType, Mr as TSTypeAnnotation, Mt as Function, Nn as TSAsExpression, Nr as TSTypeAssertion, Nt as IdentifierName, On as Super, Or as TSThisParameter, Ot as ForInStatement, Pn as TSBigIntKeyword, Pr as TSTypeLiteral, Pt as IdentifierReference, Q as AssignmentExpression, Qn as TSIndexedAccessType, Qr as UnaryExpression, Qt as JSXIdentifier, Rn as TSConditionalType, Rr as TSTypeParameterInstantiation, Rt as ImportDefaultSpecifier, Sn as RegExpLiteral, Sr as TSQualifiedName, St as EmptyStatement, Tn as SpreadElement, Tr as TSStringKeyword, Tt as ExportNamedDeclaration, Un as TSEnumMember, Ur as TSUnionType, Ut as JSDocNullableType, Vn as TSEnumBody, Vr as TSTypeReference, Vt as ImportSpecifier, Wn as TSExportAssignment, Wr as TSUnknownKeyword, Wt as JSDocUnknownType, X as ArrayPattern, Xn as TSIndexSignature, Xr as ThrowStatement, Xt as JSXExpressionContainer, Y as ArrayExpression, Yn as TSImportType, Yr as ThisExpression, Yt as JSXEmptyExpression, Z as ArrowFunctionExpression, Zn as TSIndexSignatureName, Zr as TryStatement, Zt as JSXFragment, _ as BindingTsconfigRawOptions, _n as ObjectProperty, _r as TSObjectKeyword, _t as ConditionalExpression, ai as YieldExpression, an as JSXText, ar as TSIntrinsicKeyword, at as BinaryExpression, bn as Program, br as TSParenthesizedType, bt as Decorator, cn as LogicalExpression, cr as TSMethodSignature, ct as BindingRestElement, dn as MethodDefinition, dr as TSNamedTupleMember, dt as BreakStatement, ei as V8IntrinsicExpression, en as JSXNamespacedName, er as TSInstantiationExpression, et as AssignmentTargetProperty, fn as NewExpression, fr as TSNamespaceExportDeclaration, ft as CallExpression, g as BindingTsconfigCompilerOptions, gn as ObjectPattern, gr as TSNumberKeyword, gt as ClassBody, hn as ObjectExpression, hr as TSNullKeyword, ht as Class, ii as WithStatement, in as JSXSpreadChild, ir as TSIntersectionType, it as BigIntLiteral, jn as TSAnyKeyword, jr as TSTypeAliasDeclaration, jt as FormalParameterRest, kn as SwitchCase, kr as TSThisType, kt as ForOfStatement, ln as MemberExpression, lr as TSModuleBlock, lt as BlockStatement, mn as NumericLiteral, mr as TSNonNullExpression, mt as ChainExpression, ni as VariableDeclarator, nn as JSXOpeningFragment, nr as TSInterfaceDeclaration, nt as AssignmentTargetRest, oi as types_d_exports, on as LabelIdentifier, or as TSLiteralType, ot as BindingIdentifier, pn as NullLiteral, pr as TSNeverKeyword, pt as CatchClause, qn as TSGlobalDeclaration, qr as TemplateElement, qt as JSXClosingFragment, ri as WhileStatement, rn as JSXSpreadAttribute, rr as TSInterfaceHeritage, rt as AwaitExpression, sn as LabeledStatement, sr as TSMappedType, st as BindingProperty, ti as VariableDeclaration, tn as JSXOpeningElement, tr as TSInterfaceBody, tt as AssignmentTargetPropertyProperty, un as MetaProperty, ur as TSModuleDeclaration, ut as BooleanLiteral, vn as ParenthesizedExpression, vr as TSOptionalType, vt as ContinueStatement, wn as SequenceExpression, wr as TSSatisfiesExpression, wt as ExportDefaultDeclaration, xn as PropertyDefinition, xr as TSPropertySignature, xt as DoWhileStatement, yn as PrivateIdentifier, yr as TSParameterProperty, yt as DebuggerStatement, zn as TSConstructSignatureDeclaration, zr as TSTypePredicate, zt as ImportExpression } from "./shared/binding-CaVxb0SV.mjs";
|
|
2
2
|
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-kP3ISMFT.mjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.127.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-CEVlGaMp.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.127.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.127.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.127.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.17",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"registry": "https://registry.npmjs.org/"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@emnapi/core": "
|
|
57
|
-
"@emnapi/runtime": "
|
|
58
|
-
"@napi-rs/wasm-runtime": "^1.1.
|
|
56
|
+
"@emnapi/core": "1.10.0",
|
|
57
|
+
"@emnapi/runtime": "1.10.0",
|
|
58
|
+
"@napi-rs/wasm-runtime": "^1.1.4"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "pnpm run build:debug",
|