ES modules: yay or nay?

Well in the browser it is easy, you can always bundle and eventually support ESM natively.

We will be doing just that eventuality moving to full ES6 modules in the browser with App Connect. It might be however with the next major App Connect version as many things will have to change and we can implement also some new core optimizations. So it might take a while to get there.

In NodeJS and server Connect there is a different story. The current NodeJS community is a bit divided between CJS and ESM supporters. And the problem is you can’t mix them. So there is no clear migration path.

https://webreflection.medium.com/cjs-vs-esm-5f8b90a4511a

So we will be wait for the duets to settle before converting any SC stuff.

1 Like