From 9df98e65f842cf3acae09cbdd969966f42d64469 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 14 Oct 2017 18:40:54 +0200 Subject: update dependencies --- node_modules/webpack/lib/NormalModule.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'node_modules/webpack/lib/NormalModule.js') diff --git a/node_modules/webpack/lib/NormalModule.js b/node_modules/webpack/lib/NormalModule.js index d150fc767..c3288bf0d 100644 --- a/node_modules/webpack/lib/NormalModule.js +++ b/node_modules/webpack/lib/NormalModule.js @@ -34,12 +34,13 @@ function asString(buf) { function contextify(context, request) { return request.split("!").map(function(r) { - let rp = path.relative(context, r); + const splitPath = r.split("?"); + splitPath[0] = path.relative(context, splitPath[0]); if(path.sep === "\\") - rp = rp.replace(/\\/g, "/"); - if(rp.indexOf("../") !== 0) - rp = "./" + rp; - return rp; + splitPath[0] = splitPath[0].replace(/\\/g, "/"); + if(splitPath[0].indexOf("../") !== 0) + splitPath[0] = "./" + splitPath[0]; + return splitPath.join("?"); }).join("!"); } -- cgit v1.2.3