Skip to content

Commit

Permalink
fix(loader): check module request properly in isModuleShouldBeExtract…
Browse files Browse the repository at this point in the history
…ed with DLL Plugin

ISSUES CLOSED: #115
  • Loading branch information
kisenka committed May 24, 2017
1 parent 2ca2c45 commit ffb7b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/is-module-should-be-extracted.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function isModuleShouldBeExtracted(module) {
issuerResource = typeof issuer === 'string' ? issuer : issuer.resource;
}

if (request && (!request.includes(spriteLoaderPath) || !rule)) {
if (typeof request === 'string' && (!request.includes(spriteLoaderPath) || !rule)) {
return false;
}

Expand Down

0 comments on commit ffb7b04

Please sign in to comment.