fix: handle empty content when adding an empty file

This commit is contained in:
calebboyd
2018-09-28 14:40:50 -05:00
parent bd3ae2e80a
commit 689160e833
+1 -1
View File
@@ -42,7 +42,7 @@ export class Bundle {
async addResource(absoluteFileName: string, content?: Buffer | string) {
let length = 0
if (content) {
if (content !== undefined) {
length = Buffer.byteLength(content)
} else {
const stats = await stat(absoluteFileName)