2.将 angularCompilerOptions 添加到 tsconfig.json 文件中

...
"angularCompilerOptions": {
    "genDir": "./ngfactory"
}
...

这是编译器的输出文件夹。