Skip to content
New issue

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

Support getting magic string length #145

Merged
merged 1 commit into from May 31, 2018
Merged

Conversation

guybedford
Copy link
Contributor

This is useful for getting the length of a MagicString or Bundle without having to fully serialize the string.

@mourner mourner merged commit 2d08b08 into Rich-Harris:master May 31, 2018
@aleclarson
Copy link

Maybe this should be a property instead of a method? Shouldn't be terribly difficult to update it for every mutation. Though, it's only an issue if you access the length often.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants