-
Notifications
You must be signed in to change notification settings - Fork 11.9k
fix(@angular/cli): use the new compiler API for listLazyRoutes #8136
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
Conversation
0d5ca2a
to
073282e
Compare
@@ -80,14 +80,20 @@ export enum PLATFORM { | |||
Server | |||
} | |||
|
|||
export interface LazyRoute { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this to the private interface instead?
https://github.com/angular/angular-cli/blob/master/packages/%40ngtools/webpack/src/ngtools_api.ts
This file should reflect what we believe the private interface is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can do this after 5.0 is out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
073282e
to
abe14d5
Compare
Before it would try to load the package from the CLI project, as a regular require() call, now it adds a check to see if it can be resolved from the process.cwd(), before doing the previous behaviour.
Replacing the old API. We keep the old API because we need it for JIT (with either --aot=false or unittests). Depends on angular/angular#19836
abe14d5
to
edc0e8b
Compare
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. |
Replacing the old API. We keep the old API because we need it for JIT
(with either --aot=false or unittests).
Depends on angular/angular#19836