Closed wangzhengbo closed 2 years ago
function getPattern({ context, patterns, exclude }) { return patterns .map(pattern => path.resolve(context, pattern)) .concat(exclude.map(pattern => !${pattern})) .map(convertToUnixPath); }
!${pattern}
exclude dose not use context as patterns did.
function getPattern({ context, patterns, exclude }) { return patterns .map(pattern => path.resolve(context, pattern)) .concat(exclude.map(pattern =>
!${pattern}
)) .map(convertToUnixPath); }exclude dose not use context as patterns did.