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

.browserslistrc Not Acknowledged by doiuse. #152

Open
JBreit opened this issue Oct 2, 2022 · 1 comment
Open

.browserslistrc Not Acknowledged by doiuse. #152

JBreit opened this issue Oct 2, 2022 · 1 comment

Comments

@JBreit
Copy link

JBreit commented Oct 2, 2022

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%
@clshortfuse
Copy link
Collaborator

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.

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

No branches or pull requests

2 participants