Skip to content

Interface: TransformPluginContext

Extends

Properties

debug

  • Type: debug: LoggingFunctionWithPosition

Overrides

PluginContext.debug


fs

Inherited from

PluginContext.fs


getModuleInfo

Inherited from

PluginContext.getModuleInfo


info

  • Type: info: LoggingFunctionWithPosition

Overrides

PluginContext.info


meta

Inherited from

PluginContext.meta


pluginName

  • Type: readonly pluginName: string

Inherited from

PluginContext.pluginName


warn

  • Type: warn: LoggingFunctionWithPosition

Overrides

PluginContext.warn

Methods

addWatchFile()

addWatchFile(id): void

Parameters

id

string

Returns

void

Inherited from

PluginContext.addWatchFile


emitFile()

emitFile(file): string

Parameters

file

EmittedFile

Returns

string

Inherited from

PluginContext.emitFile


error()

error(e, pos?): never

Parameters

e

string | RollupError

pos?

number | { column: number; line: number; }

Returns

never

Overrides

PluginContext.error


getCombinedSourcemap()

getCombinedSourcemap(): SourceMap

Returns

SourceMap


getFileName()

getFileName(referenceId): string

Parameters

referenceId

string

Returns

string

Inherited from

PluginContext.getFileName


getModuleIds()

getModuleIds(): IterableIterator<string>

Returns

IterableIterator<string>

Inherited from

PluginContext.getModuleIds


load()

load(options): Promise<ModuleInfo>

Parameters

options

object & Partial<PartialNull<ModuleOptions>>

Returns

Promise<ModuleInfo>

Inherited from

PluginContext.load


parse()

parse(input, options?): Program

Parameters

input

string

options?

ParserOptions | null

Returns

Program

Inherited from

PluginContext.parse


resolve()

resolve(source, importer?, options?): Promise<ResolvedId | null>

Parameters

source

string

importer?

string

options?

PluginContextResolveOptions

Returns

Promise<ResolvedId | null>

Inherited from

PluginContext.resolve

Released under the MIT License.