TypeStrong / dts-bundle

Export TypeScript .d.ts files as an external module definition
MIT License
308 stars 57 forks source link

Export as default edge case #55

Open JonWallsten opened 7 years ago

JonWallsten commented 7 years ago

Hi! I have a question/suggestion. Noticed a case that's not working for me.

index.ts:
export { Foo as default } from './foo'

foo.ts:
export class Foo {
}

When using verbose flag i get this:

index
 - export { Foo as default } from 'foo/foo'; was skipped.

In the definition bundle I don't get Foo as default. So there will be a mismatch between runtime and compile time.