Title: Differential loading: Edge not considered ES2015 browser · Issue #14580 · angular/angular-cli · GitHub
Open Graph Title: Differential loading: Edge not considered ES2015 browser · Issue #14580 · angular/angular-cli
X Title: Differential loading: Edge not considered ES2015 browser · Issue #14580 · angular/angular-cli
Description: 🐞 Bug report Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] version - [ ] doc Is this a regression? Kin...
Open Graph Description: 🐞 Bug report Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] ver...
X Description: 🐞 Bug report Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] ver...
Opengraph URL: https://github.com/angular/angular-cli/issues/14580
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Differential loading: Edge not considered ES2015 browser","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🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🐞 Bug report\r\n\r\n### Command (mark with an `x`)\r\n\u003c!-- Can you pin-point the command or commands that are effected by this bug? -->\r\n\u003c!-- ✍️edit: -->\r\n```\r\n- [ ] new\r\n- [x] build\r\n- [ ] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n```\r\n\r\n### Is this a regression?\r\n\r\nKind of, due to the introduction of differential loading.\r\n\r\n\r\n### Description\r\n\r\nEdge 15-18 are considered non-ES2015 browsers when compiling the app. If you target only Edge 18 in `browserslist`, I'd expect to only generate the ES2015 code (similar to what happens when only targeting the latest Firefox/Chrome release); but ES5 code is also generated. This is specially worrying because, due to a Edge bug, when running the app, the ES5 bundle is downloaded (but not executed), and the ES2015 bundle is downloaded twice (reference https://github.com/philipwalton/webpack-esnext-boilerplate/issues/1#issuecomment-445280691 ).\r\n\r\nThe result is that, while in Angular 7 I already compiled for ES2015 giving Edge users a optimized bundle, in Angular8 they are going to download more than 3 times the previous size to end up running the same ES2015 bundle.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\nEdit browserslist file with only this content:\r\n```\r\nEdge 18\r\n```\r\nAnd run `ng build --prod`\r\n\r\n## 🔥 Exception or Error\r\nBoth ES5 and ES2015 are generated.\r\n\r\n\r\n## 🌍 Your Environment\r\n\u003cpre>\r\nAngular CLI: 8.0.0\r\nNode: 12.2.0\r\nOS: darwin x64\r\nAngular: 8.0.0\r\n... animations, cdk, cli, common, compiler, compiler-cli, core\r\n... forms, language-service, material, platform-browser\r\n... platform-browser-dynamic, router, service-worker\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.800.0\r\n@angular-devkit/build-angular 0.800.0\r\n@angular-devkit/build-optimizer 0.800.0\r\n@angular-devkit/build-webpack 0.800.0\r\n@angular-devkit/core 8.0.0\r\n@angular-devkit/schematics 8.0.0\r\n@angular/flex-layout 8.0.0-beta.26\r\n@angular/pwa 0.800.0\r\n@ngtools/webpack 8.0.0\r\n@schematics/angular 8.0.0\r\n@schematics/update 0.800.0\r\nrxjs 6.5.2\r\ntypescript 3.4.5\r\nwebpack 4.30.0\r\n\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\u003c!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->\r\n\r\n\u003c!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->\r\n","author":{"url":"https://github.com/acalvo","@type":"Person","name":"acalvo"},"datePublished":"2019-05-30T11:32:29Z","url":"https://github.com/angular/angular-cli/issues/14580"}
| 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:34b8da89-a661-b851-dd09-9e12b935a80f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D684:134361:188E150:204A366:6B013C6A |
| html-safe-nonce | b8164cdfaa1474d279b44c774663f848e2b1ab44a20a6ff036504b682acac0b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjg0OjEzNDM2MToxODhFMTUwOjIwNEEzNjY6NkIwMTNDNkEiLCJ2aXNpdG9yX2lkIjoiMzg4ODYxNzgzODE0NzgyMDU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9371d287b3b767652fdb4e824d32b95b80c2946376d7c992349a771bb6c8b574 |
| hovercard-subject-tag | issue:450262353 |
| 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/14580/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9dcf6c4e3c6cb2bc8c15e634f7707cee65ddbe95e542cd1cec2868ef9a6f1df1/angular/angular-cli/issues/14580 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9dcf6c4e3c6cb2bc8c15e634f7707cee65ddbe95e542cd1cec2868ef9a6f1df1/angular/angular-cli/issues/14580 |
| og:image:alt | 🐞 Bug report Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] ver... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | acalvo |
| 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