huozhi / bunchee

Zero config bundler for ECMAScript and TypeScript packages
https://npmjs.com/bunchee
858 stars 28 forks source link

Fix conditional export bundle mapping #553

Closed huozhi closed 1 week ago

huozhi commented 1 week ago

Problem

development condition is declared first, then it's always get picked

Fix

We should pass down the current condition names of entry to alias plugin, to let it decide which condition shall we alias.

Fixes #548