Urthen / case-sensitive-paths-webpack-plugin

Enforces case sensitive paths in Webpack requires.
MIT License
428 stars 45 forks source link

Change the pathCache to be a Map. #47

Closed ivasilov closed 4 years ago

ivasilov commented 4 years ago

As discussed in https://github.com/Urthen/case-sensitive-paths-webpack-plugin/issues/46, this is the first of PRs to improve speed.

This PR only changes the use of object as a map to a JS Map. Map was added in NodeJS 0.12, so no major breakages.

Urthen commented 4 years ago

Changes like these make me also want to implement some sort of timing testing. I'll try and look into some of that, as most of the recent issues have been about how long this plugin takes to work.