We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17af924 commit fe31fcdCopy full SHA for fe31fcd
lib/loader.js
@@ -41,11 +41,11 @@ var defaultLang = {
41
var excludedPreLoadersRE = /eslint-loader/
42
43
function getRawRequest (context) {
44
- const clonedContext = Object.assign({}, context, {
+ return loaderUtils.getRemainingRequest({
45
+ resource: context.resource,
46
+ loaderIndex: context.loaderIndex,
47
loaders: context.loaders.filter(loader => !excludedPreLoadersRE.test(loader.path))
48
})
- delete clonedContext.remainingRequest
- return loaderUtils.getRemainingRequest(clonedContext)
49
}
50
51
module.exports = function (content) {
0 commit comments