Skip to content

Commit c60bfa2

Browse files
antonybudiantoMRHarrison
authored andcommitted
fix(aot): exclude spec files from aot (angular#2758)
1 parent 60e75be commit c60bfa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/webpack/src/plugin.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ export class AotPlugin {
102102
}
103103

104104
const tsConfig = tsc.readConfiguration(options.tsConfigPath, basePath);
105-
this._rootFilePath = tsConfig.parsed.fileNames;
105+
this._rootFilePath = tsConfig.parsed.fileNames
106+
.filter(fileName => !/\.spec\.ts$/.test(fileName));
106107

107108
// Check the genDir.
108109
let genDir = basePath;

0 commit comments

Comments
 (0)