-
Notifications
You must be signed in to change notification settings - Fork 362
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
[Typescript] Typings files not concatenated? #239
Comments
Well, that's not something we configured I know it happens but doesn't cause any problems for me |
Is there a way to override the default tsconfig? I tried adding an outFile in the tsconfig but that introduced other errors. |
If you don't get any problems because of it I'd say just leave it be |
This actually generates problems when having typescript files across multiple directories. For instance:
Microbundle will then generate:
This simply won't work because the whole js code is bundled into the index.js but the definitions are nested into directories. |
Hi there,
It looks like when using Typescript, typings files are being emitted that match the files on disk, instead of being concatenated to a single file. I've set up a repo here demonstrating.
So, for instance, you've got a
src
directory with:This creates a
dist
directory with:My understanding with the Typescript compiler is that, when emitting to a single file, typings should be emitted to a single
d.ts
file as well. But they are not here.The text was updated successfully, but these errors were encountered: