About Me
This RFC is posted from me / SuperFly.tv
Use Case
ESM (ECMASript Modules) where introduced in ES2015 and 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 commonjs way 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.json and package.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.
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.