Urthen / case-sensitive-paths-webpack-plugin

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

Use the before emit hook to check if files exist #36

Closed sunilbandla closed 5 years ago

sunilbandla commented 6 years ago

Tests passed locally.

Urthen commented 6 years ago

Thanks for optimizing!

My only problem with this is you left in the require to perf_hooks with no fallback if it doesn't exist. perf_hooks was added in 8.5.0 and I'd like to maintain backwards compatibility to at least 6.x for a while still.

If you can either remove that or make it optional, the rest looks good.

sunilbandla commented 5 years ago

Thanks, I reverted that commit.

sunilbandla commented 5 years ago

@Urthen Is this good to merge?

sunilbandla commented 5 years ago

Thanks for merging. I will add this option to the readme after testing the next release for a few weeks.

Also, there's another possible improvement that can be made. Some folders are being read multiple times from the filesystem. It does not have a huge performance impact though. I will submit a PR for that soon.

sunilbandla commented 5 years ago

@Urthen Could you please release this change?

Urthen commented 5 years ago

Sorry this took so long, fell off my radar over the holidays.

2.2.0 is released.