Title: Suggestion to use Closure Compiler for Ahead of Time Compilation · Issue #2981 · angular/angular-cli · GitHub
Open Graph Title: Suggestion to use Closure Compiler for Ahead of Time Compilation · Issue #2981 · angular/angular-cli
X Title: Suggestion to use Closure Compiler for Ahead of Time Compilation · Issue #2981 · angular/angular-cli
Description: Suggestion to use Closure Compiler for Ahead of Time Compilation after generating ngfactory files. OS? Windows 10 Versions angular-cli: 1.0.0-beta.19 node: 6.9.1 I am sure Angular CLI team is working hard on the features like AoT with su...
Open Graph Description: Suggestion to use Closure Compiler for Ahead of Time Compilation after generating ngfactory files. OS? Windows 10 Versions angular-cli: 1.0.0-beta.19 node: 6.9.1 I am sure Angular CLI team is worki...
X Description: Suggestion to use Closure Compiler for Ahead of Time Compilation after generating ngfactory files. OS? Windows 10 Versions angular-cli: 1.0.0-beta.19 node: 6.9.1 I am sure Angular CLI team is worki...
Opengraph URL: https://github.com/angular/angular-cli/issues/2981
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggestion to use Closure Compiler for Ahead of Time Compilation","articleBody":"Suggestion to use Closure Compiler for Ahead of Time Compilation after generating ngfactory files.\r\n\r\n**OS?**\r\nWindows 10\r\n\r\n**Versions**\r\nangular-cli: 1.0.0-beta.19\r\nnode: 6.9.1\r\n\r\nI am sure Angular CLI team is working hard on the features like AoT with support for Lazy Loading.\r\n\r\nWhile you finalize this feature, I wanted to suggest you to use Closure Compiler after generating ngfactory files using ngc, because it seems to be the only tool that would transpile the ES2015 Rollup Bundle to ES5 with 100% reliability.\r\n\r\nWhile compiling large projects with ngc (after generating ngfactory), it returns Heep Errors. Please have a look at:\r\n\r\nhttps://github.com/angular/angular/issues/12184\r\n\r\nI came across this repository, https://github.com/steveblue/angular2-rollup and in **Production** notes it explains why Closure Compile is a better option. Please have a look at:\r\n\r\nhttps://github.com/steveblue/angular2-rollup#production\r\n\r\nWhen using Angular CLI in my current project:\r\n\r\nIf I use lazy loading and build with --prod --aot, it just generate main bundle and when I run it returns missing module error.\r\n\r\nIf I remove lazyloading and build with --prod --aot, its returns same heep error which I mentioned above.","author":{"url":"https://github.com/naveedahmed1","@type":"Person","name":"naveedahmed1"},"datePublished":"2016-11-02T00:37:14Z","url":"https://github.com/angular/angular-cli/issues/2981"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7a3a4b88-4b2f-7ea0-2d3f-4cae61ef2905 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A508:F7C4C:2082732:2B7D8FE:6B0188CE |
| html-safe-nonce | 2db31130c51dcb4a5b7c5a6d4a69c84eb5bb20f3bfc7e19e0435163326fae3fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTA4OkY3QzRDOjIwODI3MzI6MkI3RDhGRTo2QjAxODhDRSIsInZpc2l0b3JfaWQiOiIyMTkxMjczNDE0MDYzMzkyOTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8a0fa68eb9715c4023ff85972cdd2a42244fcec2540440ca31b06e320d3ff899 |
| hovercard-subject-tag | issue:186684907 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/2981/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3235f5599a22131c83499780aeccf54e5b573bd5d9e8981e2597b5387eaf07f0/angular/angular-cli/issues/2981 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3235f5599a22131c83499780aeccf54e5b573bd5d9e8981e2597b5387eaf07f0/angular/angular-cli/issues/2981 |
| og:image:alt | Suggestion to use Closure Compiler for Ahead of Time Compilation after generating ngfactory files. OS? Windows 10 Versions angular-cli: 1.0.0-beta.19 node: 6.9.1 I am sure Angular CLI team is worki... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | naveedahmed1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width