angular dependency use fesm2015 instead of fesm2020

Viewed 633

in my Angular 13 project I have a npm dependency which has fesm2020 and fesm2015 module: see package.json

  "module": "fesm2015/ds-components.mjs",
  "es2020": "fesm2020/ds-components.mjs",
  "esm2020": "esm2020/ds-components.mjs",
  "fesm2020": "fesm2020/ds-components.mjs",
  "fesm2015": "fesm2015/ds-components.mjs",

when i serve the angular project, the fesm2020 module is used. After lots of debugging I found out that the fesm2020 module has strange behaviour but the fesm2015 module would work. How can I tell angular to use the fesm2015 module instead?

0 Answers
Related