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.
This commit is contained in:
Christopher Willis-Ford
2017-11-15 17:20:54 -08:00
parent 998d3e129a
commit c3445971fd

View File

@@ -22,7 +22,7 @@ const base = {
}
},
{
test: /node_modules\/(linebreak|grapheme-breaker)\/.*\.js$/,
test: /node_modules[\\/](linebreak|grapheme-breaker)[\\/].*\.js$/,
loader: 'ify-loader'
}
]