Skip to content
Snippets Groups Projects
Unverified Commit cd00da76 authored by Alberto Gasparin's avatar Alberto Gasparin Committed by GitHub
Browse files

Convert commonjs to esm (#877)

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.
parent d7d5820c
No related branches found
No related tags found
No related merge requests found
Showing
with 114 additions and 148 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment