From 6d66cbf3c1e7bfb9c52b88717e8ffb189fd75fed Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 23 Apr 2026 19:29:17 +0000 Subject: [PATCH] docs: clarify that result.result is an array Closes #51 The README incorrectly documented `result.result` as `Buffer | String`, but it is actually an array of all arguments passed by the final normal loader (typically [content, sourceMap, meta]). --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b9d5eb6..174ecd1 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,9 @@ runLoaders( }, (err, result) => { // err: Error? - // result.result: Buffer | String - // The result + // result.result: [Buffer | String, SourceMap?, Meta?] + // The result as an array matching the arguments passed by the final normal loader + // (typically [content, sourceMap, meta]) // only available when no error occurred // result.resourceBuffer: Buffer // The raw resource as Buffer (useful for SourceMaps)