I use @ngtools/webpack directly in angular-app (withou angular-cli) and i got unexpected behavior. Aot plugin build all ts-files in project, but some files not imported by entrypoint file (main.ts). For expample - ts-loader build only files that find by imports in entrypoint file (main.ts). This is bug or feature?
I created mini-repo: https://github.com/alxpsr/ngtools-unexpected Run npm run build:aot and you got an error. But if you run npm run build:tsloader - the build will not have an error.
If this is not a bug, please tell me what the difference between this two builds?
P.S. I know about files and include option in tsconfig.json and i can specify files more clearly there. I want to understand the differences between these two builds. ^_^