In my angular project, I am using this library “@types/uuid”: “^8.3.0”, and I am getting a warning that says Warning:
../name.component.ts depends on ‘uuid’. CommonJS or AMD dependencies can cause optimization bailouts.
I read about the problem and I understood that I should not use CommonJS as it increases the bundle size but instead I should use ecmascript. I wanted to replace it now but I could not find any replacment. Does anyone have a solution for this problem ?
BTW, I have seen this question (Upgrading to Angular 10 – Fix CommonJS or AMD dependencies can cause optimization bailouts) but it is specific to rxjs. I would like to know the solution in general or at least for the uuid library
Read more here: Source link