I have upgraded my angular page to 10
I managed to remove most of the CommonJS or AMD dependencies can cause optimization bailouts by changing my imports
Ex: