webpack-deduplication-plugin
webpack-deduplication-plugin copied to clipboard
Does not work in Windows
fast-glob
dropped support for backslashes as of 3.0. Since webpack-deduplication-plugin
requires fast-glob
3.2.2
, this prevents the plugin from working correctly in Windows. No package.json
files will ever be globbed, and therefore no duplicates can be identified.
I had to fork the plugin code to fix. Either of the fixes will work:
- Ensuring
globPath
is normalized to forward slashes before callingglob.sync
- Using
glob
with code as-is instead offast-glob
(with the corresponding perf hit)