MQuy / webpack-deadcode-plugin

Webpack plugin to detect unused files and unused exports in used files
MIT License
348 stars 16 forks source link

Exclude option dose not work #44

Closed wangzhengbo closed 2 years ago

wangzhengbo commented 2 years ago

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.