Skip to content

Commit 4c6e961

Browse files
committed
fix crash in success log
1 parent 02911fb commit 4c6e961

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dataloader.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ export class Loader {
109109
command.then(
110110
(path) => {
111111
console.info(
112-
`${this.path} ${green("success")} ${formatSize(statSync(path).size)} in ${formatElapsed(start)}`
112+
`${this.path} ${green("success")} ${formatSize(
113+
statSync(join(this.sourceRoot, path)).size
114+
)} in ${formatElapsed(start)}`
113115
);
114116
},
115117
(error) => {

0 commit comments

Comments
 (0)