Im’ not sure, but I remember read about the possibility that Wappler move to ESM, but I can’t find the reference right now, so, I wonder if Wappler Teams is already working in this move to ESM or maybe is a discarting idea.
If positive, maybe a approx date.
Hi, thanks @kfawcett for the reference.
Now is almost 3 years from the “medium post” about CJS vs ESM, and almost 2 years since @George post.
Would be greate to know if EMS in server side (server connect) is on radar of the Wappler Team.
Currectly nodeJS support ESM natively in stable since version 14.
@George, @patrick
ESM modules on the server side are definitely on our radar. We are just waiting for all server side NodeJS packages that we use like express and others to become fully esm compatible as well.
I'm bumping into this again today. Found a great library, and can't find a way to use it due to it being ESM.
Are there ways to do this yet within Wappler?
fyi for the crowd, with the help of AI I was able to make a .mjs
wrapper for the library, changed the syntax of the underlying .js file references, and have this working now.