webpack-deadcode-plugin
webpack-deadcode-plugin copied to clipboard
Fix failOnHint for unused exports
unusedExportMap is a map so the Object.keys function should be used to check if it is empty.
Confirmed that this does terminate the compilation with unused exports and the failOnHint: true.
thanks @tjs-intel for fixing the issue 💯
I does not work for webpack 4 now with the latest version. Is the fix in this thread only function for webpack 5?
The last version was released in 2021. I think the maintainer isn't releasing new versions.