@rolldown/browser 1.0.0-beta.48 → 1.0.0-beta.49

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 CHANGED
@@ -1,9 +1,9 @@
1
- import { C as version, S as description, _ as getOutputCliKeys, b as styleText$1, g as getInputCliKeys, h as getCliSchemaInfo, i as watch, o as rolldown, v as validateCliOptions, w as onExit } from "./shared/src-CvsuRKGv.mjs";
1
+ import { C as version, S as description, _ as getOutputCliKeys, b as styleText$1, g as getInputCliKeys, h as getCliSchemaInfo, i as watch, o as rolldown, v as validateCliOptions, w as onExit } from "./shared/src-CZ_U2fML.mjs";
2
2
  import "./shared/logs-CPsamAuj.mjs";
3
3
  import "./shared/normalize-string-or-regex-CbDij6KB.mjs";
4
4
  import { d as arraify } from "./shared/composable-filters-CBpK2Fbc.mjs";
5
5
  import "./shared/parse-ast-index-D9jH_38U.mjs";
6
- import { t as loadConfig } from "./shared/load-config-B-QIvCpC.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-DQI-2sfE.mjs";
7
7
  import path, { sep } from "node:path";
8
8
  import { formatWithOptions, parseArgs } from "node:util";
9
9
  import process$1 from "node:process";
package/dist/config.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as ConfigExport, t as defineConfig } from "./shared/define-config-Dv3i4cxM.mjs";
1
+ import { n as ConfigExport, t as defineConfig } from "./shared/define-config-BAQ9c-hh.mjs";
2
2
  import "./shared/binding-B4uTNiw2.mjs";
3
3
  import "./shared/utils-CduIqa7h.mjs";
4
4
 
package/dist/config.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { C as version, r as defineConfig } from "./shared/src-CvsuRKGv.mjs";
1
+ import { C as version, r as defineConfig } from "./shared/src-CZ_U2fML.mjs";
2
2
  import "./shared/logs-CPsamAuj.mjs";
3
3
  import "./shared/normalize-string-or-regex-CbDij6KB.mjs";
4
4
  import "./shared/composable-filters-CBpK2Fbc.mjs";
5
5
  import "./shared/parse-ast-index-D9jH_38U.mjs";
6
- import { t as loadConfig } from "./shared/load-config-B-QIvCpC.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-DQI-2sfE.mjs";
7
7
 
8
8
  //#region src/config.ts
9
9
  const VERSION = version;
@@ -1,4 +1,4 @@
1
- import { c as createBundlerOptions, d as transformToRollupOutput, f as bindingifySourcemap, l as normalizeBindingResult, m as PluginDriver, p as validateOption, s as RolldownBuild, u as unwrapBindingResult } from "./src-DLQqj5Wo.js";
1
+ import { c as createBundlerOptions, d as transformToRollupOutput, f as bindingifySourcemap, l as normalizeBindingResult, m as PluginDriver, p as validateOption, s as RolldownBuild, u as unwrapBindingResult } from "./src-CnMyHYgB.js";
2
2
  import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-d47jXr3r.js";
3
3
  import { _ as wasmHelperPlugin, a as importGlobPlugin, c as loadFallbackPlugin, d as reactRefreshWrapperPlugin, f as reporterPlugin, g as wasmFallbackPlugin, h as viteResolvePlugin, i as htmlInlineProxyPlugin, l as manifestPlugin, m as viteHtmlPlugin, n as dynamicImportVarsPlugin, o as isolatedDeclarationPlugin, p as viteCSSPostPlugin, s as jsonPlugin, t as buildImportAnalysisPlugin, u as modulePreloadPolyfillPlugin, v as webWorkerPostPlugin } from "./constructors-EhfoQfqh.js";
4
4
  import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, minify, moduleRunnerTransform, parseAsync, parseSync, shutdownAsyncRuntime, startAsyncRuntime, transform } from "./rolldown-binding.wasi-browser.js";
@@ -1,4 +1,4 @@
1
- import { Dt as freeExternalMemory, H as defineParallelPlugin, M as SourceMapInput, Tt as RolldownOutput, o as InputOptions, yt as OutputOptions } from "./shared/define-config-Dv3i4cxM.mjs";
1
+ import { Dt as freeExternalMemory, H as defineParallelPlugin, M as SourceMapInput, Tt as RolldownOutput, o as InputOptions, yt as OutputOptions } from "./shared/define-config-BAQ9c-hh.mjs";
2
2
  import { A as IsolatedDeclarationsOptions, B as ResolverFactory, F as NapiResolveOptions, G as moduleRunnerTransform, H as TransformResult, I as ParseResult, J as transform, K as parseAsync, L as ParserOptions, N as MinifyOptions, P as MinifyResult, S as BindingViteCssPluginConfig, U as isolatedDeclaration, V as TransformOptions, W as minify, b as BindingTransformPluginConfig, h as BindingRebuildStrategy, i as BindingClientHmrUpdate, j as IsolatedDeclarationsResult, q as parseSync, t as BindingAssetPluginConfig, x as BindingUrlResolver, z as ResolveResult } from "./shared/binding-B4uTNiw2.mjs";
3
3
  import { t as BuiltinPlugin } from "./shared/utils-CduIqa7h.mjs";
4
4
  import { _ as wasmHelperPlugin, a as importGlobPlugin, c as loadFallbackPlugin, d as reactRefreshWrapperPlugin, f as reporterPlugin, g as wasmFallbackPlugin, h as viteResolvePlugin, i as htmlInlineProxyPlugin, l as manifestPlugin, m as viteHtmlPlugin, n as dynamicImportVarsPlugin, o as isolatedDeclarationPlugin, p as viteCSSPostPlugin, s as jsonPlugin, t as buildImportAnalysisPlugin, u as modulePreloadPolyfillPlugin, v as webWorkerPostPlugin } from "./shared/constructors-CaN9lKj2.mjs";
@@ -1,4 +1,4 @@
1
- import { c as createBundlerOptions, d as normalizeBindingResult, f as unwrapBindingResult, m as bindingifySourcemap, p as transformToRollupOutput, s as RolldownBuild, x as PluginDriver, y as validateOption } from "./shared/src-CvsuRKGv.mjs";
1
+ import { c as createBundlerOptions, d as normalizeBindingResult, f as unwrapBindingResult, m as bindingifySourcemap, p as transformToRollupOutput, s as RolldownBuild, x as PluginDriver, y as validateOption } from "./shared/src-CZ_U2fML.mjs";
2
2
  import "./shared/logs-CPsamAuj.mjs";
3
3
  import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-CbDij6KB.mjs";
4
4
  import "./shared/composable-filters-CBpK2Fbc.mjs";
@@ -1,4 +1,4 @@
1
- import { k as withFilter } from "./shared/define-config-Dv3i4cxM.mjs";
1
+ import { k as withFilter } from "./shared/define-config-BAQ9c-hh.mjs";
2
2
  import "./shared/binding-B4uTNiw2.mjs";
3
3
  import "./shared/utils-CduIqa7h.mjs";
4
4
  import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
@@ -1,4 +1,4 @@
1
- import { a as build, i as watch, n as VERSION, o as rolldown, r as defineConfig, t as BindingMagicString } from "./src-DLQqj5Wo.js";
1
+ import { a as build, i as watch, n as VERSION, o as rolldown, r as defineConfig, t as BindingMagicString } from "./src-CnMyHYgB.js";
2
2
  import "./normalize-string-or-regex-d47jXr3r.js";
3
3
 
4
4
  export { BindingMagicString, VERSION, build, defineConfig, rolldown, watch };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as NormalizedOutputOptions, A as VERSION, At as LogLevel, B as PluginContext, C as ResolveIdResult, Ct as RenderedChunk, D as SourceDescription, E as RolldownPluginOption, Et as SourceMap, F as TreeshakingOptions, Ft as RollupLogWithString, G as GeneralHookFilter, I as TransformPluginContext, J as BufferEncoding, K as HookFilter, L as EmittedAsset, M as SourceMapInput, Mt as LogOrStringHandler, N as RolldownOptionsFunction, Nt as RollupError, O as TransformResult, Ot as ModuleInfo, P as OutputBundle, Pt as RollupLog, Q as InternalModuleFormat, R as EmittedFile, S as ResolveIdExtraOptions, St as OutputChunk, T as RolldownPlugin, Tt as RolldownOutput, U as MinimalPluginContext, V as DefineParallelPluginResult, W as PluginContextMeta, X as RolldownFileStats, Y as RolldownDirectoryEntry, Z as RolldownFsModule, _ as ModuleType, _t as MinifyOptions, a as InputOption, at as RolldownWatcherEvent, b as PartialResolvedId, bt as PreRenderedAsset, c as OptimizationOptions, ct as RolldownBuild, d as CustomPluginOptions, dt as AddonFunction, et as NormalizedInputOptions, f as FunctionPluginHooks, ft as ChunkFileNamesFunction, g as ModuleOptions, gt as GlobalsFunction, h as LoadResult, ht as GeneratedCodePreset, i as ExternalOption, it as RolldownWatcher, j as ExistingRawSourceMap, jt as LogLevelOption, kt as SourcemapIgnoreListOption, l as WatcherOptions, lt as BuildOptions, m as ImportKind, mt as GeneratedCodeOptions, n as ConfigExport, nt as WarningHandlerWithDefault, o as InputOptions, ot as WatchOptions, p as HookFilterExtension, pt as ChunkingContext, q as ModuleTypeFilter, r as RolldownOptions, rt as watch, s as ModuleTypes, st as rolldown, t as defineConfig, tt as LoggingFunction, u as AsyncPluginHooks, ut as build, v as ObjectHook, vt as ModuleFormat, w as ResolvedId, wt as RenderedModule, x as Plugin, xt as OutputAsset, y as ParallelPluginHooks, yt as OutputOptions, z as GetModuleInfo } from "./shared/define-config-Dv3i4cxM.mjs";
1
+ import { $ as NormalizedOutputOptions, A as VERSION, At as LogLevel, B as PluginContext, C as ResolveIdResult, Ct as RenderedChunk, D as SourceDescription, E as RolldownPluginOption, Et as SourceMap, F as TreeshakingOptions, Ft as RollupLogWithString, G as GeneralHookFilter, I as TransformPluginContext, J as BufferEncoding, K as HookFilter, L as EmittedAsset, M as SourceMapInput, Mt as LogOrStringHandler, N as RolldownOptionsFunction, Nt as RollupError, O as TransformResult, Ot as ModuleInfo, P as OutputBundle, Pt as RollupLog, Q as InternalModuleFormat, R as EmittedFile, S as ResolveIdExtraOptions, St as OutputChunk, T as RolldownPlugin, Tt as RolldownOutput, U as MinimalPluginContext, V as DefineParallelPluginResult, W as PluginContextMeta, X as RolldownFileStats, Y as RolldownDirectoryEntry, Z as RolldownFsModule, _ as ModuleType, _t as MinifyOptions, a as InputOption, at as RolldownWatcherEvent, b as PartialResolvedId, bt as PreRenderedAsset, c as OptimizationOptions, ct as RolldownBuild, d as CustomPluginOptions, dt as AddonFunction, et as NormalizedInputOptions, f as FunctionPluginHooks, ft as ChunkFileNamesFunction, g as ModuleOptions, gt as GlobalsFunction, h as LoadResult, ht as GeneratedCodePreset, i as ExternalOption, it as RolldownWatcher, j as ExistingRawSourceMap, jt as LogLevelOption, kt as SourcemapIgnoreListOption, l as WatcherOptions, lt as BuildOptions, m as ImportKind, mt as GeneratedCodeOptions, n as ConfigExport, nt as WarningHandlerWithDefault, o as InputOptions, ot as WatchOptions, p as HookFilterExtension, pt as ChunkingContext, q as ModuleTypeFilter, r as RolldownOptions, rt as watch, s as ModuleTypes, st as rolldown, t as defineConfig, tt as LoggingFunction, u as AsyncPluginHooks, ut as build, v as ObjectHook, vt as ModuleFormat, w as ResolvedId, wt as RenderedModule, x as Plugin, xt as OutputAsset, y as ParallelPluginHooks, yt as OutputOptions, z as GetModuleInfo } from "./shared/define-config-BAQ9c-hh.mjs";
2
2
  import { R as PreRenderedChunk, d as BindingMagicString } from "./shared/binding-B4uTNiw2.mjs";
3
3
  import { o as PartialNull } from "./shared/utils-CduIqa7h.mjs";
4
4
  export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, 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, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as build, i as watch, n as VERSION, o as rolldown, r as defineConfig, t as BindingMagicString } from "./shared/src-CvsuRKGv.mjs";
1
+ import { a as build, i as watch, n as VERSION, o as rolldown, r as defineConfig, t as BindingMagicString } from "./shared/src-CZ_U2fML.mjs";
2
2
  import "./shared/logs-CPsamAuj.mjs";
3
3
  import "./shared/normalize-string-or-regex-CbDij6KB.mjs";
4
4
  import "./shared/composable-filters-CBpK2Fbc.mjs";
@@ -1,4 +1,4 @@
1
- import { l as PluginContextData, u as bindingifyPlugin } from "./shared/src-CvsuRKGv.mjs";
1
+ import { l as PluginContextData, u as bindingifyPlugin } from "./shared/src-CZ_U2fML.mjs";
2
2
  import "./shared/logs-CPsamAuj.mjs";
3
3
  import "./shared/normalize-string-or-regex-CbDij6KB.mjs";
4
4
  import "./shared/composable-filters-CBpK2Fbc.mjs";
@@ -1,4 +1,4 @@
1
- import { x as Plugin } from "./shared/define-config-Dv3i4cxM.mjs";
1
+ import { x as Plugin } from "./shared/define-config-BAQ9c-hh.mjs";
2
2
  import "./shared/binding-B4uTNiw2.mjs";
3
3
  import { i as MaybePromise } from "./shared/utils-CduIqa7h.mjs";
4
4
 
@@ -1053,9 +1053,9 @@ interface ResolveIdExtraOptions {
1053
1053
  }
1054
1054
  type ResolveIdResult = string | NullValue | false | PartialResolvedId;
1055
1055
  type LoadResult = NullValue | string | SourceDescription;
1056
- type TransformResult = NullValue | string | Omit<SourceDescription, "code"> & {
1056
+ type TransformResult = NullValue | string | (Omit<SourceDescription, "code"> & {
1057
1057
  code?: string | BindingMagicString;
1058
- };
1058
+ });
1059
1059
  type RenderedChunkMeta = {
1060
1060
  chunks: Record<string, RenderedChunk>;
1061
1061
  };
@@ -1074,6 +1074,7 @@ interface FunctionPluginHooks {
1074
1074
  [DEFINED_HOOK_NAMES.transform]: (this: TransformPluginContext, code: string, id: string, meta: BindingTransformHookExtraArgs & {
1075
1075
  moduleType: ModuleType;
1076
1076
  magicString?: BindingMagicString;
1077
+ ast?: Program;
1077
1078
  }) => TransformResult;
1078
1079
  [DEFINED_HOOK_NAMES.moduleParsed]: (this: PluginContext, moduleInfo: ModuleInfo) => void;
1079
1080
  [DEFINED_HOOK_NAMES.buildEnd]: (this: PluginContext, err?: Error) => void;
@@ -1,4 +1,4 @@
1
- import { o as rolldown } from "./src-CvsuRKGv.mjs";
1
+ import { o as rolldown } from "./src-CZ_U2fML.mjs";
2
2
  import path from "node:path";
3
3
  import { readdir } from "node:fs/promises";
4
4
  import { pathToFileURL } from "node:url";
@@ -220,7 +220,7 @@ if (isMainThread) {
220
220
 
221
221
  //#endregion
222
222
  //#region package.json
223
- var version = "1.0.0-beta.48";
223
+ var version = "1.0.0-beta.49";
224
224
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
225
225
 
226
226
  //#endregion
@@ -2,7 +2,7 @@ import { a as augmentCodeLocation, c as logInputHookInOutputPlugin, d as logNoFi
2
2
  import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingMagicString as BindingMagicString$1, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingWatcher, parseSync, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
3
3
 
4
4
  //#region package.json
5
- var version = "1.0.0-beta.48";
5
+ var version = "1.0.0-beta.49";
6
6
 
7
7
  //#endregion
8
8
  //#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolldown/browser",
3
- "version": "1.0.0-beta.48",
3
+ "version": "1.0.0-beta.49",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "homepage": "https://rolldown.rs/",
6
6
  "type": "module",