-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: serve e2e-app in aot mode #4833
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
src/e2e-app/main-aot.ts
Outdated
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; | ||
import {E2eAppModuleNgFactory} from './e2e-app-module.ngfactory'; | ||
|
||
platformBrowserDynamic().bootstrapModuleFactory(E2eAppModuleNgFactory); |
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.
Shouldn't this just be platformBrowser
(without the Dynamic
)?
(same for demo-app, now that I notice it)
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.
Yeah I think @josephperrott also had an issue about it but I didn't assign it to myself so I lost track of it. Changed it now.
src/e2e-app/main-aot.ts
Outdated
@@ -0,0 +1,4 @@ | |||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; |
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.
Instead of having a separate main-aot.ts
, we should just make this the main main.ts
; nobody should need to ever run this in JIT mode
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.
I agree. Done!
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.
LGTM
please rebase |
* Starts building the e2e-app in AOT mode
ed203fe
to
3aeace2
Compare
3aeace2
to
0c1c166
Compare
@mmalerba Done. This also includes the fix for the CI failure.
|
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. |
Starts building the e2e-app in AOT mode
This should make our e2e tests on the CI faster and also should be a more advanced testing of AOT compatibility.
Note: As this also makes the e2e-app smaller in payload I will try to find a way to use a RxJS bundle (would speed-up the serving a lot)