PSPDFKit-labs / browserslist.dev

A website to display compatible browsers from browserslist string.

Home Page:https://browserslist.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'not' produces invalid configuration

Dreamsorcerer opened this issue · comments

Thanks for adding 'supports'. It seems that 'not' is also missing.

From the documentation: You can add not to any query.

Can you write the query that didn't work for you?

I assumed it was completely unimplemented, as I tried several queries and couldn't find a single case which works... Not even the examples in the documentation work...

not last 2 versions
not supports es6
not dead
not ie <= 8

you cannot just start a query with not. you need to write some other query before not. The error message now clarifies this.

Umm, but it is still listed in the documentation examples. For example at: https://github.com/browserslist/browserslist#full-list

It has not ie <= 8 as an example, and clearly states:

You can add not to any query.

So, now I have to prefix everything with >0% and?
>0% and not dead to list browsers which are not dead.
>0% and not supports es6 to list browsers not supporting es6.
etc.

Shouldn't you just implicitly add this prefix when it starts with not, if that's what's required?