Skip to content

RFC: Move to ESM #1603

@nytamin

Description

@nytamin

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.

  • RFC created
  • Sofie Team has evaluated the RFC
  • A workshop has been planned
  • RFC has been discussed in a workshop
  • A conclusion has been reached, see comments in thread

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions