Skip to content
Snippets Groups Projects
  1. Apr 28, 2023
  2. Apr 26, 2023
  3. Apr 25, 2023
  4. Apr 24, 2023
  5. Apr 23, 2023
  6. Apr 22, 2023
  7. Apr 21, 2023
  8. Apr 20, 2023
  9. Apr 19, 2023
  10. Apr 16, 2023
  11. Apr 13, 2023
  12. Apr 12, 2023
  13. Apr 11, 2023
  14. Apr 10, 2023
    • Alberto Gasparin's avatar
      Convert commonjs to esm (#877) · cd00da76
      Alberto Gasparin authored
      This PR converts everything (aside from electron) from CommonJS to ESM.
      It is needed to reduce the changes that will happen during the migration
      to Typescript (as TS does not play nice with CJS).
      
      Basically:
      - rewrite `require()` to `import`
      - rewrite `module.exports` to `exports`
      - introduce `ts-node` to run importers so we can convert them to TS too
      
      Lastly, sorry for this larg-ish PR, not my preference but when I tried
      to reduce its scope, I would end up with mixed commons/esm that was even
      more tricky to handle.
      Unverified
      cd00da76
Loading