From c3445971fdcf679e682f22386828339c1550419e Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Wed, 15 Nov 2017 17:20:54 -0800 Subject: [PATCH] Fix ify-loader test on Windows / Cygwin On Windows and Cygwin the path to JS source files may contain backslashes, forward slashes, or a mix. The regex used to test whether or not to use `ify-loader` contains path separators; this change allows either slash instead of requiring only forward slashes. --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 933bdec..9db7ea8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -22,7 +22,7 @@ const base = { } }, { - test: /node_modules\/(linebreak|grapheme-breaker)\/.*\.js$/, + test: /node_modules[\\/](linebreak|grapheme-breaker)[\\/].*\.js$/, loader: 'ify-loader' } ]