Skip to content

Commit

Permalink
Use this.write and super.end for JSPackager (#2126)
Browse files Browse the repository at this point in the history
Very small change, but I noticed how these were calling `this.dest` directly over using the Packager's methods.
  • Loading branch information
timneutkens authored and DeMoorJasper committed Oct 13, 2018
1 parent 29076cc commit 5e61756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/parcel-bundler/src/packagers/JSPackager.js
Expand Up @@ -226,7 +226,7 @@ class JSPackager extends Packager {
entry.push(this.bundle.entryAsset.id);
}

await this.dest.write(
await this.write(
'},{},' +
JSON.stringify(entry) +
', ' +
Expand All @@ -244,7 +244,7 @@ class JSPackager extends Packager {
await this.write(`\n//# sourceMappingURL=${mapUrl}`);
}
}
await this.dest.end();
await super.end();
}
}

Expand Down

0 comments on commit 5e61756

Please sign in to comment.