rollup-plugin-styles icon indicating copy to clipboard operation
rollup-plugin-styles copied to clipboard

fix: position of named export in injected css

Open CxRes opened this issue 3 years ago • 2 comments

This is the fix long pending issue I had alluded in the discussion in issue #160.

CxRes avatar Aug 16 '21 13:08 CxRes

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).

CxRes avatar Aug 16 '21 13:08 CxRes

@Anidetrix I have rebased the changes on top of main. Please consider this PR again.

CxRes avatar Apr 23 '22 22:04 CxRes