diff --git a/src/flushChunks.js b/src/flushChunks.js index bd9ab09..e65ea59 100644 --- a/src/flushChunks.js +++ b/src/flushChunks.js @@ -195,7 +195,7 @@ const filesFromChunks = ( checkChunkNames?: boolean ): Files => { const hasChunk = entry => { - const result = !!(assets[entry] || assets[entry+'-']) + const result = !!(assets[entry] || assets[entry + '-']) if (!result && checkChunkNames) { console.warn(`[FLUSH CHUNKS]: Unable to find ${entry} in Webpack chunks. Please check usage of Babel plugin.`) } @@ -203,7 +203,7 @@ const filesFromChunks = ( return result } - const entryToFiles = entry => assets[entry]|| assets[entry+'-'] + const entryToFiles = entry => assets[entry]|| assets[entry + '-'] return [].concat(...chunkNames.filter(hasChunk).map(entryToFiles)) }