Improved require(esm) interop in @rolldown.rs. Since the last beta, the bundler supports the special `as "module.exports"` keyword and aligns with the @nodejs.org behavior. Another step towards better interoperability between CJS and ESM, now with bundler support!
Post
Curious for more? Check out the Node.js PR and our implementation. * github.com/nodejs/node/... * github.com/rolldown/rol...
github.commodule: support 'module.exports' interop export name in require(esm) by guybedford · Pull Request #54563 · nodejs/nodeThis adds support for export { foo as 'module.exports' } in a CJS module to imply that this export value should always be used as the module value when requiring that ESM module under requi...
0 reposts3 likes
No replies yet.