Skip to content

Commit

Permalink
Use _.assign instead of spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
James Bourne committed Oct 14, 2019
1 parent 3bd0693 commit 89180fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/compileStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ function loadStatsFromFile(webpackOutputPath) {
throw error;
}

const mappedStats = _.map(stats.stats, s => ({ ...s, outputPath: path.resolve(webpackOutputPath, s.outputPath) }));
const mappedStats = _.map(stats.stats, s =>
_.assign({}, s, { outputPath: path.resolve(webpackOutputPath, s.outputPath) })
);

return { stats: mappedStats };
}
Expand Down

0 comments on commit 89180fe

Please sign in to comment.