rolldown 1.0.0-beta.3-commit.98f16a0 → 1.0.0-beta.3-commit.d298c0b
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 +4 -4
- package/dist/cjs/experimental-index.cjs +2 -2
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/parallel-plugin-worker.cjs +2 -2
- package/dist/cjs/parse-ast-index.cjs +1 -1
- package/dist/esm/cli.mjs +4 -4
- package/dist/esm/experimental-index.mjs +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/parallel-plugin-worker.mjs +2 -2
- package/dist/esm/parse-ast-index.mjs +1 -1
- package/dist/shared/{parse-ast-index-CSo7-trQ.mjs → parse-ast-index-Aeq00bwr.mjs} +0 -1
- package/dist/shared/{parse-ast-index-DtSwpkV3.cjs → parse-ast-index-CQpWnODq.cjs} +0 -1
- package/dist/shared/{prompt-zTLhvFXo.mjs → prompt-CxK9euq3.mjs} +2 -2
- package/dist/shared/{prompt-Dh7e4K1i.cjs → prompt-ZZScCEWI.cjs} +2 -2
- package/dist/shared/{src-Bkdoz1UK.mjs → src-CeA4I13P.mjs} +2025 -1988
- package/dist/shared/{src-DOQfmgRW.cjs → src-GI88yV1N.cjs} +2025 -1988
- package/dist/types/binding.d.ts +11 -8
- package/dist/types/options/input-options.d.ts +0 -1
- package/dist/types/plugin/plugin-context.d.ts +2 -2
- package/dist/types/types/rolldown-output.d.ts +2 -0
- package/dist/types/types/sourcemap.d.ts +2 -1
- package/dist/types/utils/validator.d.ts +1 -2
- package/package.json +17 -17
package/dist/types/binding.d.ts
CHANGED
|
@@ -397,6 +397,8 @@ export interface BindingJsonSourcemap {
|
|
|
397
397
|
sources?: Array<string | undefined | null>
|
|
398
398
|
sourcesContent?: Array<string | undefined | null>
|
|
399
399
|
names?: Array<string>
|
|
400
|
+
debugId?: string
|
|
401
|
+
x_google_ignoreList?: Array<number>
|
|
400
402
|
}
|
|
401
403
|
|
|
402
404
|
export interface BindingJsWatchChangeEvent {
|
|
@@ -1033,21 +1035,22 @@ export interface ParserOptions {
|
|
|
1033
1035
|
* (non-standard) `ParenthesizedExpression` nodes that have a single `expression` property
|
|
1034
1036
|
* containing the expression inside parentheses.
|
|
1035
1037
|
*
|
|
1036
|
-
*
|
|
1038
|
+
* @default true
|
|
1037
1039
|
*/
|
|
1038
1040
|
preserveParens?: boolean
|
|
1041
|
+
/**
|
|
1042
|
+
* Produce semantic errors with an additional AST pass.
|
|
1043
|
+
* Semantic errors depend on symbols and scopes, where the parser does not construct.
|
|
1044
|
+
* This adds a small performance overhead.
|
|
1045
|
+
*
|
|
1046
|
+
* @default false
|
|
1047
|
+
*/
|
|
1048
|
+
showSemanticErrors?: boolean
|
|
1039
1049
|
}
|
|
1040
1050
|
|
|
1041
1051
|
/** Parse synchronously. */
|
|
1042
1052
|
export declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | undefined | null): ParseResult
|
|
1043
1053
|
|
|
1044
|
-
/**
|
|
1045
|
-
* Parse without returning anything.
|
|
1046
|
-
*
|
|
1047
|
-
* This is for benchmark purposes such as measuring napi communication overhead.
|
|
1048
|
-
*/
|
|
1049
|
-
export declare function parseWithoutReturn(filename: string, sourceText: string, options?: ParserOptions | undefined | null): void
|
|
1050
|
-
|
|
1051
1054
|
export interface PreRenderedChunk {
|
|
1052
1055
|
name: string
|
|
1053
1056
|
isEntry: boolean
|
|
@@ -23,7 +23,7 @@ export interface EmittedChunk {
|
|
|
23
23
|
id: string;
|
|
24
24
|
importer?: string;
|
|
25
25
|
}
|
|
26
|
-
export type EmittedFile = EmittedAsset;
|
|
26
|
+
export type EmittedFile = EmittedAsset | EmittedChunk;
|
|
27
27
|
export interface PluginContextResolveOptions {
|
|
28
28
|
skipSelf?: boolean;
|
|
29
29
|
custom?: CustomPluginOptions;
|
|
@@ -45,7 +45,7 @@ export declare class PluginContext extends MinimalPluginContext {
|
|
|
45
45
|
resolveDependencies?: boolean;
|
|
46
46
|
} & Partial<PartialNull<ModuleOptions>>): Promise<ModuleInfo>;
|
|
47
47
|
resolve(source: string, importer?: string, options?: PluginContextResolveOptions): Promise<ResolvedId | null>;
|
|
48
|
-
emitFile: (file:
|
|
48
|
+
emitFile: (file: EmittedFile) => string;
|
|
49
49
|
private getAssetFileNames;
|
|
50
50
|
getFileName(referenceId: string): string;
|
|
51
51
|
getModuleIds(): IterableIterator<string>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BindingSourcemap } from '../binding';
|
|
2
|
+
import type { SourceMap } from './rolldown-output';
|
|
2
3
|
export interface ExistingRawSourceMap {
|
|
3
4
|
file?: string | null;
|
|
4
5
|
mappings: string;
|
|
@@ -10,4 +11,4 @@ export interface ExistingRawSourceMap {
|
|
|
10
11
|
x_google_ignoreList?: number[];
|
|
11
12
|
}
|
|
12
13
|
export type SourceMapInput = ExistingRawSourceMap | string | null;
|
|
13
|
-
export declare function bindingifySourcemap(map?: SourceMapInput): undefined | BindingSourcemap;
|
|
14
|
+
export declare function bindingifySourcemap(map?: SourceMapInput | SourceMap): undefined | BindingSourcemap;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ObjectSchema } from '../types/schema';
|
|
2
|
-
import type { TreeshakingOptions } from '../types/module-side-effects';
|
|
3
|
-
export declare function validateTreeShakingOptions(options: TreeshakingOptions): void;
|
|
4
2
|
export declare function validateCliOptions<T>(options: T): [T, string[]?];
|
|
3
|
+
export declare function validateOption<T>(key: 'input' | 'output', options: T): void;
|
|
5
4
|
export declare function getInputCliKeys(): string[];
|
|
6
5
|
export declare function getOutputCliKeys(): string[];
|
|
7
6
|
export declare function getJsonSchema(): ObjectSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.3-commit.
|
|
3
|
+
"version": "1.0.0-beta.3-commit.d298c0b",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
"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"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@oxc-project/types": "0.
|
|
87
|
+
"@oxc-project/types": "0.54.0",
|
|
88
88
|
"@valibot/to-json-schema": "1.0.0-rc.0",
|
|
89
89
|
"valibot": "1.0.0-rc.3"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
|
-
"@oxc-project/runtime": "0.
|
|
92
|
+
"@oxc-project/runtime": "0.54.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependenciesMeta": {
|
|
95
95
|
"@oxc-project/runtime": {
|
|
@@ -121,22 +121,22 @@
|
|
|
121
121
|
"typescript": "^5.7.3",
|
|
122
122
|
"unbuild": "^3.0.0",
|
|
123
123
|
"why-is-node-running": "^3.0.0",
|
|
124
|
-
"rolldown": "
|
|
125
|
-
"
|
|
124
|
+
"@rolldown/testing": "0.0.1",
|
|
125
|
+
"rolldown": "1.0.0-beta.3-commit.d298c0b"
|
|
126
126
|
},
|
|
127
127
|
"optionalDependencies": {
|
|
128
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.
|
|
129
|
-
"@rolldown/binding-
|
|
130
|
-
"@rolldown/binding-
|
|
131
|
-
"@rolldown/binding-
|
|
132
|
-
"@rolldown/binding-
|
|
133
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.
|
|
134
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.
|
|
135
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-
|
|
138
|
-
"@rolldown/binding-win32-
|
|
139
|
-
"@rolldown/binding-win32-
|
|
128
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.d298c0b",
|
|
129
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.d298c0b",
|
|
130
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.d298c0b",
|
|
131
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.d298c0b",
|
|
132
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.d298c0b",
|
|
133
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.d298c0b",
|
|
134
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.d298c0b",
|
|
135
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.d298c0b",
|
|
136
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.d298c0b",
|
|
137
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.d298c0b",
|
|
138
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.d298c0b",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.d298c0b"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|