simorgh icon indicating copy to clipboard operation
simorgh copied to clipboard

Investigate impact on Simorgh of packages switching from CommonJS to ESM

Open mfonofm opened this issue 2 years ago • 0 comments

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)

mfonofm avatar Oct 21 '21 16:10 mfonofm