Skip to content

Sourcemap support#10

Merged
christian-bromann merged 6 commits intostencil-community:mainfrom
msatti-shg:feature/sourcemaps
Oct 8, 2025
Merged

Sourcemap support#10
christian-bromann merged 6 commits intostencil-community:mainfrom
msatti-shg:feature/sourcemaps

Conversation

@msatti-shg
Copy link
Copy Markdown
Contributor

This PR passes the sourcemap generated by the Stencil compiler through to the transform output. This enables tools like Vitest to generate coverage reports for Stencil components.

Before this fix, I tried using this plugin for my own Stencil project since I wanted to move away from jest. However the coverage wasn't making any sense as it was showing the coverage of the component after it was compiled by Stencil (the .js output) rather than the original source (the .tsx input).

@christian-bromann christian-bromann merged commit 74319b0 into stencil-community:main Oct 8, 2025
10 checks passed
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

Successfully merging this pull request may close these issues.

2 participants