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

[Question] How to chain sourcemaps? #226

Open
Tal500 opened this issue Oct 4, 2022 · 0 comments
Open

[Question] How to chain sourcemaps? #226

Tal500 opened this issue Oct 4, 2022 · 0 comments

Comments

@Tal500
Copy link
Contributor

Tal500 commented Oct 4, 2022

I'm sorry to post this as an issue, there is no discussions page here, but you may view this as a "feature request".

Assuming you have two preprocessors A and B, each of them takes the source code and outputs a pair of an output code and a sourcemap.

You now take some sourcecode, and preprocess it via A. You then take the resulted output, and preprocess it via B.

How can you chain the sourcemap generated by A and B, in the logical sense, to the final output? Is this something that is done somehow by this library? I am sure Svelte do this for its preprocessors, don't know how however.

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