v3.6.0
π 3.6.0π
In this release bunchee lands the support for dual package's typing, when you building a dual package (which supports both CJS and ESM bundles that can be decided by the bundler) which has different .mjs and .cjs files listed in the exports field, we'll generate the .d.cts and d.mts files for you so it could work with TypeScript resolution of typings properly. Read TypeScript ESM Node for more details.
Features
- feat: add basic support to generate separate type declarations files when building ts dual packages by @promer94 in #219
Patches
- Update target by @huozhi in #223
- Use 3rd party rollup-swc-preserve-directives by @huozhi in #224
- Update preserve directive dep by @huozhi in #235
Misc
- chore: add lint for consistency of the project by @devjiwonchoi in #229
- chore: prioritize exports.require over pkg.main by @devjiwonchoi in #232
- Group constants into same module, add cts and mts supported ext by @huozhi in #225
New Contributors
Full Changelog: v3.5.1...v3.6.0