directory-named-webpack-plugin: Plugin with `include` or `exclude` options fails on Windows

Using either the include or exclude options causes the plugin to fail on Windows. The plugin uses a string.search call to check if the requested module path matches either of the include/exclude sets, but using string.search implicitly creates an invalid regex on Windows machines due to the module path forward slashes.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (14 by maintainers)

Most upvoted comments

Sorry, I don’t really have time at the moment. PR is always very welcome.