-
Notifications
You must be signed in to change notification settings - Fork 58
RFC: Move to ESM #1603
Copy link
Copy link
Open
Labels
ContributionExternal contributionExternal contributionContribution from SuperFly.tvContributions sponsored by SuperFly.tvContributions sponsored by SuperFly.tvRFC
Metadata
Metadata
Assignees
Labels
ContributionExternal contributionExternal contributionContribution from SuperFly.tvContributions sponsored by SuperFly.tvContributions sponsored by SuperFly.tvRFC
Type
Fields
Give feedbackNo fields configured for issues without a type.
About Me
This RFC is posted from me / SuperFly.tv
Use Case
ESM (ECMASript Modules) where introduced in
ES2015and is now being considered to be the official standard format to package JavaScript libraries in Node.js.While many libraries are still using the old
commonjsway of defining libraries, it is becoming rarer and rarer.Proposal
I propose that we convert all Sofie-related repos to use ESM in the next in-development release (ie Release 54). If all works well, it is a simple matter of changing some configuration in
tsconfig.jsonandpackage.json.Changing from commonjs to ESM is technically a breaking change, so I propose that we bump the major version of all libraries for this change.
We could do this change safelly by releasing nightlies of all libraries to test with Core/PGW etc first, before committing to it.
Process
The Sofie Team will evaluate this RFC and open up a discussion about it, usually within a week.