anandthakker/doiuse

.browserslistrc Not Acknowledged by doiuse.

JBreit opened this issue · 1 comments

I have a .browserslistrc file with targeted browsers based on legacy and modern browsers. The entire file isn't being found by the npm module. Anyone have an idea as to what the issue is?

.browserlistrc file content:

[legacy]
last 2 versions
firefox esr
not dead
> 1%

[modern]
last 1 chrome version
not chrome < 60
last 1 firefox version
not firefox < 54
last 1 safari version
not safari < 10.1
> 0.2%

I would need more info.

We have a test for browserslist here:

test('info with browserslist file', (t) => {
mock({
browserslist: '# Comment\nSafari 8\nIE >= 11',
});
const actual = new DoIUse({}).info().browsers;
const expected = [['ie', '11'], ['safari', '8']];
t.same(actual, expected);
mock.restore();
t.end();
});

And at most, all we do is import browserslist from 'browserslist'; and let the package handle the rest.