Just in case you missed this. The following PR was incorporated in v5.
A big step forward for the future of Node-RED.
I've already migrated everything I could in UIBUILDER to ESM but now I can start migrating the runtimes as well.