Joel Purra: Developer and more


Convert to ECMAScript modules

Repository details (talkie)
Project page
talkie
Project category
(588 entries)
Repository
talkie on Github@joelpurra/talkie
Owner
joelpurra on Github@joelpurra
Commit details (e0b5e30e)
Author
Authored at
Commiter
Joel Purra
Commited at

Commit message

Convert to ECMAScript modules

- Modernizes the codebase to use primarily ESM, instead of CJS.
  - Removes the extraneous CJS typescript compilation.
  - Removes `rollup` usage for Node.js executables; instead directly use ESM version in the `"bin"` field.
  - The built webextension applications still runs non-ESM rolled up code, but it could potentially be improved.
- Use `"type": "module"` in `package.json`.
  - Allows importing ESM-only packages, which is a current trend in the ecosystem.

See

- https://nodejs.org/docs/latest-v17.x/api/esm.html
- https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

Changed files (406)

Commit categories (3)