How to use the findConfig function from browserslist

Find comprehensive JavaScript browserslist.findConfig code examples handpicked from public code repositorys.

34
35
36
37
38
39
40
41
42
43
if (path.isAbsolute(input)) {
	const [, configPath, env] = inputRx.exec(input) || [];
	return { configPath, env };
}

const config = browserslist.findConfig(context);

if (config && Object.keys(config).includes(input)) {
	return { env: input };
}
fork icon0
star icon0
watch icon1