3 ms·
Last I knew, it did the transpilation itself so that it could handle module path resolution manually.
by webstrand 1y ago
Last I knew, it did the transpilation itself so that it could handle module path resolution manually.
- basetensucks 1y agoIt does more, it also includes a compatibility layer allowing you to require ESM packages in CJS. It's quite handy!
- andrus 1y agoDon’t recent Node.js releases support this already? require(esm) was back ported to Node.js 20 in February