Skip to content

Commit 215e555

Browse files
antonybudiantohansl
authored andcommitted
fix(aot): exclude spec files from aot (#2758)
1 parent 38d5f2c commit 215e555

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)