Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
perf(router.js): make webpackStats.toJson faster (#64)
Browse files Browse the repository at this point in the history
closes #63
  • Loading branch information
n30n0v authored and SevInf committed Jul 23, 2018
1 parent 9af0bb8 commit 6eee4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function readCommonAssets(webpackStats) {
return [];
}
const commonAssetsObj = _.omitBy(
webpackStats.toJson().assetsByChunkName,
webpackStats.toJson({chunks: false, modules: false}).assetsByChunkName,
value => /\.bundle.js$/.test(value)
);

Expand Down

0 comments on commit 6eee4e9

Please sign in to comment.