Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

vite:css warnings on build #15

Open
simontol opened this issue Jul 12, 2023 · 1 comment
Open

vite:css warnings on build #15

simontol opened this issue Jul 12, 2023 · 1 comment

Comments

@simontol
Copy link

simontol commented Jul 12, 2023

When building ckeditor5 with vite I have a lot of warnings:

transforming (3476) ../node_modules/@ckeditor/ckeditor5-image/src/imageinsertviaurl.js[vite:css] Complex selectors in ':is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover))::after' can not be transformed to an equivalent selector without ':is()'.
91 |                    }
92 |  
93 |  :is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover))::after {
   |   ^
94 |                                    display: none;
95 |                            }
[vite:css] Complex selectors in ':is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__action:not(.ck-disabled):not(.does-not-exist))::after' can not be transformed to an equivalent selector without ':is()'.
91 |                    }
92 |  
93 |  :is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover))::after {
   |   ^
94 |                                    display: none;
95 |                            }

and so on...

think that the relevant part is:
Complex selectors in ':is(...)::after' can not be transformed to an equivalent selector without ':is()'.

Vitejs 4.4.2
"@vitejs/plugin-react-swc": "^3.3.2"
"@ckeditor/vite-plugin-ckeditor5": "^0.1.3"

Is there anything I can do to get rid of this warnings?
Thanks

@LukaszGudel
Copy link
Collaborator

Hi @simontol,
we are unable to reproduce your issue. To investigate this issue further we would need the contents of your package.json and vite.config.js. Also, it would be incredibly helpful if you are able to provide a sample repository/project where this issue can be reproduced.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants