Skip to content

Support getting magic string length - #145

Merged
mourner merged 1 commit into
Rich-Harris:masterfrom
guybedford:length
May 31, 2018
Merged

mourner merged 1 commit into
Rich-Harris:masterfrom
guybedford:length

Conversation

@guybedford

Copy link
Copy Markdown
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
Copy Markdown

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.

3 participants