Skip to content

Commit

Permalink
fix: replace find with filter
Browse files Browse the repository at this point in the history
Fixing find, should be filter
  • Loading branch information
gajus committed Aug 22, 2017
2 parents 753ede4 + 7648401 commit c6af419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factories/createCompilerCallback.js
Expand Up @@ -50,7 +50,7 @@ export default (compiler: Compiler, callback: Function): Function => {

debug('requestMap', requestMap);

const files = stats.compilation.chunks[0].files.find((file) => {
const files = stats.compilation.chunks[0].files.filter((file) => {
return /\.js$/.test(file);
});
const bundleName = files[files.length - 1];
Expand Down

0 comments on commit c6af419

Please sign in to comment.