Skip to content

Commit

Permalink
Fix RTLCSS Support
Browse files Browse the repository at this point in the history
This solves WordPress#68364 to allow for the proper use of control directives.
  • Loading branch information
SmushyTaco authored Jan 2, 2025
1 parent 6eb365e commit ae2b8ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@ const cssLoaders = [
'default',
{
discardComments: {
removeAll: true,
remove(comment) {
return !/(\!rtl)/.test(comment);
},
},
cssDeclarationSorter: false
},
],
} ),
Expand Down

0 comments on commit ae2b8ba

Please sign in to comment.