Skip to content

Commit 5f856ec

Browse files
committed
add moduleId to stats
1 parent 96150c0 commit 5f856ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Stats.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ Stats.prototype.toJson = function toJson(options, forToString) {
175175
if(showChunkOrigins) {
176176
obj.origins = chunk.origins.map(function(origin) {
177177
return {
178+
moduleId: origin.module ? origin.module.id : undefined,
178179
module: origin.module ? origin.module.identifier() : "",
179180
loc: origin.loc ? obj.loc = origin.loc.start.line + ":" + origin.loc.start.column + "-" +
180181
(origin.loc.start.line != origin.loc.end.line ? origin.loc.end.line + ":" : "") + origin.loc.end.column : "",

0 commit comments

Comments
 (0)