-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build --prod
should suppress warnings about circular dependencies in ngfactory.js files
#11135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah I agree. We can probably configure the plugin we use to ignore the factories. Would you be interested in making a PR? It should be fairly straightforward here https://github.com/angular/angular-cli/blob/master/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts#L151-L155 |
I'll gladly submit a PR! It might be early next week by the time I get to it. Thanks for the response! |
…ings in ngfactory files Fixes angular#11135
…ings in ngfactory files Fixes #11135
…ings in ngfactory files Fixes #11135
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Area
Versions
Repro steps
See attached repo. Run
yarn install
ornpm install
, then runng build --prod
.The log given by the failure
Desired functionality
No warnings should be printed.
Mention any other details that might be useful
Having mutually recursive components is a very useful thing to do. The warnings about circular dependencies in the
ngfactory.js
files (which are only produced when using AoT) is just noise, and theCircularDependencyPlugin
config should filter them out.angular-cli-test.zip
The text was updated successfully, but these errors were encountered: