Comparing version 0.13.2-snapshot-49a453a-20240910003148 to 0.13.2-snapshot-4caa0a9-20240927003238
@@ -160,2 +160,7 @@ type MaybePromise<T> = T | Promise<T> | ||
export interface BindingExperimentalOptions { | ||
strictExecutionOrder?: boolean | ||
disableLiveBindings?: boolean | ||
} | ||
export interface BindingGeneralHookFilter { | ||
@@ -240,2 +245,3 @@ include?: Array<BindingStringOrRegex> | ||
inject?: Array<BindingInjectImportNamed | BindingInjectImportNamespace> | ||
experimental?: BindingExperimentalOptions | ||
} | ||
@@ -430,2 +436,3 @@ | ||
jsxInject?: string | ||
targets?: string | ||
} | ||
@@ -443,6 +450,15 @@ | ||
/** TypeScript Isolated Declarations for Standalone DTS Emit */ | ||
export declare function isolatedDeclaration(filename: string, sourceText: string, options: IsolatedDeclarationsOptions): IsolatedDeclarationsResult | ||
export declare function isolatedDeclaration(filename: string, sourceText: string, options?: IsolatedDeclarationsOptions | undefined | null): IsolatedDeclarationsResult | ||
export interface IsolatedDeclarationsOptions { | ||
sourcemap: boolean | ||
/** | ||
* Do not emit declarations for code that has an @internal annotation in its JSDoc comment. | ||
* This is an internal compiler option; use at your own risk, because the compiler does not check that the result is valid. | ||
* | ||
* Default: `false` | ||
* | ||
* See <https://www.typescriptlang.org/tsconfig/#stripInternal> | ||
*/ | ||
stripInternal?: boolean | ||
sourcemap?: boolean | ||
} | ||
@@ -468,3 +484,3 @@ | ||
* | ||
* @see [@babel/plugin-transform-react-jsx](https://babeljs.io/docs/babel-plugin-transform-react-jsx#options) | ||
* @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#options} | ||
*/ | ||
@@ -486,3 +502,3 @@ export interface ReactBindingOptions { | ||
* | ||
* @see [@babel/plugin-transform-react-jsx-development](https://babeljs.io/docs/babel-plugin-transform-react-jsx-development) | ||
* @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx-development} | ||
*/ | ||
@@ -501,6 +517,8 @@ development?: boolean | ||
/** | ||
* Enables [@babel/plugin-transform-react-pure-annotations](https://babeljs.io/docs/en/babel-plugin-transform-react-pure-annotations). | ||
* Enables `@babel/plugin-transform-react-pure-annotations`. | ||
* | ||
* It will mark top-level React method calls as pure for tree shaking. | ||
* | ||
* @see {@link https://babeljs.io/docs/en/babel-plugin-transform-react-pure-annotations} | ||
* | ||
* @default true | ||
@@ -551,4 +569,22 @@ */ | ||
useSpread?: boolean | ||
/** Enable react fast refresh transform */ | ||
refresh?: ReactRefreshBindingOptions | ||
} | ||
export interface ReactRefreshBindingOptions { | ||
/** | ||
* Specify the identifier of the refresh registration variable. | ||
* | ||
* @default `$RefreshReg$`. | ||
*/ | ||
refreshReg?: string | ||
/** | ||
* Specify the identifier of the refresh signature variable. | ||
* | ||
* @default `$RefreshSig$`. | ||
*/ | ||
refreshSig?: string | ||
emitFullSignatures?: boolean | ||
} | ||
export declare function registerPlugins(id: number, plugins: Array<BindingPluginWithIndex>): void | ||
@@ -572,6 +608,8 @@ | ||
mappings?: string | ||
names?: Array<string> | ||
sourceRoot?: string | ||
sources?: Array<string | undefined | null> | ||
sourcesContent?: Array<string | undefined | null> | ||
names?: Array<string> | ||
version: number | ||
x_google_ignoreList?: Array<number> | ||
} | ||
@@ -684,3 +722,3 @@ | ||
*/ | ||
declaration?: boolean | ||
declaration?: IsolatedDeclarationsOptions | ||
/** | ||
@@ -687,0 +725,0 @@ * Rewrite or remove TypeScript import/export declaration extensions. |
@@ -55,6 +55,12 @@ import type { ObjectSchema } from './types'; | ||
enableComposingJsPlugins: z.ZodOptional<z.ZodBoolean>; | ||
strictExecutionOrder: z.ZodOptional<z.ZodBoolean>; | ||
disableLiveBindings: z.ZodOptional<z.ZodBoolean>; | ||
}, "strict", z.ZodTypeAny, { | ||
enableComposingJsPlugins?: boolean | undefined; | ||
strictExecutionOrder?: boolean | undefined; | ||
disableLiveBindings?: boolean | undefined; | ||
}, { | ||
enableComposingJsPlugins?: boolean | undefined; | ||
strictExecutionOrder?: boolean | undefined; | ||
disableLiveBindings?: boolean | undefined; | ||
}>>; | ||
@@ -137,5 +143,13 @@ define: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; | ||
esModule: z.ZodOptional<z.ZodBoolean>; | ||
sourcemapIgnoreList: z.ZodOptional<z.ZodBoolean>; | ||
sourcemapPathTransform: z.ZodOptional<z.ZodUndefined>; | ||
}>, "sourcemapPathTransform">>, "strict", z.ZodTypeAny, { | ||
advancedChunks: z.ZodOptional<z.ZodObject<{ | ||
minSize: z.ZodOptional<z.ZodNumber>; | ||
minShareCount: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
}, { | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
}>>; | ||
}>, "sourcemapIgnoreList" | "sourcemapPathTransform">>, "strict", z.ZodTypeAny, { | ||
external?: string[] | undefined; | ||
@@ -159,3 +173,2 @@ cwd?: string | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
sourcemapIgnoreList?: boolean | undefined; | ||
extend?: boolean | undefined; | ||
@@ -173,9 +186,2 @@ esModule?: boolean | undefined; | ||
minShareCount?: number | undefined; | ||
groups?: { | ||
name: string; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
priority?: number | undefined; | ||
}[] | undefined; | ||
} | undefined; | ||
@@ -204,3 +210,2 @@ version?: boolean | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
sourcemapIgnoreList?: boolean | undefined; | ||
extend?: boolean | undefined; | ||
@@ -218,9 +223,2 @@ esModule?: boolean | undefined; | ||
minShareCount?: number | undefined; | ||
groups?: { | ||
name: string; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
priority?: number | undefined; | ||
}[] | undefined; | ||
} | undefined; | ||
@@ -227,0 +225,0 @@ version?: boolean | undefined; |
@@ -5,3 +5,3 @@ import { RolldownOutput, RolldownOutputAsset, RolldownOutputChunk, SourceMap } from './types/rolldown-output'; | ||
import type { RolldownOptions } from './types/rolldown-options'; | ||
import type { AsyncPluginHooks, CustomPluginOptions, FunctionPluginHooks, ImportKind, LoadResult, ModuleOptions, ObjectHook, ParallelPluginHooks, PartialResolvedId, Plugin, RolldownPlugin, ResolveIdResult, ResolvedId, SourceDescription, TransformResult } from './plugin'; | ||
import type { AsyncPluginHooks, CustomPluginOptions, FunctionPluginHooks, ImportKind, LoadResult, ModuleOptions, ModuleType, ObjectHook, ParallelPluginHooks, PartialResolvedId, Plugin, RolldownPlugin, ResolveIdResult, ResolvedId, SourceDescription, TransformResult } from './plugin'; | ||
import { DefineParallelPluginResult } from './plugin/parallel-plugin'; | ||
@@ -24,4 +24,4 @@ import { defineConfig } from './utils/define-config'; | ||
export declare const VERSION: string; | ||
export type { RolldownOutputAsset, RolldownOutputChunk, RolldownOptions, RolldownOutput, RolldownBuild, InputOptions, NormalizedInputOptions, OutputOptions, NormalizedOutputOptions, Plugin, RolldownPlugin, DefineParallelPluginResult, ConfigExport, ImportKind, InputOption, ExternalOption, ModuleFormat, InternalModuleFormat, LoadResult, TransformResult, ResolveIdResult, PluginContext, TransformPluginContext, ObjectHook, RenderedChunk, PreRenderedChunk, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, }; | ||
export type { RolldownOutputAsset, RolldownOutputChunk, RolldownOptions, RolldownOutput, RolldownBuild, InputOptions, NormalizedInputOptions, OutputOptions, NormalizedOutputOptions, Plugin, RolldownPlugin, DefineParallelPluginResult, ConfigExport, ImportKind, InputOption, ExternalOption, ModuleFormat, ModuleType, InternalModuleFormat, LoadResult, TransformResult, ResolveIdResult, PluginContext, TransformPluginContext, ObjectHook, RenderedChunk, PreRenderedChunk, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, }; | ||
export type { RolldownOutput as RollupOutput, RolldownOptions as RollupOptions, RolldownBuild as RollupBuild, RolldownOutputChunk as OutputChunk, RolldownOutputAsset as OutputAsset, }; | ||
export type { RollupError, RollupLog, LoggingFunction } from './rollup'; |
@@ -6,9 +6,10 @@ import type { LoggingFunction, LogHandler, RollupError } from '../rollup'; | ||
import type { NormalizedInputOptions } from '../options/normalized-input-options'; | ||
export interface MinimalPluginContext { | ||
export declare class MinimalPluginContext { | ||
debug: LoggingFunction; | ||
error: (error: RollupError | string) => never; | ||
info: LoggingFunction; | ||
warn: LoggingFunction; | ||
readonly error: (error: RollupError | string) => never; | ||
constructor(options: NormalizedInputOptions, plugin: Plugin); | ||
} | ||
export declare function getLogger(plugins: Plugin[], onLog: LogHandler, logLevel: LogLevelOption): LogHandler; | ||
export declare const getOnLog: (config: InputOptions, logLevel: LogLevelOption, printLog?: LogHandler) => NormalizedInputOptions["onLog"]; |
@@ -54,6 +54,12 @@ import type { RolldownPluginRec } from '../plugin'; | ||
enableComposingJsPlugins: z.ZodOptional<z.ZodBoolean>; | ||
strictExecutionOrder: z.ZodOptional<z.ZodBoolean>; | ||
disableLiveBindings: z.ZodOptional<z.ZodBoolean>; | ||
}, "strict", z.ZodTypeAny, { | ||
enableComposingJsPlugins?: boolean | undefined; | ||
strictExecutionOrder?: boolean | undefined; | ||
disableLiveBindings?: boolean | undefined; | ||
}, { | ||
enableComposingJsPlugins?: boolean | undefined; | ||
strictExecutionOrder?: boolean | undefined; | ||
disableLiveBindings?: boolean | undefined; | ||
}>>; | ||
@@ -88,2 +94,4 @@ define: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; | ||
enableComposingJsPlugins?: boolean | undefined; | ||
strictExecutionOrder?: boolean | undefined; | ||
disableLiveBindings?: boolean | undefined; | ||
} | undefined; | ||
@@ -118,2 +126,4 @@ define?: Record<string, string> | undefined; | ||
enableComposingJsPlugins?: boolean | undefined; | ||
strictExecutionOrder?: boolean | undefined; | ||
disableLiveBindings?: boolean | undefined; | ||
} | undefined; | ||
@@ -171,6 +181,12 @@ define?: Record<string, string> | undefined; | ||
enableComposingJsPlugins: z.ZodOptional<z.ZodBoolean>; | ||
strictExecutionOrder: z.ZodOptional<z.ZodBoolean>; | ||
disableLiveBindings: z.ZodOptional<z.ZodBoolean>; | ||
}, "strict", z.ZodTypeAny, { | ||
enableComposingJsPlugins?: boolean | undefined; | ||
strictExecutionOrder?: boolean | undefined; | ||
disableLiveBindings?: boolean | undefined; | ||
}, { | ||
enableComposingJsPlugins?: boolean | undefined; | ||
strictExecutionOrder?: boolean | undefined; | ||
disableLiveBindings?: boolean | undefined; | ||
}>>; | ||
@@ -177,0 +193,0 @@ define: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; |
@@ -203,5 +203,13 @@ import type { PreRenderedChunk, RenderedChunk } from '../binding'; | ||
esModule: z.ZodOptional<z.ZodBoolean>; | ||
sourcemapIgnoreList: z.ZodOptional<z.ZodBoolean>; | ||
sourcemapPathTransform: z.ZodOptional<z.ZodUndefined>; | ||
}>, "sourcemapPathTransform">, "strict", z.ZodTypeAny, { | ||
advancedChunks: z.ZodOptional<z.ZodObject<{ | ||
minSize: z.ZodOptional<z.ZodNumber>; | ||
minShareCount: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
}, { | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
}>>; | ||
}>, "sourcemapIgnoreList" | "sourcemapPathTransform">, "strict", z.ZodTypeAny, { | ||
footer?: string | undefined; | ||
@@ -216,3 +224,2 @@ banner?: string | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
sourcemapIgnoreList?: boolean | undefined; | ||
extend?: boolean | undefined; | ||
@@ -230,9 +237,2 @@ esModule?: boolean | undefined; | ||
minShareCount?: number | undefined; | ||
groups?: { | ||
name: string; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
priority?: number | undefined; | ||
}[] | undefined; | ||
} | undefined; | ||
@@ -249,3 +249,2 @@ }, { | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
sourcemapIgnoreList?: boolean | undefined; | ||
extend?: boolean | undefined; | ||
@@ -263,9 +262,2 @@ esModule?: boolean | undefined; | ||
minShareCount?: number | undefined; | ||
groups?: { | ||
name: string; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
priority?: number | undefined; | ||
}[] | undefined; | ||
} | undefined; | ||
@@ -272,0 +264,0 @@ }>; |
@@ -1,5 +0,5 @@ | ||
import type { RollupError, LoggingFunction } from '../rollup'; | ||
import type { BindingPluginContext } from '../binding'; | ||
import type { NormalizedInputOptions } from '../options/normalized-input-options'; | ||
import type { CustomPluginOptions, Plugin, ResolvedId } from './index'; | ||
import { MinimalPluginContext } from '../log/logger'; | ||
import { AssetSource } from '../utils/asset-source'; | ||
@@ -24,7 +24,3 @@ import { ModuleInfo } from '../types/module-info'; | ||
} | ||
export declare class PluginContext { | ||
debug: LoggingFunction; | ||
info: LoggingFunction; | ||
warn: LoggingFunction; | ||
readonly error: (error: RollupError | string) => never; | ||
export declare class PluginContext extends MinimalPluginContext { | ||
readonly resolve: (source: string, importer?: string, options?: PluginContextResolveOptions) => Promise<ResolvedId | null>; | ||
@@ -31,0 +27,0 @@ readonly emitFile: (file: EmittedAsset) => string; |
{ | ||
"name": "rolldown", | ||
"version": "0.13.2-snapshot-49a453a-20240910003148", | ||
"version": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.", | ||
@@ -106,17 +106,17 @@ "homepage": "https://rolldown.rs/", | ||
"@rolldown/testing": "0.0.1", | ||
"rolldown": "0.13.2-snapshot-49a453a-20240910003148" | ||
"rolldown": "0.13.2-snapshot-4caa0a9-20240927003238" | ||
}, | ||
"optionalDependencies": { | ||
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-49a453a-20240910003148", | ||
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-49a453a-20240910003148", | ||
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-49a453a-20240910003148", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-49a453a-20240910003148", | ||
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-49a453a-20240910003148", | ||
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-49a453a-20240910003148", | ||
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-49a453a-20240910003148", | ||
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-49a453a-20240910003148", | ||
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-49a453a-20240910003148", | ||
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-49a453a-20240910003148", | ||
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-49a453a-20240910003148", | ||
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-49a453a-20240910003148" | ||
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-4caa0a9-20240927003238" | ||
}, | ||
@@ -140,3 +140,3 @@ "scripts": { | ||
"# Scrips for checking #": "_", | ||
"test": "cross-env ROLLDOWN_TEST=1 vitest run --reporter verbose --hideSkippedTests", | ||
"test": "cross-env RUST_BACKTRACE=1 ROLLDOWN_TEST=1 vitest run --reporter verbose --hideSkippedTests", | ||
"test:update": "vitest run -u", | ||
@@ -143,0 +143,0 @@ "type-check": "tsc" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
641052
15857