提交 e86ddf45 编写于 作者: T Tim Neutkens 提交者: Jasper De Moor

Use this.write and super.end for JSPackager (#2126)

Very small change, but I noticed how these were calling `this.dest` directly over using the Packager's methods.
上级 a0df8866
......@@ -226,7 +226,7 @@ class JSPackager extends Packager {
entry.push(this.bundle.entryAsset.id);
}
await this.dest.write(
await this.write(
'},{},' +
JSON.stringify(entry) +
', ' +
......@@ -244,7 +244,7 @@ class JSPackager extends Packager {
await this.write(`\n//# sourceMappingURL=${mapUrl}`);
}
}
await this.dest.end();
await super.end();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册