Skip to content

Commit 7c635ed

Browse files
author
James Halliday
committed
utf8 encoding to avoid streaming buffer chunk issues
1 parent a6636d9 commit 7c635ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ Deps.prototype.readFile = function (file, id, pkg) {
188188
tr.push(null);
189189
return tr;
190190
}
191-
var rs = fs.createReadStream(file);
191+
var rs = fs.createReadStream(file, {
192+
encoding: 'utf8'
193+
});
192194
rs.on('error', function (err) { self.emit('error', err) });
193195
this.emit('file', file, id);
194196
return rs;

0 commit comments

Comments
 (0)