All files are excluded when exclude function contains ||
Open
- Dominant language
- JavaScript
- Stars
- 2.2k
- Forks
- 173
- PR merge metrics
- No merged PRs in 30d
Description
When exclude option is a function and it has operator ||, all files will be ignored.
For example, the following config will ignore all files:
```js
require('postcss-pxtorem')({
exclude: function exclude(file) {
return /node_modules/i.test(file) || false;
}
})
```
While the following code works properly:
```js
require('postcss-pxtorem')({
exclude: function exclude(file) {
return /node_modules/i.test(file);
}
})
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.