rolldown 1.0.0-beta.4-commit.d3748b6 → 1.0.0-beta.40
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/bin/cli.mjs +2 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +579 -0
- package/dist/config.d.mts +10 -0
- package/dist/config.mjs +10 -0
- package/dist/experimental-index.d.mts +147 -0
- package/dist/experimental-index.mjs +216 -0
- package/dist/experimental-runtime-types.d.ts +71 -0
- package/dist/filter-index.d.mts +4 -0
- package/dist/filter-index.mjs +44 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +5 -0
- package/dist/parallel-plugin-worker.d.mts +1 -0
- package/dist/{esm/parallel-plugin-worker.mjs → parallel-plugin-worker.mjs} +8 -16
- package/dist/parallel-plugin.d.mts +14 -0
- package/dist/{esm/parallel-plugin.mjs → parallel-plugin.mjs} +0 -1
- package/dist/parse-ast-index.d.mts +8 -0
- package/dist/parse-ast-index.mjs +3 -0
- package/dist/shared/binding-BVXbXhPv.d.mts +1413 -0
- package/dist/shared/define-config-0kfJrpvQ.d.mts +1454 -0
- package/dist/shared/load-config-BJ274Wsp.mjs +117 -0
- package/dist/{esm/cli.mjs → shared/logger-CiCY7ucm.mjs} +107 -868
- package/dist/shared/misc-CQeo-AFx.mjs +22 -0
- package/dist/shared/parse-ast-index-C7EYXjEA.mjs +10974 -0
- package/dist/shared/{prompt-CxK9euq3.mjs → prompt-D2FxOcB5.mjs} +243 -245
- package/dist/shared/src-BH2eQDD9.mjs +4282 -0
- package/package.json +62 -76
- package/bin/cli.js +0 -2
- package/dist/cjs/cli.cjs +0 -1753
- package/dist/cjs/experimental-index.cjs +0 -85
- package/dist/cjs/index.cjs +0 -8
- package/dist/cjs/parallel-plugin-worker.cjs +0 -41
- package/dist/cjs/parallel-plugin.cjs +0 -9
- package/dist/cjs/parse-ast-index.cjs +0 -4
- package/dist/esm/experimental-index.mjs +0 -57
- package/dist/esm/index.mjs +0 -4
- package/dist/esm/parse-ast-index.mjs +0 -3
- package/dist/shared/chunk-qZFfknuJ.cjs +0 -40
- package/dist/shared/parse-ast-index-CyX8MVZE.mjs +0 -674
- package/dist/shared/parse-ast-index-D7XtMFo4.cjs +0 -719
- package/dist/shared/prompt-ZZScCEWI.cjs +0 -854
- package/dist/shared/src-CH716UxL.cjs +0 -3056
- package/dist/shared/src-CzSgWS0h.mjs +0 -2875
- package/dist/types/api/build.d.ts +0 -18
- package/dist/types/api/experimental.d.ts +0 -7
- package/dist/types/api/rolldown/index.d.ts +0 -3
- package/dist/types/api/rolldown/rolldown-build.d.ts +0 -13
- package/dist/types/api/watch/index.d.ts +0 -3
- package/dist/types/api/watch/watch-emitter.d.ts +0 -31
- package/dist/types/api/watch/watcher.d.ts +0 -13
- package/dist/types/binding.d.ts +0 -1456
- package/dist/types/builtin-plugin/alias-plugin.d.ts +0 -10
- package/dist/types/builtin-plugin/constructors.d.ts +0 -21
- package/dist/types/builtin-plugin/replace-plugin.d.ts +0 -28
- package/dist/types/builtin-plugin/transform-plugin.d.ts +0 -9
- package/dist/types/builtin-plugin/utils.d.ts +0 -8
- package/dist/types/cli/arguments/alias.d.ts +0 -16
- package/dist/types/cli/arguments/index.d.ts +0 -15
- package/dist/types/cli/arguments/normalize.d.ts +0 -12
- package/dist/types/cli/arguments/utils.d.ts +0 -8
- package/dist/types/cli/colors.d.ts +0 -11
- package/dist/types/cli/commands/bundle.d.ts +0 -3
- package/dist/types/cli/commands/help.d.ts +0 -1
- package/dist/types/cli/index.d.ts +0 -1
- package/dist/types/cli/load-config.d.ts +0 -5
- package/dist/types/cli/logger.d.ts +0 -5
- package/dist/types/constants/plugin-context.d.ts +0 -7
- package/dist/types/constants/plugin.d.ts +0 -45
- package/dist/types/experimental-index.d.ts +0 -9
- package/dist/types/index.d.ts +0 -30
- package/dist/types/log/log-handler.d.ts +0 -4
- package/dist/types/log/logger.d.ts +0 -6
- package/dist/types/log/logging.d.ts +0 -12
- package/dist/types/log/logs.d.ts +0 -18
- package/dist/types/options/generated/checks-options.d.ts +0 -57
- package/dist/types/options/input-options.d.ts +0 -177
- package/dist/types/options/normalized-input-options.d.ts +0 -18
- package/dist/types/options/normalized-output-options.d.ts +0 -70
- package/dist/types/options/output-options.d.ts +0 -182
- package/dist/types/options/watch-options.d.ts +0 -5
- package/dist/types/parallel-plugin-worker.d.ts +0 -1
- package/dist/types/parallel-plugin.d.ts +0 -1
- package/dist/types/parse-ast-index.d.ts +0 -5
- package/dist/types/plugin/bindingify-build-hooks.d.ts +0 -10
- package/dist/types/plugin/bindingify-hook-filter.d.ts +0 -7
- package/dist/types/plugin/bindingify-output-hooks.d.ts +0 -14
- package/dist/types/plugin/bindingify-plugin-hook-meta.d.ts +0 -8
- package/dist/types/plugin/bindingify-plugin.d.ts +0 -16
- package/dist/types/plugin/bindingify-watch-hooks.d.ts +0 -5
- package/dist/types/plugin/hook-filter.d.ts +0 -48
- package/dist/types/plugin/index.d.ts +0 -134
- package/dist/types/plugin/minimal-plugin-context.d.ts +0 -23
- package/dist/types/plugin/parallel-plugin-implementation.d.ts +0 -10
- package/dist/types/plugin/parallel-plugin.d.ts +0 -9
- package/dist/types/plugin/plugin-context-data.d.ts +0 -17
- package/dist/types/plugin/plugin-context.d.ts +0 -67
- package/dist/types/plugin/plugin-driver.d.ts +0 -8
- package/dist/types/plugin/transform-plugin-context.d.ts +0 -28
- package/dist/types/types/assert.d.ts +0 -14
- package/dist/types/types/config-export.d.ts +0 -5
- package/dist/types/types/misc.d.ts +0 -40
- package/dist/types/types/module-info.d.ts +0 -15
- package/dist/types/types/module-side-effects.d.ts +0 -12
- package/dist/types/types/output-bundle.d.ts +0 -4
- package/dist/types/types/rolldown-options.d.ts +0 -5
- package/dist/types/types/rolldown-output.d.ts +0 -66
- package/dist/types/types/schema.d.ts +0 -33
- package/dist/types/types/sourcemap.d.ts +0 -14
- package/dist/types/types/utils.d.ts +0 -13
- package/dist/types/utils/asset-source.d.ts +0 -4
- package/dist/types/utils/async-flatten.d.ts +0 -1
- package/dist/types/utils/bindingify-input-options.d.ts +0 -7
- package/dist/types/utils/bindingify-output-options.d.ts +0 -5
- package/dist/types/utils/code-frame.d.ts +0 -1
- package/dist/types/utils/compose-js-plugins.d.ts +0 -2
- package/dist/types/utils/create-bundler-option.d.ts +0 -11
- package/dist/types/utils/create-bundler.d.ts +0 -8
- package/dist/types/utils/define-config.d.ts +0 -5
- package/dist/types/utils/error.d.ts +0 -2
- package/dist/types/utils/initialize-parallel-plugins.d.ts +0 -19
- package/dist/types/utils/misc.d.ts +0 -6
- package/dist/types/utils/normalize-hook.d.ts +0 -7
- package/dist/types/utils/normalize-plugin-option.d.ts +0 -13
- package/dist/types/utils/normalize-string-or-regex.d.ts +0 -2
- package/dist/types/utils/plugin/index.d.ts +0 -2
- package/dist/types/utils/resolved-external.d.ts +0 -4
- package/dist/types/utils/transform-module-info.d.ts +0 -4
- package/dist/types/utils/transform-rendered-chunk.d.ts +0 -4
- package/dist/types/utils/transform-rendered-module.d.ts +0 -3
- package/dist/types/utils/transform-side-effects.d.ts +0 -3
- package/dist/types/utils/transform-sourcemap.d.ts +0 -3
- package/dist/types/utils/transform-to-rollup-output.d.ts +0 -11
- package/dist/types/utils/validator.d.ts +0 -6
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { InputOptions } from '../options/input-options';
|
|
2
|
-
import { OutputOptions } from '../options/output-options';
|
|
3
|
-
import type { RolldownOutput } from '../types/rolldown-output';
|
|
4
|
-
export interface BuildOptions extends InputOptions {
|
|
5
|
-
/**
|
|
6
|
-
* Write the output to the file system
|
|
7
|
-
*
|
|
8
|
-
* @default true
|
|
9
|
-
*/
|
|
10
|
-
write?: boolean;
|
|
11
|
-
output?: OutputOptions;
|
|
12
|
-
}
|
|
13
|
-
declare function build(options: BuildOptions): Promise<RolldownOutput>;
|
|
14
|
-
/**
|
|
15
|
-
* Build multiple outputs __sequentially__.
|
|
16
|
-
*/
|
|
17
|
-
declare function build(options: BuildOptions[]): Promise<RolldownOutput[]>;
|
|
18
|
-
export { build };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { InputOptions } from '../options/input-options';
|
|
2
|
-
/**
|
|
3
|
-
* This is an experimental API. It's behavior may change in the future.
|
|
4
|
-
*
|
|
5
|
-
* Calling this API will only execute the scan stage of rolldown.
|
|
6
|
-
*/
|
|
7
|
-
export declare const experimental_scan: (input: InputOptions) => Promise<void>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { InputOptions } from '../../options/input-options';
|
|
2
|
-
import type { OutputOptions } from '../../options/output-options';
|
|
3
|
-
import type { RolldownOutput } from '../../types/rolldown-output';
|
|
4
|
-
export declare class RolldownBuild {
|
|
5
|
-
#private;
|
|
6
|
-
constructor(inputOptions: InputOptions);
|
|
7
|
-
get closed(): boolean;
|
|
8
|
-
generate(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
9
|
-
write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
10
|
-
close(): Promise<void>;
|
|
11
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
12
|
-
generateHmrPatch(changedFiles: string[]): Promise<string | void>;
|
|
13
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BindingWatcherEvent } from '../../binding';
|
|
2
|
-
import { MaybePromise } from '../../types/utils';
|
|
3
|
-
export type WatcherEvent = 'close' | 'event' | 'restart' | 'change';
|
|
4
|
-
export type ChangeEvent = 'create' | 'update' | 'delete';
|
|
5
|
-
export type RollupWatcherEvent = {
|
|
6
|
-
code: 'START';
|
|
7
|
-
} | {
|
|
8
|
-
code: 'BUNDLE_START';
|
|
9
|
-
} | {
|
|
10
|
-
code: 'BUNDLE_END';
|
|
11
|
-
duration: number;
|
|
12
|
-
output: readonly string[];
|
|
13
|
-
} | {
|
|
14
|
-
code: 'END';
|
|
15
|
-
} | {
|
|
16
|
-
code: 'ERROR';
|
|
17
|
-
error: Error;
|
|
18
|
-
};
|
|
19
|
-
export declare class WatcherEmitter {
|
|
20
|
-
listeners: Map<WatcherEvent, Array<(...parameters: any[]) => MaybePromise<void>>>;
|
|
21
|
-
timer: any;
|
|
22
|
-
constructor();
|
|
23
|
-
on(event: 'change', listener: (id: string, change: {
|
|
24
|
-
event: ChangeEvent;
|
|
25
|
-
}) => MaybePromise<void>): this;
|
|
26
|
-
on(event: 'event', listener: (data: RollupWatcherEvent) => MaybePromise<void>): this;
|
|
27
|
-
on(event: 'restart' | 'close', listener: () => MaybePromise<void>): this;
|
|
28
|
-
onEvent(event: BindingWatcherEvent): Promise<void>;
|
|
29
|
-
close(): Promise<void>;
|
|
30
|
-
}
|
|
31
|
-
export type RolldownWatcher = WatcherEmitter;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BindingWatcher } from '../../binding';
|
|
2
|
-
import { WatchOptions } from '../../options/watch-options';
|
|
3
|
-
import { WatcherEmitter } from './watch-emitter';
|
|
4
|
-
export declare class Watcher {
|
|
5
|
-
closed: boolean;
|
|
6
|
-
inner: BindingWatcher;
|
|
7
|
-
emitter: WatcherEmitter;
|
|
8
|
-
stopWorkers: ((() => Promise<void>) | undefined)[];
|
|
9
|
-
constructor(emitter: WatcherEmitter, inner: BindingWatcher, stopWorkers: ((() => Promise<void>) | undefined)[]);
|
|
10
|
-
close(): Promise<void>;
|
|
11
|
-
start(): void;
|
|
12
|
-
}
|
|
13
|
-
export declare function createWatcher(emitter: WatcherEmitter, input: WatchOptions | WatchOptions[]): Promise<void>;
|