Title: zone.js ES2015 distribution can't be easily consumed · Issue #35157 · angular/angular · GitHub
Open Graph Title: zone.js ES2015 distribution can't be easily consumed · Issue #35157 · angular/angular
X Title: zone.js ES2015 distribution can't be easily consumed · Issue #35157 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package zone.js Is this a regression? no Description zone.js does not ship an esm2015 distribution that is discoverable by tooling: see https://unpkg.com/browse/zone.js@0.10.2/package....
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package zone.js Is this a regression? no Description zone.js does not ship an esm2015 distribution that is discoverable by tooling: see https://...
X Description: 🐞 bug report Affected Package The issue is caused by package zone.js Is this a regression? no Description zone.js does not ship an esm2015 distribution that is discoverable by tooling: see https://...
Opengraph URL: https://github.com/angular/angular/issues/35157
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"zone.js ES2015 distribution can't be easily consumed","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄\r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅--\u003e\r\n\r\n\r\n# 🐞 bug report\r\n\r\n### Affected Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages as the source of the bug? --\u003e\r\n\u003c!-- ✍️edit: --\u003e The issue is caused by package zone.js\r\n\r\n\r\n### Is this a regression?\r\n\r\n\u003c!-- Did this behavior use to work in the previous version? --\u003e\r\n\u003c!-- ✍️--\u003e no\r\n\r\n\r\n### Description\r\n\r\nzone.js does not ship an esm2015 distribution that is discoverable by tooling: see https://unpkg.com/browse/zone.js@0.10.2/package.json (there is no module property in package.json pointing to `dist/zone-evergreen.js` (the ESM2015 file)\r\n\r\nWe created `zone-evergreen.js` as part of the pre-requisites for the differential loading story in v8, but rather than changing the zone.js layout and requiring a migration for all Angular apps we kept the deep import into zone.js/dist/zone in polyfills.ts file:\r\n\r\nhttps://github.com/angular/angular-cli/blob/5376a8b1392ac7bd252782d8474161ce03a4d1cb/packages/schematics/angular/application/files/src/polyfills.ts.template#L55-L58\r\n\r\nand instead implemented a custom resolution alias for es2015 polyfills:\r\n\r\nhttps://github.com/angular/angular-cli/blob/878e4473e0a8517f8eab529ac71f0d6e8a454447/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts#L114\r\n\r\nWe should clean up the package layout, roll out a migration for existing Angular CLI apps and remove the hack/custom resolution from the CLI.\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre\u003e\u003ccode\u003e\r\nAngular CLI: 9.0.0-rc.11\r\nNode: 12.14.1\r\nOS: linux x64\r\n\r\nAngular: 9.0.0-rc.11\r\n... animations, cli, common, compiler, compiler-cli, core\r\n... elements, forms, language-service, platform-browser\r\n... platform-browser-dynamic, router, service-worker\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.0-rc.11\r\n@angular-devkit/build-angular 0.900.0-rc.11\r\n@angular-devkit/build-optimizer 0.900.0-rc.11\r\n@angular-devkit/build-webpack 0.900.0-rc.11\r\n@angular-devkit/core 9.0.0-rc.11\r\n@angular-devkit/schematics 9.0.0-rc.11\r\n@angular/cdk 9.0.0-rc.8\r\n@angular/material 9.0.0-rc.8\r\n@ngtools/webpack 9.0.0-rc.11\r\n@schematics/angular 9.0.0-rc.11\r\n@schematics/update 0.900.0-rc.11\r\nrxjs 6.5.3\r\ntypescript 3.7.4\r\nwebpack 4.41.2\r\n \r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n**Anything else relevant?**\r\n\r\nThe solution will likely mean that zone.js will need to be restructured to match the simplified [APF format](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/edit#heading=h.k0mh3o8u5hx) with each file under `dist/` being a directory with a fake package.json file similar to how https://unpkg.com/browse/@angular/core@8.2.14/testing/package.json works.","author":{"url":"https://github.com/IgorMinar","@type":"Person","name":"IgorMinar"},"datePublished":"2020-02-05T05:55:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/35157/angular/issues/35157"}
| 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:fc8b18e1-812a-0f0d-37a2-eaaf6fc7ccdd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B79E:1DC30F:B60177:E9D1A2:6A5C1A68 |
| html-safe-nonce | 91d416e96cf1a0efa5e6b50fb03d5a566468b559ae4a6e8b43abc23eb86f2298 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzlFOjFEQzMwRjpCNjAxNzc6RTlEMUEyOjZBNUMxQTY4IiwidmlzaXRvcl9pZCI6IjQ3MTgyNDQwMjU2ODE1ODI2OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1245e597fed0614bbb90487134ccc82edcbe122aca7c7498d83ff07cceb0f2c6 |
| hovercard-subject-tag | issue:560157207 |
| 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/35157/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c5b691b6b919fa9fdbecada9a64795539aa5772b2d7ec5412eaa57603b7c2c3f/angular/angular/issues/35157 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c5b691b6b919fa9fdbecada9a64795539aa5772b2d7ec5412eaa57603b7c2c3f/angular/angular/issues/35157 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package zone.js Is this a regression? no Description zone.js does not ship an esm2015 distribution that is discoverable by tooling: see https://... |
| 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 | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width