From 4ae46436da9fcdb4fcc3dd98d909f5549e43f2a6 Mon Sep 17 00:00:00 2001 From: Lukas Taegert-Atkinson Date: Fri, 19 Apr 2019 08:40:25 +0200 Subject: [PATCH] Revert to "wrong" resolveId type as this will probably be fixed in a separate PR --- docs/05-plugins.md | 2 +- src/rollup/types.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/05-plugins.md b/docs/05-plugins.md index acc95351ea2..0c966498a48 100644 --- a/docs/05-plugins.md +++ b/docs/05-plugins.md @@ -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` +#### `this.resolveId(importee: string, importer: string) => Promise` Resolve imports to module ids (i.e. file names). Uses the same hooks as Rollup itself. diff --git a/src/rollup/types.d.ts b/src/rollup/types.d.ts index 002c8bc50c3..2e3156befc1 100644 --- a/src/rollup/types.d.ts +++ b/src/rollup/types.d.ts @@ -124,7 +124,7 @@ export interface PluginContext extends MinimalPluginContext { isExternal: IsExternal; moduleIds: IterableIterator; parse: (input: string, options: any) => ESTree.Program; - resolveId: (id: string, parent: string) => Promise; + resolveId: (id: string, parent: string) => Promise; setAssetSource: (assetMetaId: string, source: string | Buffer) => void; warn: (warning: RollupWarning | string, pos?: { column: number; line: number }) => void; /** @deprecated */