rolldown 1.0.0-beta.7-commit.faf9dd3 → 1.0.0-beta.7-commit.a1a360c
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 +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.mjs +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +1 -1
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/shared/{src-HvyAOKEg.mjs → src-DAi_EMVt.mjs} +41 -9
- package/dist/shared/{src-BvX-yBx9.cjs → src-DobjSb9g.cjs} +33 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/binding.d.ts +7 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/options/input-options.d.ts +3 -0
- package/dist/types/plugin/index.d.ts +1 -0
- package/dist/types/plugin/with-filter.d.ts +8 -0
- package/package.json +14 -16
package/dist/types/binding.d.ts
CHANGED
|
@@ -264,6 +264,10 @@ export interface BindingChecksOptions {
|
|
|
264
264
|
configurationFieldConflict?: boolean
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
+
export interface BindingDebugOptions {
|
|
268
|
+
buildId?: string
|
|
269
|
+
}
|
|
270
|
+
|
|
267
271
|
export interface BindingDeferSyncScanData {
|
|
268
272
|
/** ModuleId */
|
|
269
273
|
id: string
|
|
@@ -403,6 +407,7 @@ export interface BindingInputOptions {
|
|
|
403
407
|
checks?: BindingChecksOptions
|
|
404
408
|
deferSyncScanData?: undefined | (() => BindingDeferSyncScanData[])
|
|
405
409
|
makeAbsoluteExternalsRelative?: BindingMakeAbsoluteExternalsRelative
|
|
410
|
+
debug?: BindingDebugOptions
|
|
406
411
|
}
|
|
407
412
|
|
|
408
413
|
export interface BindingIsolatedDeclarationPluginConfig {
|
|
@@ -410,9 +415,9 @@ export interface BindingIsolatedDeclarationPluginConfig {
|
|
|
410
415
|
}
|
|
411
416
|
|
|
412
417
|
export interface BindingJsonPluginConfig {
|
|
413
|
-
|
|
414
|
-
isBuild?: boolean
|
|
418
|
+
minify?: boolean
|
|
415
419
|
namedExports?: boolean
|
|
420
|
+
stringify?: BindingJsonPluginStringify
|
|
416
421
|
}
|
|
417
422
|
|
|
418
423
|
export type BindingJsonPluginStringify =
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { InternalModuleFormat, NormalizedOutputOptions } from './options/normali
|
|
|
11
11
|
import type { ModuleFormat, OutputOptions, PreRenderedAsset } from './options/output-options';
|
|
12
12
|
import { WatchOptions } from './options/watch-options';
|
|
13
13
|
import type { AsyncPluginHooks, CustomPluginOptions, FunctionPluginHooks, HookFilterExtension, ImportKind, LoadResult, ModuleOptions, ModuleType, ObjectHook, ParallelPluginHooks, PartialResolvedId, Plugin, ResolvedId, ResolveIdExtraOptions, ResolveIdResult, RolldownPlugin, RolldownPluginOption, SourceDescription, TransformResult } from './plugin';
|
|
14
|
+
export { withFilter } from './plugin';
|
|
14
15
|
import type { HookFilter, ModuleTypeFilter, StringFilter } from './plugin/hook-filter';
|
|
15
16
|
import { MinimalPluginContext, PluginContextMeta } from './plugin/minimal-plugin-context';
|
|
16
17
|
import { DefineParallelPluginResult } from './plugin/parallel-plugin';
|
|
@@ -171,6 +171,9 @@ export interface InputOptions {
|
|
|
171
171
|
keepNames?: boolean;
|
|
172
172
|
checks?: ChecksOptions;
|
|
173
173
|
makeAbsoluteExternalsRelative?: MakeAbsoluteExternalsRelative;
|
|
174
|
+
debug?: {
|
|
175
|
+
buildId?: string;
|
|
176
|
+
};
|
|
174
177
|
}
|
|
175
178
|
interface OverwriteInputOptionsForCli {
|
|
176
179
|
external?: string[];
|
|
@@ -19,6 +19,7 @@ import type { ParallelPlugin } from './parallel-plugin';
|
|
|
19
19
|
import type { PluginContext } from './plugin-context';
|
|
20
20
|
import type { TransformPluginContext } from './transform-plugin-context';
|
|
21
21
|
export type ModuleSideEffects = boolean | 'no-treeshake' | null;
|
|
22
|
+
export { withFilter } from './with-filter';
|
|
22
23
|
export type ModuleType = 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | (string & {});
|
|
23
24
|
export type ImportKind = BindingHookResolveIdExtraArgs['kind'];
|
|
24
25
|
export interface CustomPluginOptions {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HookFilterExtension, Plugin } from '..';
|
|
2
|
+
type OverrideFilterObject = {
|
|
3
|
+
transform?: HookFilterExtension<'transform'>['filter'];
|
|
4
|
+
resolveId?: HookFilterExtension<'resolveId'>['filter'];
|
|
5
|
+
load?: HookFilterExtension<'load'>['filter'];
|
|
6
|
+
};
|
|
7
|
+
export declare function withFilter<A, T extends Plugin<A>>(plugin: T, filter_obj: OverrideFilterObject): T;
|
|
8
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.7-commit.
|
|
3
|
+
"version": "1.0.0-beta.7-commit.a1a360c",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -98,7 +98,6 @@
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
-
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
102
101
|
"@napi-rs/cli": "^3.0.0-alpha.74",
|
|
103
102
|
"@napi-rs/wasm-runtime": "^0.2.4",
|
|
104
103
|
"@oxc-node/core": "^0.0.22",
|
|
@@ -121,23 +120,22 @@
|
|
|
121
120
|
"typedoc": "^0.28.0",
|
|
122
121
|
"typescript": "^5.7.3",
|
|
123
122
|
"unbuild": "^3.0.0",
|
|
124
|
-
"why-is-node-running": "^3.0.0",
|
|
125
123
|
"@rolldown/testing": "0.0.1",
|
|
126
|
-
"rolldown": "1.0.0-beta.7-commit.
|
|
124
|
+
"rolldown": "1.0.0-beta.7-commit.a1a360c"
|
|
127
125
|
},
|
|
128
126
|
"optionalDependencies": {
|
|
129
|
-
"@rolldown/binding-darwin-
|
|
130
|
-
"@rolldown/binding-darwin-
|
|
131
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.7-commit.
|
|
132
|
-
"@rolldown/binding-
|
|
133
|
-
"@rolldown/binding-
|
|
134
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.7-commit.
|
|
135
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.7-commit.
|
|
136
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.7-commit.
|
|
137
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.7-commit.
|
|
138
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.7-commit.
|
|
139
|
-
"@rolldown/binding-win32-
|
|
140
|
-
"@rolldown/binding-win32-
|
|
127
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.7-commit.a1a360c",
|
|
128
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.7-commit.a1a360c",
|
|
129
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.7-commit.a1a360c",
|
|
130
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.7-commit.a1a360c",
|
|
131
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.7-commit.a1a360c",
|
|
132
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.7-commit.a1a360c",
|
|
133
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.7-commit.a1a360c",
|
|
134
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.7-commit.a1a360c",
|
|
135
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.7-commit.a1a360c",
|
|
136
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.7-commit.a1a360c",
|
|
137
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.7-commit.a1a360c",
|
|
138
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.7-commit.a1a360c"
|
|
141
139
|
},
|
|
142
140
|
"scripts": {
|
|
143
141
|
"# Scrips for binding #": "_",
|