@rolldown/browser 1.0.0-beta.22 → 1.0.0-beta.23
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.cjs +3 -3
- package/dist/cli.mjs +3 -3
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.browser.mjs +2 -2
- package/dist/experimental-index.cjs +2 -3
- package/dist/experimental-index.d.cts +3 -6
- package/dist/experimental-index.d.mts +3 -6
- package/dist/experimental-index.mjs +3 -3
- package/dist/filter-index.cjs +1 -1
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +1 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +3 -3
- package/dist/parallel-plugin-worker.mjs +3 -3
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{binding-B8kHDLfO.d.mts → binding-CMKStSph.d.cts} +4 -14
- package/dist/shared/{binding-CbR_BHh9.d.cts → binding-DB58iXP8.d.mts} +4 -14
- package/dist/shared/{define-config-DZVEpUTF.d.cts → define-config-BRkYSF9E.d.cts} +11 -21
- package/dist/shared/{define-config-DsN80oVh.d.mts → define-config-CqVfqfZQ.d.mts} +11 -21
- package/dist/shared/{dist-BMVjvV-v.cjs → dist-BVAp8sOm.cjs} +0 -9
- package/dist/shared/{dist-BoWaIc-K.mjs → dist-DvBwroyk.mjs} +1 -4
- package/dist/shared/{load-config-_2H4hlKT.mjs → load-config-BWbXOTbl.mjs} +1 -1
- package/dist/shared/{load-config-BgXwAVNp.cjs → load-config-Bh2dNRk9.cjs} +1 -1
- package/dist/shared/{src-C_vfq91X.mjs → src-BA5CL--T.mjs} +454 -775
- package/dist/shared/{src-DT8g8X-x.cjs → src-Co_Bf7DL.cjs} +354 -681
- package/dist/{src-DJeuVN_z.js → src-C1KTaRyZ.js} +483 -807
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl,
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-DB58iXP8.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -38,6 +38,10 @@ interface RollupError extends RollupLog {
|
|
|
38
38
|
}
|
|
39
39
|
type LogOrStringHandler = (level: LogLevelWithError, log: RollupLogWithString) => void;
|
|
40
40
|
//#endregion
|
|
41
|
+
//#region src/types/misc.d.ts
|
|
42
|
+
type SourcemapPathTransformOption = (relativeSourcePath: string, sourcemapPath: string) => string;
|
|
43
|
+
type SourcemapIgnoreListOption = (relativeSourcePath: string, sourcemapPath: string) => boolean;
|
|
44
|
+
//#endregion
|
|
41
45
|
//#region src/types/module-info.d.ts
|
|
42
46
|
interface ModuleInfo extends ModuleOptions {
|
|
43
47
|
/**
|
|
@@ -54,17 +58,6 @@ interface ModuleInfo extends ModuleOptions {
|
|
|
54
58
|
isEntry: boolean;
|
|
55
59
|
}
|
|
56
60
|
//#endregion
|
|
57
|
-
//#region src/types/chunking-context.d.ts
|
|
58
|
-
declare class ChunkingContext {
|
|
59
|
-
private context;
|
|
60
|
-
constructor(context: BindingChunkingContext);
|
|
61
|
-
getModuleInfo(moduleId: string): ModuleInfo | null;
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region src/types/misc.d.ts
|
|
65
|
-
type SourcemapPathTransformOption = (relativeSourcePath: string, sourcemapPath: string) => string;
|
|
66
|
-
type SourcemapIgnoreListOption = (relativeSourcePath: string, sourcemapPath: string) => boolean;
|
|
67
|
-
//#endregion
|
|
68
61
|
//#region src/utils/asset-source.d.ts
|
|
69
62
|
type AssetSource = string | Uint8Array;
|
|
70
63
|
//#endregion
|
|
@@ -156,6 +149,9 @@ interface PreRenderedAsset {
|
|
|
156
149
|
type AssetFileNamesFunction = (chunkInfo: PreRenderedAsset) => string;
|
|
157
150
|
type GlobalsFunction = (name: string) => string;
|
|
158
151
|
type MinifyOptions = BindingMinifyOptions;
|
|
152
|
+
interface ChunkingContext {
|
|
153
|
+
getModuleInfo(moduleId: string): ModuleInfo | null;
|
|
154
|
+
}
|
|
159
155
|
interface OutputOptions {
|
|
160
156
|
dir?: string;
|
|
161
157
|
file?: string;
|
|
@@ -739,7 +735,7 @@ declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPlugin
|
|
|
739
735
|
declare function importGlobPlugin(config?: BindingImportGlobPluginConfig): BuiltinPlugin;
|
|
740
736
|
declare function reporterPlugin(config?: BindingReporterPluginConfig): BuiltinPlugin;
|
|
741
737
|
declare function manifestPlugin(config?: BindingManifestPluginConfig): BuiltinPlugin;
|
|
742
|
-
declare function wasmHelperPlugin(): BuiltinPlugin;
|
|
738
|
+
declare function wasmHelperPlugin(config?: BindingWasmHelperPluginConfig): BuiltinPlugin;
|
|
743
739
|
declare function wasmFallbackPlugin(): BuiltinPlugin;
|
|
744
740
|
declare function loadFallbackPlugin(): BuiltinPlugin;
|
|
745
741
|
declare function jsonPlugin(config?: BindingJsonPluginConfig): BuiltinPlugin;
|
|
@@ -758,11 +754,6 @@ declare function webWorkerPostPlugin(): BuiltinPlugin;
|
|
|
758
754
|
declare const ENUMERATED_INPUT_PLUGIN_HOOK_NAMES: readonly ["options", "buildStart", "resolveId", "load", "transform", "moduleParsed", "buildEnd", "onLog", "resolveDynamicImport", "closeBundle", "closeWatcher", "watchChange"];
|
|
759
755
|
declare const ENUMERATED_OUTPUT_PLUGIN_HOOK_NAMES: readonly ["augmentChunkHash", "outputOptions", "renderChunk", "renderStart", "renderError", "writeBundle", "generateBundle"];
|
|
760
756
|
declare const ENUMERATED_PLUGIN_HOOK_NAMES: [...typeof ENUMERATED_INPUT_PLUGIN_HOOK_NAMES, ...typeof ENUMERATED_OUTPUT_PLUGIN_HOOK_NAMES, "footer", "banner", "intro", "outro"];
|
|
761
|
-
type EnumeratedPluginHookNames = typeof ENUMERATED_PLUGIN_HOOK_NAMES;
|
|
762
|
-
/**
|
|
763
|
-
* Names of all hooks in a `Plugin` object. Does not include `name` and `api`, since they are not hooks.
|
|
764
|
-
*/
|
|
765
|
-
type PluginHookNames = EnumeratedPluginHookNames[number];
|
|
766
757
|
/**
|
|
767
758
|
* Names of all defined hooks. It's like
|
|
768
759
|
* ```ts
|
|
@@ -773,7 +764,7 @@ type PluginHookNames = EnumeratedPluginHookNames[number];
|
|
|
773
764
|
* }
|
|
774
765
|
* ```
|
|
775
766
|
*/
|
|
776
|
-
type DefinedHookNames = { readonly [K in
|
|
767
|
+
type DefinedHookNames = { readonly [K in typeof ENUMERATED_PLUGIN_HOOK_NAMES[number]]: K };
|
|
777
768
|
/**
|
|
778
769
|
* Names of all defined hooks. It's like
|
|
779
770
|
* ```js
|
|
@@ -1064,7 +1055,6 @@ interface InputOptions {
|
|
|
1064
1055
|
onwarn?: (warning: RollupLog, defaultHandler: (warning: RollupLogWithString | (() => RollupLogWithString)) => void) => void;
|
|
1065
1056
|
moduleTypes?: ModuleTypes;
|
|
1066
1057
|
experimental?: {
|
|
1067
|
-
enableComposingJsPlugins?: boolean;
|
|
1068
1058
|
strictExecutionOrder?: boolean;
|
|
1069
1059
|
disableLiveBindings?: boolean;
|
|
1070
1060
|
viteMode?: boolean;
|
|
@@ -1211,4 +1201,4 @@ declare function defineConfig(config: RolldownOptions): RolldownOptions;
|
|
|
1211
1201
|
declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
1212
1202
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1213
1203
|
//#endregion
|
|
1214
|
-
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
|
|
1204
|
+
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
function arraify(value) {
|
|
4
4
|
return Array.isArray(value) ? value : [value];
|
|
5
5
|
}
|
|
6
|
-
function isNullish(value) {
|
|
7
|
-
return value === null || value === void 0;
|
|
8
|
-
}
|
|
9
6
|
function isPromiseLike(value) {
|
|
10
7
|
return value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
|
|
11
8
|
}
|
|
@@ -181,12 +178,6 @@ Object.defineProperty(exports, 'include', {
|
|
|
181
178
|
return include;
|
|
182
179
|
}
|
|
183
180
|
});
|
|
184
|
-
Object.defineProperty(exports, 'isNullish', {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
get: function () {
|
|
187
|
-
return isNullish;
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
181
|
Object.defineProperty(exports, 'isPromiseLike', {
|
|
191
182
|
enumerable: true,
|
|
192
183
|
get: function () {
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
function arraify(value) {
|
|
3
3
|
return Array.isArray(value) ? value : [value];
|
|
4
4
|
}
|
|
5
|
-
function isNullish(value) {
|
|
6
|
-
return value === null || value === void 0;
|
|
7
|
-
}
|
|
8
5
|
function isPromiseLike(value) {
|
|
9
6
|
return value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
|
|
10
7
|
}
|
|
@@ -144,4 +141,4 @@ function queries(queryFilter) {
|
|
|
144
141
|
}
|
|
145
142
|
|
|
146
143
|
//#endregion
|
|
147
|
-
export { and, arraify, code, exclude, id, include,
|
|
144
|
+
export { and, arraify, code, exclude, id, include, isPromiseLike, moduleType, noop, not, or, queries, query, unimplemented, unreachable, unsupported };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-Co_Bf7DL.cjs');
|
|
3
3
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
4
4
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|