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

Generating d.ts source maps with rollupTypes #306

Closed
aesy opened this issue Mar 7, 2024 · 5 comments
Closed

Generating d.ts source maps with rollupTypes #306

aesy opened this issue Mar 7, 2024 · 5 comments

Comments

@aesy
Copy link

aesy commented Mar 7, 2024

Hi, thanks for a great plugin!

As mentioned here, generating d.ts source maps is as simple as adding "declarationMap": true to my tsconfig file, but when rollupTypes is set to true, the source maps are removed instead of being rolled up too. API extractor does support generation of d.ts.map files so I'm wondering if there's anything that I'm missing or if this simply isn't supported?

@qmhc
Copy link
Owner

qmhc commented Mar 8, 2024

I just see that API extractor will use the soure map files to report errors but not merge the source map files:

image

@aesy
Copy link
Author

aesy commented Mar 8, 2024

Oh I see, I misunderstood then! I'll close this then as I can't expect it to be supported at all. But outside of that, do you have any ideas on how one could go about outputting a single declaration file and source map?

@aesy aesy closed this as completed Mar 8, 2024
@princebillygk
Copy link

@aesy Why did you closed this issue did you find any solutions?

@aesy
Copy link
Author

aesy commented Jun 10, 2024

@princebillygk I closed it because it's not a feature that's advertised and something that would have to be supported by API extractor before this plugin could ever support it. Unfortunately I don't have a workaround for you, so I would suggest you make a feature request in the API extractor repo, if one doesn't already exist.

@aesy
Copy link
Author

aesy commented Jun 11, 2024

I haven't read through it but there might be some good discussion here

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

3 participants