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

The plugin ignores any sourcemap chains from other plugins transformations #351

Open
rproserpio opened this issue Dec 24, 2020 · 0 comments

Comments

@rproserpio
Copy link

When collecting the processed css in the transform hook, rollup-plugin-postcss loses the possible sourcemap chain with the transformations of previous plugins.

E.g if the input .css is generated from a .svelte file, the .svelte to .css transformation is lost in the final sourcemap (see sveltejs/rollup-plugin-svelte#166 ).

A fix may be collapsing the previous sourcemaps with Rollup this.getCombinedSourcemap() as an input of the Postcss transformation.

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