Anidetrix / rollup-plugin-styles

🎨 Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more.
https://anidetrix.github.io/rollup-plugin-styles
MIT License
242 stars 43 forks source link

Support for rollup v3 #224

Open ghost91- opened 1 year ago

ghost91- commented 1 year ago

This plugin currently is not compatible with rollup v3, because it requires rollup 2 as a peer dependency:

  "peerDependencies": {
    "rollup": "^2.63.0"
  },

From what I have seen, this plugin mostly seems to work with rollup v3. Probably some more checks need to be done, but possibly, not much more than adjusting the declaration of the peer dependency to something like

  "peerDependencies": {
    "rollup": "^2.63.0 || ^3.0.0"
  },

would be needed.

7nik commented 1 year ago

any ETA? It breaks auto-builds and annoys to do force installs of libs due to this issue.

@Anidetrix are you even OK?

magnnus commented 1 year ago

any progress?

adanielyan commented 1 year ago

I cannot update my directus because of this issue. Is there any workaround?

hanorine commented 1 year ago

I would also like to stress the need to add support for rollup v3. Is this package being maintained by anyone? Need to know so I can make decisions. If there is anything that I can do to get this across? are there any limitations for supporting v3? Thank you.

hanorine commented 1 year ago

Looks like @ironkinoko/rollup-plugin-styles is a fork of this repo with rollup v3 support.

https://www.npmjs.com/package/@ironkinoko/rollup-plugin-styles?activeTab=explore

"peerDependencies": {
    "rollup": "^2.63.0 || 3.x"
  },
gregor-mueller commented 1 year ago

Any response would be great! There is a PR ready (#225) but the Owner @Anidetrix does not seem active on GitHub. Maybe a maintainer like @felipecrs can have a look there and help all of us out! Would be really appreciated! 🙇

cichyadam commented 1 year ago

+1

KenjiTakahashi commented 1 year ago

Looks there was some movement recently on @Anidetrix account. Perhaps the guy is around after all ;-)?

entozoon commented 1 year ago

+1

me6iaton commented 8 months ago

Why Because alternatives did not look good enough - they are either too basic, too buggy or poorly maintained.

rhahne commented 3 months ago

Has anyone found a good alternative in the meantime? It seems like multiple rollup plugins for styles are not working for rollup v4, what are you all using?

hanorine commented 3 months ago

I recently moved my solution to leverage "@dougalg/rollup-plugin-postcss"

  import postcss from '@dougalg/rollup-plugin-postcss';

  // in rollup config plugin section:
   postcss({
      extract: false,
      modules: true,
      use: ['sass'],
    })
KenjiTakahashi commented 3 months ago

https://github.com/plumelo/rollup-plugin-styler is updated, at least for now.

dlsaldanas commented 3 months ago

Has anyone found a good alternative in the meantime? It seems like multiple rollup plugins for styles are not working for rollup v4, what are you all using?

In our company we decided to move away from post-css, and avoid third parties as much as posible

rhahne commented 3 months ago

Thanks for your comments. To give an update on my side, we switched the plugin and now use https://github.com/egoist/rollup-plugin-postcss in combination with sass:

 postcss({
      use: [
        ['sass', {
          includePaths: ['./styles', 'node_modules'],
          implementation: sass,
        }]
      ],
      extract: 'styles.css',
    }),

Although this plugin also hasn't been updated in a while, it works on our side and doesn't show any warniing / error messages regarding peer-dependencies.