-
Notifications
You must be signed in to change notification settings - Fork 12k
WIP: Add angular-cli.json option to explicitly specify entryModule
when …
#4077
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
…it can’t be inferred from code In some cases `@ngtools/webpack` is unable to resolve the application entry module automatically. This commit exposes `entryModule` option of `AotPlugin` in angular-cli.json so that you can specify it by hand.
entryModule
when …entryModule
when …
Please @hansl @filipesilva can you point me in right direction with appveyor failure? can't reproduce it on my machine :( |
And also please suggest a proper place and way to cover the changes with tests |
@hansl is the appropriate person to review this PR. Meanwhile though, can you provide a test case that would break without this enhancement? Regarding appveyor, I think it was having some trouble a bit ago. It shouldn't be relevant to your PR atm. |
@filipesilva I have the following test case, just can't figure out how and where to properly incorporate it into the test suite:
I know this is somewhat contrived example, it is just to show the static resolver is not 100% bulletproof. |
#2887 (comment) -- the workaround suggested in this comment also breaks resolution |
This is a use case we need to fix, rather than work around. I'll take a look at it. |
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. |
…it can’t be inferred from code
In some cases
@ngtools/webpack
is unable to resolve the application entry module automatically.This commit exposes
entryModule
option ofAotPlugin
in angular-cli.json so that you can specify it by hand.