1 | import Plugin, { Tree } from 'broccoli-plugin';
|
2 | import Package from './package';
|
3 | export interface Import {
|
4 | path: string;
|
5 | package: Package;
|
6 | specifier: string;
|
7 | isDynamic: boolean;
|
8 | }
|
9 | export default class Analyzer extends Plugin {
|
10 | private pack;
|
11 | private previousTree;
|
12 | private modules;
|
13 | private paths;
|
14 | private parse;
|
15 | constructor(inputTree: Tree, pack: Package);
|
16 | setupParser(): Promise<void>;
|
17 | readonly imports: Import[];
|
18 | build(): Promise<void>;
|
19 | private getPatchset;
|
20 | private matchesExtension;
|
21 | removeImports(relativePath: string): void;
|
22 | updateImports(relativePath: string, source: string): void;
|
23 | private parseImports;
|
24 | }
|