Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
889 bytes
|
Line | |
---|
1 | /// <amd-module name="@angular/compiler-cli/ngcc/src/dependencies/commonjs_dependency_host" />
|
---|
2 | import { AbsoluteFsPath } from '../../../src/ngtsc/file_system';
|
---|
3 | import { DependencyHostBase } from './dependency_host';
|
---|
4 | /**
|
---|
5 | * Helper functions for computing dependencies.
|
---|
6 | */
|
---|
7 | export declare class CommonJsDependencyHost extends DependencyHostBase {
|
---|
8 | protected canSkipFile(fileContents: string): boolean;
|
---|
9 | protected extractImports(file: AbsoluteFsPath, fileContents: string): Set<string>;
|
---|
10 | }
|
---|
11 | /**
|
---|
12 | * Check whether a source file needs to be parsed for imports.
|
---|
13 | * This is a performance short-circuit, which saves us from creating
|
---|
14 | * a TypeScript AST unnecessarily.
|
---|
15 | *
|
---|
16 | * @param source The content of the source file to check.
|
---|
17 | *
|
---|
18 | * @returns false if there are definitely no require calls
|
---|
19 | * in this file, true otherwise.
|
---|
20 | */
|
---|
21 | export declare function hasRequireCalls(source: string): boolean;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.