Skip to content

[Feature request] Add method to restore previously removed range #218

@aleclarson

Description

@aleclarson
const string = new MagicString("abcd")

string.remove(0, 3)
string.toString() // => "d"

// ...later on...
string.restore(2, 3)
string.toString() // => "cd"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions