MQuy / webpack-deadcode-plugin

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

Use context for exclude patterns #48

Closed NickBolles closed 2 years ago

NickBolles commented 2 years ago

Fixes #44. I've tested this locally on an app with multiple bundles on webpack 5. It seems to work.

A workaround for this is to just use recursive ignores **/__mocks__/** or something

MQuy commented 2 years ago

Thanks @NickBolles.

NickBolles commented 2 years ago

@MQuy that was quick! Do you know when/what release this will be in?