Comparing version 0.14.0-snapshot-d18e8cb-20241112003342 to 0.14.0-snapshot-d5e797b-20241114003621
@@ -51,2 +51,3 @@ type MaybePromise<T> = T | Promise<T> | ||
export declare class BindingPluginContext { | ||
load(specifier: string, fn: () => void): Promise<void> | ||
resolve(specifier: string, importer?: string | undefined | null, extraOptions?: BindingPluginContextResolveOptions | undefined | null): Promise<BindingPluginContextResolvedId | null> | ||
@@ -53,0 +54,0 @@ emitFile(file: BindingEmittedAsset): string |
import type { BindingPluginContext } from '../binding'; | ||
import type { NormalizedInputOptions } from '../options/normalized-input-options'; | ||
import type { CustomPluginOptions, Plugin, ResolvedId } from './index'; | ||
import type { CustomPluginOptions, ModuleOptions, Plugin, ResolvedId } from './index'; | ||
import { MinimalPluginContext } from '../log/logger'; | ||
@@ -9,2 +9,3 @@ import { AssetSource } from '../utils/asset-source'; | ||
import { SYMBOL_FOR_RESOLVE_CALLER_THAT_SKIP_SELF } from '../constants/plugin-context'; | ||
import { PartialNull } from '../types/utils'; | ||
export interface EmittedAsset { | ||
@@ -26,2 +27,6 @@ type: 'asset'; | ||
export declare class PluginContext extends MinimalPluginContext { | ||
readonly load: (options: { | ||
id: string; | ||
resolveDependencies?: boolean; | ||
} & Partial<PartialNull<ModuleOptions>>) => Promise<ModuleInfo>; | ||
readonly resolve: (source: string, importer?: string, options?: PluginContextResolveOptions) => Promise<ResolvedId | null>; | ||
@@ -28,0 +33,0 @@ readonly emitFile: (file: EmittedAsset) => string; |
@@ -30,3 +30,6 @@ import { BindingWatcher } from './binding'; | ||
} | { | ||
code: 'ERROR'; /** error: RollupError; result: RollupBuild | null **/ | ||
code: 'ERROR'; | ||
error: { | ||
message: string; | ||
}; | ||
}; |
{ | ||
"name": "rolldown", | ||
"version": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"version": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.", | ||
@@ -108,17 +108,17 @@ "homepage": "https://rolldown.rs/", | ||
"@rolldown/testing": "0.0.1", | ||
"rolldown": "0.14.0-snapshot-d18e8cb-20241112003342" | ||
"rolldown": "0.14.0-snapshot-d5e797b-20241114003621" | ||
}, | ||
"optionalDependencies": { | ||
"@rolldown/binding-darwin-arm64": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-darwin-x64": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-freebsd-x64": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-linux-arm64-gnu": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-linux-arm64-musl": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-linux-x64-gnu": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-linux-x64-musl": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-win32-arm64-msvc": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-win32-ia32-msvc": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-win32-x64-msvc": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-wasm32-wasi": "0.14.0-snapshot-d18e8cb-20241112003342" | ||
"@rolldown/binding-darwin-arm64": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"@rolldown/binding-darwin-x64": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"@rolldown/binding-freebsd-x64": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"@rolldown/binding-linux-arm64-musl": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"@rolldown/binding-linux-x64-gnu": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"@rolldown/binding-linux-x64-musl": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"@rolldown/binding-linux-arm64-gnu": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"@rolldown/binding-wasm32-wasi": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"@rolldown/binding-win32-arm64-msvc": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"@rolldown/binding-win32-x64-msvc": "0.14.0-snapshot-d5e797b-20241114003621", | ||
"@rolldown/binding-win32-ia32-msvc": "0.14.0-snapshot-d5e797b-20241114003621" | ||
}, | ||
@@ -125,0 +125,0 @@ "scripts": { |
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
708267
17720