Summary: When createCustomElement() is called multiple times inside a switch case, all of the components will be included in the build, instead of just the one that will actually be used. This increases the build size with duplicate code. Details I have an Angular 11 app with a multi-site architecture. There is a project in the angular.json for each site,
Tag: angular-elements
Why does Angular build create files with ‘es5’ and ‘es2015’ but not ‘es6’ (or no suffix at all)?
I recently downloaded the Angular CLI (@angular/cli 9.0.1). I then proceeded to create a new application so that I could create a new Angular Element, package it up, and use it in another application. After following a few blogs, the final step of every blog I came across all talk about creating a single JS file from the generated files