justinasd.bsky.social
justinasd.bsky.social
@justinasd.bsky.social
Kinda, If you are in esm first project everything mostly were fine, having cjs project and trying to import esm forced you to make your code async, which was major roadblock, that's why for example electron took so long to support it. This new feature should make module story much simpler.
November 29, 2024 at 10:19 PM
If you use bundler then not much will change for you, however if you use regular node/output to it then will this absolutely relevant to any app, especially existing CJS codebases.

Importing esm into cjs will just work (with rare exceptions). No need to use dynamic import anymore.
November 29, 2024 at 11:56 AM