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

Generate declaration map #179

Open
donmahallem opened this issue Dec 10, 2021 · 3 comments
Open

Generate declaration map #179

donmahallem opened this issue Dec 10, 2021 · 3 comments

Comments

@donmahallem
Copy link

What do you think about providing an option to output sourcemaps for the bundled typings?

@timocov
Copy link
Owner

timocov commented Dec 12, 2021

Even though I cannot imagine use case for that (maybe you can provide?) I don't mind to have such option.

@timocov
Copy link
Owner

timocov commented Aug 13, 2022

At the moment I see at least 1 problem that might blocks the implementation here - the process how the library achieves the bundling. It compiles the code to .d.ts first and then works with that d.ts. files only (no information about the original sources files at that point). So it needs to be provided somehow the original place of any statement so we can refer to them. Not sure if the compiler provides this API though.

@timocov timocov changed the title Generate Source Map Generate declaration map Aug 13, 2022
@Zamiell
Copy link

Zamiell commented Aug 13, 2022

If the compiler doesn't provide the API, you can always just invoke tsc and copy it from the generated output.

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

No branches or pull requests

3 participants