huozhi / bunchee

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

dependent module of special condition resolving #546

Closed huozhi closed 2 weeks ago

huozhi commented 3 weeks ago

For rsc entrypoint

input:

index/index.react-server.ts

export { a } from '../index/util'
export { b } from './config'

output:

after resolving, it becomes the original ts file

import { a } from '../shared/index.ts';
export { b } from '../shared/index.ts';