diff --git a/lib/utils/mapped-list.js b/lib/utils/mapped-list.js index 576d96e..27cd802 100644 --- a/lib/utils/mapped-list.js +++ b/lib/utils/mapped-list.js @@ -85,10 +85,9 @@ class MappedList { const { symbols, spriteModules, allModules, rules } = this; const data = symbols.reduce((acc, symbol) => { const resource = symbol.request.file; - const module = spriteModules.find(m => 'resource' in m - ? m.resource.split('?')[0] === resource - : false - ); + const module = spriteModules.find((m) => { + return 'resource' in m ? m.resource.split('?')[0] === resource : false; + }); const rule = getMatchedRule(resource, rules); const options = rule ? getLoaderOptions(spriteLoaderPath, rule) : null; let spriteFilename = (options && options.spriteFilename)