huozhi / bunchee

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

dependent module of special condition resolving #546

Closed huozhi closed 5 months ago

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