simorgh
simorgh copied to clipboard
Investigate impact on Simorgh of packages switching from CommonJS to ESM
Is your feature request related to a problem? Please describe. An increasing number of node packages are switching format from CommonJS (CJS) to ECMAScript Modules (ESM). We would like to investigate the impact on Simorgh of accommodating this switch.
Describe the solution you'd like We would like to audit the packages in Simorgh and understand whether we need to refactor parts of the repo to accomodate switching formats. As part of this investigation we will need to understand the breakdown of packages in Simorgh which use CommonJS vs ESM.
Describe alternatives you've considered
- Continue using CommonJS modules until they are unusable and update packages to ESM on an ad-hoc basis
- Use hybrid packages (combination of CommonJS and ESM)