We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
commit()
rollback()
1 parent 2eb9275 commit a7d5693Copy full SHA for a7d5693
src/index.ts
@@ -49,6 +49,7 @@ export default class MagicStringStack implements MagicString {
49
const newOne = new MagicString(this._current.toString(), this._options)
50
this._current = newOne
51
this._stack.unshift(newOne)
52
+ return this
53
}
54
55
/**
@@ -59,6 +60,7 @@ export default class MagicStringStack implements MagicString {
59
60
throw new Error('Cannot rollback on the first commit')
61
this._stack.shift()
62
this._current = this._stack[0]
63
64
65
66
get original() {
0 commit comments