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

insert option + chunks places ___$insertStyle function in every chunked file #69

Open
mcshaz opened this issue Apr 11, 2020 · 0 comments
Assignees
Labels
bug triaged When an issue has been groomed, reproduced, and/or, validated.

Comments

@mcshaz
Copy link

mcshaz commented Apr 11, 2020

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

@elycruz elycruz self-assigned this Sep 17, 2022
@elycruz elycruz added bug triaged When an issue has been groomed, reproduced, and/or, validated. labels Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triaged When an issue has been groomed, reproduced, and/or, validated.
Projects
None yet
Development

No branches or pull requests

2 participants