huozhi / bunchee

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

Fix conditional export bundle mapping #553

Closed huozhi closed 5 months ago

huozhi commented 5 months 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