From 94b577525a63ed0eea792024ed4a5646d9a29fd8 Mon Sep 17 00:00:00 2001 From: gregory-bretall Date: Fri, 26 Apr 2019 15:57:32 -0700 Subject: [PATCH] #1251 Change logic from #1236 so that we're actually converting the backslashes into the proper regular expression format that they need to be in --- webpack.common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.common.js b/webpack.common.js index e033aa88f9..1463f201d7 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -16,7 +16,7 @@ function toAbsolute(rootRelativePath) { * "test" properties. */ function toTestRegExp(file) { - return new RegExp(path.normalize(file).replace(/\\/g, '\\')); + return new RegExp(path.normalize(file).replace(/\\/g, '\\\\')); } const base = {