rolldown 0.13.2-snapshot-a292401-20241105072341 → 0.14.0
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/cjs/cli.cjs +3 -58
- package/dist/cjs/experimental-index.cjs +1 -2
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/parallel-plugin-worker.cjs +1 -1
- package/dist/esm/cli.mjs +3 -58
- package/dist/esm/experimental-index.mjs +2 -2
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/parallel-plugin-worker.mjs +1 -1
- package/dist/shared/rolldown-binding.wasi.cjs +71 -71
- package/dist/shared/{src_index-CngklO4k.cjs → src_index-3pqhEViJ.cjs} +233 -229
- package/dist/shared/{src_index-uxgg1P7A.mjs → src_index-ywYMd4vB.mjs} +234 -229
- package/dist/types/binding.d.ts +2 -5
- package/dist/types/cli/arguments/schema.d.ts +3 -6
- package/dist/types/experimental-index.d.ts +1 -1
- package/dist/types/options/input-options.d.ts +0 -6
- package/dist/types/options/normalized-output-options.d.ts +1 -1
- package/dist/types/options/output-options.d.ts +7 -7
- package/dist/types/plugin/builtin-plugin.d.ts +0 -4
- package/dist/types/plugin/plugin-driver.d.ts +1 -0
- package/dist/types/rolldown-build.d.ts +0 -2
- package/package.json +14 -23
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { PreRenderedChunk, RenderedChunk } from '../binding';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
declare const ModuleFormatSchema: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.
|
|
3
|
+
declare const ModuleFormatSchema: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>, z.ZodLiteral<"umd">]>>;
|
|
4
4
|
declare const outputOptionsSchema: z.ZodObject<{
|
|
5
5
|
dir: z.ZodOptional<z.ZodString>;
|
|
6
6
|
file: z.ZodOptional<z.ZodString>;
|
|
7
7
|
exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>;
|
|
8
|
-
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.
|
|
8
|
+
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>, z.ZodLiteral<"umd">]>>;
|
|
9
9
|
sourcemap: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"inline">]>, z.ZodLiteral<"hidden">]>>;
|
|
10
10
|
sourcemapIgnoreList: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodType<SourcemapIgnoreListOption, z.ZodTypeDef, SourcemapIgnoreListOption>]>>;
|
|
11
11
|
sourcemapPathTransform: z.ZodOptional<z.ZodType<SourcemapPathTransformOption, z.ZodTypeDef, SourcemapPathTransformOption>>;
|
|
@@ -75,7 +75,7 @@ declare const outputOptionsSchema: z.ZodObject<{
|
|
|
75
75
|
name?: string | undefined;
|
|
76
76
|
exports?: "auto" | "named" | "default" | "none" | undefined;
|
|
77
77
|
dir?: string | undefined;
|
|
78
|
-
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" |
|
|
78
|
+
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
|
|
79
79
|
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
80
80
|
sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption | undefined;
|
|
81
81
|
sourcemapPathTransform?: SourcemapPathTransformOption | undefined;
|
|
@@ -108,7 +108,7 @@ declare const outputOptionsSchema: z.ZodObject<{
|
|
|
108
108
|
name?: string | undefined;
|
|
109
109
|
exports?: "auto" | "named" | "default" | "none" | undefined;
|
|
110
110
|
dir?: string | undefined;
|
|
111
|
-
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" |
|
|
111
|
+
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
|
|
112
112
|
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
113
113
|
sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption | undefined;
|
|
114
114
|
sourcemapPathTransform?: SourcemapPathTransformOption | undefined;
|
|
@@ -137,7 +137,7 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
|
|
|
137
137
|
dir: z.ZodOptional<z.ZodString>;
|
|
138
138
|
file: z.ZodOptional<z.ZodString>;
|
|
139
139
|
exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>;
|
|
140
|
-
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.
|
|
140
|
+
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>, z.ZodLiteral<"umd">]>>;
|
|
141
141
|
sourcemap: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"inline">]>, z.ZodLiteral<"hidden">]>>;
|
|
142
142
|
sourcemapIgnoreList: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodType<SourcemapIgnoreListOption, z.ZodTypeDef, SourcemapIgnoreListOption>]>>;
|
|
143
143
|
sourcemapPathTransform: z.ZodOptional<z.ZodType<SourcemapPathTransformOption, z.ZodTypeDef, SourcemapPathTransformOption>>;
|
|
@@ -223,7 +223,7 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
|
|
|
223
223
|
name?: string | undefined;
|
|
224
224
|
exports?: "auto" | "named" | "default" | "none" | undefined;
|
|
225
225
|
dir?: string | undefined;
|
|
226
|
-
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" |
|
|
226
|
+
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
|
|
227
227
|
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
228
228
|
extend?: boolean | undefined;
|
|
229
229
|
esModule?: boolean | undefined;
|
|
@@ -247,7 +247,7 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
|
|
|
247
247
|
name?: string | undefined;
|
|
248
248
|
exports?: "auto" | "named" | "default" | "none" | undefined;
|
|
249
249
|
dir?: string | undefined;
|
|
250
|
-
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" |
|
|
250
|
+
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
|
|
251
251
|
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
252
252
|
extend?: boolean | undefined;
|
|
253
253
|
esModule?: boolean | undefined;
|
|
@@ -42,9 +42,6 @@ export declare class BuildImportAnalysisPlugin extends BuiltinPlugin {
|
|
|
42
42
|
export declare class ReplacePlugin extends BuiltinPlugin {
|
|
43
43
|
constructor(config?: BindingReplacePluginConfig);
|
|
44
44
|
}
|
|
45
|
-
export declare class ReactPlugin extends BuiltinPlugin {
|
|
46
|
-
constructor();
|
|
47
|
-
}
|
|
48
45
|
export declare function modulePreloadPolyfillPlugin(config?: BindingModulePreloadPolyfillPluginConfig): ModulePreloadPolyfillPlugin;
|
|
49
46
|
export declare function dynamicImportVarsPlugin(): DynamicImportVarsPlugin;
|
|
50
47
|
export declare function importGlobPlugin(config?: BindingGlobImportPluginConfig): ImportGlobPlugin;
|
|
@@ -82,4 +79,3 @@ export declare function buildImportAnalysisPlugin(config: BindingBuildImportAnal
|
|
|
82
79
|
*/
|
|
83
80
|
export declare function replacePlugin(values?: BindingReplacePluginConfig['values'], options?: Omit<BindingReplacePluginConfig, 'values'>): ReplacePlugin;
|
|
84
81
|
export declare function bindingifyBuiltInPlugin(plugin: BuiltinPlugin): BindingBuiltinPlugin;
|
|
85
|
-
export declare function reactPlugin(): ReactPlugin;
|
|
@@ -6,3 +6,4 @@ export declare class PluginDriver {
|
|
|
6
6
|
callOutputOptionsHook(inputOptions: NormalizedInputOptions, outputOptions: OutputOptions): OutputOptions;
|
|
7
7
|
}
|
|
8
8
|
export declare function getObjectPlugins(plugins: RolldownPluginRec[]): Plugin[];
|
|
9
|
+
export declare function getSortedPlugins(hookName: 'options' | 'outputOptions' | 'onLog', plugins: readonly Plugin[]): Plugin[];
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { OutputOptions } from './options/output-options';
|
|
2
2
|
import type { RolldownOutput } from './types/rolldown-output';
|
|
3
3
|
import type { InputOptions } from './options/input-options';
|
|
4
|
-
import { AssetSource } from './utils/asset-source';
|
|
5
4
|
export declare class RolldownBuild {
|
|
6
5
|
#private;
|
|
7
6
|
constructor(inputOptions: InputOptions);
|
|
8
7
|
generate(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
9
8
|
write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
10
|
-
experimental_hmr_rebuild(changedFiles: string[]): Promise<[string, AssetSource]>;
|
|
11
9
|
close(): Promise<void>;
|
|
12
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -80,21 +80,12 @@
|
|
|
80
80
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@parcel/watcher": "2.4.1",
|
|
84
|
-
"chokidar": "3.6.0",
|
|
85
|
-
"connect": "3.7.0",
|
|
86
|
-
"watchpack": "2.4.2",
|
|
87
|
-
"ws": "8.18.0",
|
|
88
83
|
"zod": "^3.23.8"
|
|
89
84
|
},
|
|
90
85
|
"devDependencies": {
|
|
91
86
|
"@napi-rs/cli": "^3.0.0-alpha.60",
|
|
92
87
|
"@napi-rs/wasm-runtime": "^0.2.4",
|
|
93
|
-
"@types/connect": "3.4.38",
|
|
94
88
|
"@types/lodash-es": "^4.17.12",
|
|
95
|
-
"@types/serve-static": "1.13.6",
|
|
96
|
-
"@types/watchpack": "2.4.2",
|
|
97
|
-
"@types/ws": "8.5.12",
|
|
98
89
|
"colorette": "^2.0.20",
|
|
99
90
|
"consola": "^3.2.3",
|
|
100
91
|
"cross-env": "^7.0.3",
|
|
@@ -114,21 +105,21 @@
|
|
|
114
105
|
"why-is-node-running": "^3.0.0",
|
|
115
106
|
"zod-to-json-schema": "^3.23.2",
|
|
116
107
|
"@rolldown/testing": "0.0.1",
|
|
117
|
-
"rolldown": "0.
|
|
108
|
+
"rolldown": "0.14.0"
|
|
118
109
|
},
|
|
119
110
|
"optionalDependencies": {
|
|
120
|
-
"@rolldown/binding-darwin-
|
|
121
|
-
"@rolldown/binding-darwin-
|
|
122
|
-
"@rolldown/binding-
|
|
123
|
-
"@rolldown/binding-linux-
|
|
124
|
-
"@rolldown/binding-
|
|
125
|
-
"@rolldown/binding-linux-arm64-
|
|
126
|
-
"@rolldown/binding-linux-x64-
|
|
127
|
-
"@rolldown/binding-linux-x64-
|
|
128
|
-
"@rolldown/binding-
|
|
129
|
-
"@rolldown/binding-win32-ia32-msvc": "0.
|
|
130
|
-
"@rolldown/binding-win32-
|
|
131
|
-
"@rolldown/binding-
|
|
111
|
+
"@rolldown/binding-darwin-arm64": "0.14.0",
|
|
112
|
+
"@rolldown/binding-darwin-x64": "0.14.0",
|
|
113
|
+
"@rolldown/binding-linux-arm-gnueabihf": "0.14.0",
|
|
114
|
+
"@rolldown/binding-linux-arm64-musl": "0.14.0",
|
|
115
|
+
"@rolldown/binding-freebsd-x64": "0.14.0",
|
|
116
|
+
"@rolldown/binding-linux-arm64-gnu": "0.14.0",
|
|
117
|
+
"@rolldown/binding-linux-x64-musl": "0.14.0",
|
|
118
|
+
"@rolldown/binding-linux-x64-gnu": "0.14.0",
|
|
119
|
+
"@rolldown/binding-win32-arm64-msvc": "0.14.0",
|
|
120
|
+
"@rolldown/binding-win32-ia32-msvc": "0.14.0",
|
|
121
|
+
"@rolldown/binding-win32-x64-msvc": "0.14.0",
|
|
122
|
+
"@rolldown/binding-wasm32-wasi": "0.14.0"
|
|
132
123
|
},
|
|
133
124
|
"scripts": {
|
|
134
125
|
"# Scrips for binding #": "_",
|