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

Commit 6eee4e9

Browse files
n30n0vSevInf
authored andcommitted
perf(router.js): make webpackStats.toJson faster (#64)
closes #63
1 parent 9af0bb8 commit 6eee4e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function readCommonAssets(webpackStats) {
4545
return [];
4646
}
4747
const commonAssetsObj = _.omitBy(
48-
webpackStats.toJson().assetsByChunkName,
48+
webpackStats.toJson({chunks: false, modules: false}).assetsByChunkName,
4949
value => /\.bundle.js$/.test(value)
5050
);
5151

0 commit comments

Comments
 (0)