Title: (AngularCompilerPlugin) AOT with lazy modules without angular/router · Issue #8142 · angular/angular-cli · GitHub
Open Graph Title: (AngularCompilerPlugin) AOT with lazy modules without angular/router · Issue #8142 · angular/angular-cli
X Title: (AngularCompilerPlugin) AOT with lazy modules without angular/router · Issue #8142 · angular/angular-cli
Description: Hi, I try to enable AOT compilation in our project with lazy modules. We do not use @angular/router and lazy modules loads like this: require.ensure([], () => { resolve(require("../+profile/profile.module.ts")["ProfileModule"]); }, err =...
Open Graph Description: Hi, I try to enable AOT compilation in our project with lazy modules. We do not use @angular/router and lazy modules loads like this: require.ensure([], () => { resolve(require("../+profile/profile...
X Description: Hi, I try to enable AOT compilation in our project with lazy modules. We do not use @angular/router and lazy modules loads like this: require.ensure([], () => { resolve(require("../+profile...
Opengraph URL: https://github.com/angular/angular-cli/issues/8142
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"(AngularCompilerPlugin) AOT with lazy modules without angular/router","articleBody":"Hi,\r\n\r\nI try to enable AOT compilation in our project with lazy modules. We do not use `@angular/router` and lazy modules loads like this:\r\n\r\n```\r\nrequire.ensure([], () => {\r\n resolve(require(\"../+profile/profile.module.ts\")[\"ProfileModule\"]);\r\n }, err => reject(err), \"profile\");\r\n```\r\n\r\nAt runtime I discover that `AngularCompilerPlugin` do not override `ProfileModule` to `ProfileModuleNgFactory`. The plugin can not determine lazy modules in our application because we don't use `angular/router` and instantinate modules by using angular low level api for that (like router).\r\n\r\nHow can I achieve this? \r\n\r\nI think the best way is to remove explicit binding from `@angular/router` for determining lazy modules. Also you can provide additional options for explicit lazy modules config.\r\n\r\n","author":{"url":"https://github.com/bukharin","@type":"Person","name":"bukharin"},"datePublished":"2017-10-21T18:51:19Z","url":"https://github.com/angular/angular-cli/issues/8142"}
| 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:6e596e01-02f9-1adc-6654-8cb08dc5627e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B108:DB09F:112D2CA:15EE8B1:6B011C92 |
| html-safe-nonce | e215f8daf15f166113366345b8049a75005e5ab50128e2fc77a33145af0cc295 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTA4OkRCMDlGOjExMkQyQ0E6MTVFRThCMTo2QjAxMUM5MiIsInZpc2l0b3JfaWQiOiIxMjQ4OTQxNzE4Mzk0MDUyMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 62415b2d619774c4361550efbfab6fbd390c96b1fe7d462667461f09a5266ffb |
| hovercard-subject-tag | issue:267404823 |
| 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/8142/issue_layout |
| twitter:image | https://opengraph.githubassets.com/07a5b8eb89ddde9150cbb73f04a87fa21f52c6fb638967d684e2398b40abec1a/angular/angular-cli/issues/8142 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/07a5b8eb89ddde9150cbb73f04a87fa21f52c6fb638967d684e2398b40abec1a/angular/angular-cli/issues/8142 |
| og:image:alt | Hi, I try to enable AOT compilation in our project with lazy modules. We do not use @angular/router and lazy modules loads like this: require.ensure([], () => { resolve(require("../+profile/profile... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bukharin |
| 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