huozhi / bunchee

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

special condition resolving #561

Open huozhi opened 3 days ago

huozhi commented 3 days ago

If export ./a has both default export and react-server export, and ./b also has two export types. When ./b is relying on ./a, the mapping of alias might not hit the condition

This line need to also check if id in react server condition will exist

let resolvedModuleBundle = sourceToRelativeBundleMap.get(resolved.id);