Skip to content

Commit

Permalink
Update packages/babel-generator/src/buffer.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
  • Loading branch information
liuxingbaoyu and jridgewell committed Oct 15, 2022
1 parent c43f06e commit 682e833
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/babel-generator/src/buffer.ts
Expand Up @@ -114,7 +114,9 @@ export default class Buffer {
code: (this._buf + this._str).trimRight(),
// Decoded sourcemap is free to generate.
decodedMap: map?.getDecoded(),
// Just for backwards compatibility.
// Used as a marker for backwards compatibility. We moved input map merging
// into the generator. We cannot merge the input map a second time, so the
// presence of this field tells us we've already done the work.
get __mergedMap() {
return this.map;
},
Expand Down

0 comments on commit 682e833

Please sign in to comment.