canada-ca / canada-ca/tracker

Use ESM, drop build step

Open
#3,173 1 comment 0 reactions 0 assignees View on GitHub
api discussion enhancement Technical Upgrades
Dominant language
JavaScript
Stars
39
Forks
15
Avg merge
1d 5h
Merged PRs (30d)
22

Description

The API uses Babel and a [build step](https://github.com/canada-ca/tracker/blob/master/api/Dockerfile#L19) to allow the use of the modern [ECMAScript Module](https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/) syntax.
Full ESM support has recently been [added to node](https://nodejs.org/api/esm.html#esm_modules_ecmascript_modules), meaning Babel is no longer needed. **This gives us the opportunity simplify the build, and drop a bunch of dependencies.**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.