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

Support postcss v8.0.0 #73

Closed
wants to merge 1 commit into from
Closed

Conversation

mjhenkes
Copy link

Upgraded postcss-rtl to support postcss v8.0.0.

I followed this guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration

The diff looks messier than it is, the plugin is largely unchanged besides what was recommended in the guide.

I did not look at optimizing the plugin, I think that is a task better left to those more familiar with this plugin.

I considered opening up the version to support both 7 and 8 but that didn't seem possible due to the changes for the v8.0.0 api and the fact that the postcss-import dependency only support version 8.

One wrinkle is that postcss removed the vendor api in version 8, but on inspection it was a simple string replace function and I directly added that to this plugin.
See: https://github.com/postcss/postcss/blob/7.0.35/lib/vendor.es6#L42 for the original post css implementation.

Closes #71

@henryruhs
Copy link

henryruhs commented Nov 26, 2020

@mjhenkes I can confirm this worked for me using your master branch inside package.json. It would be nice to have a temporary NPM release ( like postcss-rtl-fix ) of your fork cause I doubt this PR will be merged soon.

@mjhenkes
Copy link
Author

mjhenkes commented Dec 1, 2020

@redaxmedia, I went ahead and published a temporary fork. I plan to use it until I can get my projects migrated over to rtlcss as it seems to be more actively maintained than this project.

https://www.npmjs.com/package/@mjhenkes/postcss-rtl

@henryruhs
Copy link

@mjhenkes Another fix was to add "rtlcss": "2.6.1" to the dependencies ... but I don't quite understand why because this plugin still should not be compatible then!?

@bab2683
Copy link
Collaborator

bab2683 commented Nov 23, 2022

New release closes this

@bab2683 bab2683 closed this Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

postcss-rtl does not work with PostCSS v8+
3 participants