diff --git a/lib/utils/is-module-should-be-extracted.js b/lib/utils/is-module-should-be-extracted.js index 1389c68..6edc0f2 100644 --- a/lib/utils/is-module-should-be-extracted.js +++ b/lib/utils/is-module-should-be-extracted.js @@ -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; }