Properties
addWatchFile
addWatchFile: ((id) => void)
cache
emitFile
error
error: ((error) => never)
Type declaration
- (error): never
Returns never
getFileName
getFileName: ((fileReferenceId) => string)
Type declaration
- (fileReferenceId): string
Returns string
getModuleIds
getModuleInfo
getWatchFiles
getWatchFiles: (() => string[])
Type declaration
- (): string[]
Returns string[]
load
parse
resolve
Type declaration
- (source, importer?, options?): Promise<null | ResolvedId>
Parameters
- source: string
Optional importer: stringOptional options: {
attributes?: Record<string, string>;
custom?: CustomPluginOptions;
isEntry?: boolean;
skipSelf?: boolean;
}Optional attributes?: Record<string, string>
Optional isEntry?: boolean
Optional skipSelf?: boolean
setAssetSource
setAssetSource: ((assetReferenceId, source) => void)
Type declaration
- (assetReferenceId, source): void
Parameters
- assetReferenceId: string
- source: string | Uint8Array
Returns void