rollup-plugin-sass
rollup-plugin-sass copied to clipboard
insert option + chunks places ___$insertStyle function in every chunked file
When rollup is run with
output: { fomat: 'esm',
...
plugins: [rollupPluginSass({insert:true}), ...
multiple chunks (which don't import any css) have the insert css
function ___$insertStyle
needlessly placed at the top of each chunked file.
ideally this function to insert a style element into the header would be added earlier in the rollup build pipeline so that it could be chunked to a single, appropriate file.
Edit
After having created this issue I saw there have been no commits to this repository for 13 months (at the time of writing). if anyone is a bit stuck on this issue, I moved to rollup-plugin-postcss which works as expected (only placing the insert css
function once in the bundle of outputs).