-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Is tsconfig.json declarationMap
not honored?
#488
Comments
This is not supported, see #311 |
I looked into it, and the underlying reason is b/c the dts rollup plugin doesn't support it. See this thread: Swatinem/rollup-plugin-dts#113. The tldr is that bundling declaration files into a single file is already a very complex task, and adding declarationMap support is even hairier. The only easy solution that comes to mind would be to add a dumb |
in that case why not just use |
Yeah, that's probably the right call until downstream adds support. Thanks for the quick response and thanks for this library! |
I also just ran into this issue, but I use path aliases in my packages to map This issue is quite old. Maybe there is another solution by now that doesn't involve tsc? |
For building in watch mode with tsc this might be an option https://github.com/justkey007/tsc-alias |
First off - thank you so much for creating this library! After munging together my own approximate version of this library with custom
esbuild
andtsc
commands chained together in scripts, this has made my life so much easier.Question though that I can't figure out: Is the
declarationMap
intsconfig.json
not honored? I can't get the declaration maps to emit in dist. To be clear, I'm not talking about the typescript declaration map itself. But rather, the sourcemap file for the declaration file, so that I can instantly find the actual source file when trying to step into a library.Thanks!
The text was updated successfully, but these errors were encountered: