manfredsteyer / ngx-build-plus

Extend the Angular CLI's default build behavior without ejecting, e. g. for Angular Elements
1.19k stars 136 forks source link

import '@angular/localize/init' in polyfills with micro frontends #253

Open thallis-andre opened 3 years ago

thallis-andre commented 3 years ago

I have a project that consists of a shell and 4 other micro frontends running inside it. This project was built using angular 8 and I am currently upgrading to 11. The problem is that I need to put the import '@ angular / locate / init' in polyfills.ts but it seems that the angular doesn't read my file. My question is: in a micro frontend architecture, which polyfills file does my angle read. i'm using ngx-build-plus and tag --single-bundle

Obs: I tried it in the shell and it didn't work either

gregduffield commented 3 years ago

I had the same issue with ng-bootstrap however for me running ng add @angular/localize on the host has stopped the errors but this is not really a fix as this is putting a requirement on the host that should not be there, so it would be good to be able to solve this in the MFE/ngx-build-plus

NeedForPerfect commented 1 year ago

How Could I resolve it if I use AngularJS 1.6 as shell APP ?