webpack-deadcode-plugin icon indicating copy to clipboard operation
webpack-deadcode-plugin copied to clipboard

Fix failOnHint for unused exports

Open tjs-intel opened this issue 3 years ago • 1 comments

unusedExportMap is a map so the Object.keys function should be used to check if it is empty.

tjs-intel avatar Aug 31 '22 16:08 tjs-intel

Confirmed that this does terminate the compilation with unused exports and the failOnHint: true.

tjs-intel avatar Aug 31 '22 16:08 tjs-intel

thanks @tjs-intel for fixing the issue 💯

MQuy avatar Oct 28 '22 13:10 MQuy

I does not work for webpack 4 now with the latest version. Is the fix in this thread only function for webpack 5?

cmrd-senya avatar May 10 '24 08:05 cmrd-senya

The last version was released in 2021. I think the maintainer isn't releasing new versions.

tjs-intel avatar May 10 '24 15:05 tjs-intel