Skip to content

Commit

Permalink
Merge branch 'kellyselden-ImportDescription' into release-0.55.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jan 23, 2018
2 parents b10b268 + 73e555e commit 1e9c60b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,7 @@
* Refactor internal rendering options ([#1900](https://github.com/rollup/rollup/pull/1900))
* Extract internal path resolution ([#1879](https://github.com/rollup/rollup/pull/1879))
* Extract internal bundle option handling ([#1880](https://github.com/rollup/rollup/pull/1880))
* Add import description type ([#1884](https://github.com/rollup/rollup/pull/1884))
* Clean up watch options types ([#1860](https://github.com/rollup/rollup/pull/1860))

## 0.54.1
Expand Down
16 changes: 8 additions & 8 deletions src/Module.ts
Expand Up @@ -47,6 +47,13 @@ export interface CommentDescription {
end: number;
}

export interface ImportDescription {
source: string;
specifier: ImportSpecifier | ImportNamespaceSpecifier | ImportDefaultSpecifier;
name: string;
module: Module | ExternalModule | null;
}

export interface ExportDescription {
localName: string;
identifier?: string;
Expand Down Expand Up @@ -118,14 +125,7 @@ export default class Module {
exportAllSources: string[];
id: string;

imports: {
[name: string]: {
source: string;
specifier: ImportSpecifier | ImportNamespaceSpecifier | ImportDefaultSpecifier;
name: string;
module: Module | ExternalModule | null;
}
};
imports: { [name: string]: ImportDescription };
isExternal: false;
magicString: MagicString;
originalCode: string;
Expand Down

0 comments on commit 1e9c60b

Please sign in to comment.