Skip to content

Commit

Permalink
Revert to "wrong" resolveId type as this will probably be fixed in a …
Browse files Browse the repository at this point in the history
…separate PR
  • Loading branch information
lukastaegert committed Apr 19, 2019
1 parent 3a0201d commit 4ae4643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/05-plugins.md
Expand Up @@ -347,7 +347,7 @@ or converted into an Array via `Array.from(this.moduleIds)`.

Use Rollup's internal acorn instance to parse code to an AST.

#### `this.resolveId(importee: string, importer: string) => Promise<string | false | null | {id: string, external?: boolean}>`
#### `this.resolveId(importee: string, importer: string) => Promise<string>`

Resolve imports to module ids (i.e. file names). Uses the same hooks as Rollup itself.

Expand Down
2 changes: 1 addition & 1 deletion src/rollup/types.d.ts
Expand Up @@ -124,7 +124,7 @@ export interface PluginContext extends MinimalPluginContext {
isExternal: IsExternal;
moduleIds: IterableIterator<string>;
parse: (input: string, options: any) => ESTree.Program;
resolveId: (id: string, parent: string) => Promise<ResolveIdResult>;
resolveId: (id: string, parent: string) => Promise<string>;
setAssetSource: (assetMetaId: string, source: string | Buffer) => void;
warn: (warning: RollupWarning | string, pos?: { column: number; line: number }) => void;
/** @deprecated */
Expand Down

0 comments on commit 4ae4643

Please sign in to comment.