unjs / jiti

Runtime TypeScript and ESM support for Node.js
MIT License
1.9k stars 62 forks source link

feat: support `jiti.import(id, {default: true})` #323

Closed pi0 closed 1 month ago

pi0 commented 1 month ago

Since the introduction of native ESM, a common pattern is that we need only the default export. A new jiti.import(id, { default: true }) makes this easier.