rollup-plugin-styles
rollup-plugin-styles copied to clipboard
fix: position of named export in injected css
This is the fix long pending issue I had alluded in the discussion in issue #160.
I would like to change the sourcemap inlining behaviour once this PR is accepted, but that might need a discussion. Currently, sourcemap is injected when whenever the css is injected or emited. With the css sourcemap now being passed generateBundle hook and appearing in the main js sourcemap, the inlining should only be done when user chooses to explicitly inline (and in that case not explicitly passing the map from transform hook).
@Anidetrix I have rebased the changes on top of main. Please consider this PR again.