We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove
import MagicString from 'https://esm.sh/magic-string'; const s = new MagicString('problems = 99'); s.remove(-1, 5);
Uncaught Error: end must be greater than start
Lead me on a bit of a wild goose chase before I realized the issue was with the start position, not that the end was somehow less than the start.
The text was updated successfully, but these errors were encountered:
It seems it works like String::slice.
magic-string/src/MagicString.js
Lines 471 to 473 in 8e77538
Sorry, something went wrong.
No branches or pull requests
Lead me on a bit of a wild goose chase before I realized the issue was with the start position, not that the end was somehow less than the start.
The text was updated successfully, but these errors were encountered: