Title: Add an option to remove reflect-metadata polyfills from prod bundle · Issue #6325 · angular/angular-cli · GitHub
Open Graph Title: Add an option to remove reflect-metadata polyfills from prod bundle · Issue #6325 · angular/angular-cli
X Title: Add an option to remove reflect-metadata polyfills from prod bundle · Issue #6325 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] feature request Versions. @angular/cli: 1.0.3 node: 6.9.5 os: darwin x64 @angular/animations: 4.2.0-beta.1 @angular/common: 4.2.0-beta.1 @angular/compiler: 4.2.0-beta.1 @angular/core: ...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] feature request Versions. @angular/cli: 1.0.3 node: 6.9.5 os: darwin x64 @angular/animations: 4.2.0-beta.1 @angular/common: 4.2.0-beta.1 @angula...
X Description: Bug Report or Feature Request (mark with an x) - [x] feature request Versions. @angular/cli: 1.0.3 node: 6.9.5 os: darwin x64 @angular/animations: 4.2.0-beta.1 @angular/common: 4.2.0-beta.1 @angula...
Opengraph URL: https://github.com/angular/angular-cli/issues/6325
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add an option to remove reflect-metadata polyfills from prod bundle","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] feature request\r\n```\r\n\r\n### Versions.\r\n```\r\n@angular/cli: 1.0.3\r\nnode: 6.9.5\r\nos: darwin x64\r\n@angular/animations: 4.2.0-beta.1\r\n@angular/common: 4.2.0-beta.1\r\n@angular/compiler: 4.2.0-beta.1\r\n@angular/core: 4.2.0-beta.1\r\n@angular/forms: 4.2.0-beta.1\r\n@angular/http: 4.2.0-beta.1\r\n@angular/material: 2.0.0-beta.4\r\n@angular/platform-browser: 4.2.0-beta.1\r\n@angular/platform-browser-dynamic: 4.2.0-beta.1\r\n@angular/platform-server: 4.2.0-beta.1\r\n@angular/router: 4.2.0-beta.1\r\n@angular/service-worker: 1.0.0-beta.13\r\n@angular/cli: 1.0.3\r\n@angular/compiler-cli: 4.2.0-beta.1\r\n```\r\n\r\n### Desired functionality.\r\nreflect-metadata is a sizible chunk of code that slows down the critical path in production mode. It's only needed in the JIT (dev) mode (however we want to drop the need for in from core as well).\r\n\r\nCurrently there is no way to include the polyfill only for dev bundles. I tried using `environment.ts` but that gets loaded too late after the reflect api is already used by the app code.\r\n\r\nIt would be great to have a way to either strip the polyfill or have an alternative entry path for production polyfills.\r\n","author":{"url":"https://github.com/IgorMinar","@type":"Person","name":"IgorMinar"},"datePublished":"2017-05-15T17:07:30Z","url":"https://github.com/angular/angular-cli/issues/6325"}
| 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:b61a5e7f-9468-8181-b335-ba0d34b071e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA42:2C4BED:3112EC9:3E57411:6B01CC72 |
| html-safe-nonce | 8a32748b57c0c82bc81c3851d07abd55a9da508e732198e3664711fdca0566fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTQyOjJDNEJFRDozMTEyRUM5OjNFNTc0MTE6NkIwMUNDNzIiLCJ2aXNpdG9yX2lkIjoiNzU4NTA1ODM5NTY3ODQyODI3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 61cb67d5c5fd29e0c225ecf637492e9049221624be2a5f0a2610d86bc1537a77 |
| hovercard-subject-tag | issue:228781208 |
| 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/6325/issue_layout |
| twitter:image | https://opengraph.githubassets.com/79e14d95d58096c3d92a0f144dd38272d86167653eb6bd032d254b2b73629bb5/angular/angular-cli/issues/6325 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/79e14d95d58096c3d92a0f144dd38272d86167653eb6bd032d254b2b73629bb5/angular/angular-cli/issues/6325 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] feature request Versions. @angular/cli: 1.0.3 node: 6.9.5 os: darwin x64 @angular/animations: 4.2.0-beta.1 @angular/common: 4.2.0-beta.1 @angula... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | IgorMinar |
| 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