Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle includes more than it should when using main #63

Open
JonWallsten opened this issue Aug 14, 2018 · 0 comments
Open

Bundle includes more than it should when using main #63

JonWallsten opened this issue Aug 14, 2018 · 0 comments

Comments

@JonWallsten
Copy link

JonWallsten commented Aug 14, 2018

I'm using the latest dts-bundle to combine the d.ts files generated by typescript compiler.
When setting main to my index.d.ts file I expect the output in the bundle to match what's actually exported in my index.ts file. It seems however that it treats all exports as a wildcard.
So this:
export { destruct } from 'module'
in practice becomes this
export * from 'modules'

Which is unfortunately really bad since my IDE now thinks certain things are exported, based on the d.ts file, when they are not, which leads to false positives in the type checker. And you wont notice until you get weird runtime errors. I don't know if this is intended or a limitation/bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant