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

Clones intro and outro of MagicString #163

Merged
merged 1 commit into from Sep 30, 2019
Merged

Clones intro and outro of MagicString #163

merged 1 commit into from Sep 30, 2019

Conversation

ggoodman
Copy link
Contributor

MagicString instances, when cloned would not inherit their intro and outro properties. Add test to ensure that a cloned MagicString with prefix and suffix will produce a generated string matching the original. Correctly clone .intro and .outro to get the expected behaviour.

Fixes #162.

MagicString instances, when cloned would not inherit their intro and outro properties. Add test to ensure that a cloned MagicString with prefix and suffix will produce a generated string matching the original. Correctly clone `.intro` and `.outro` to get the expected behaviour.
@Rich-Harris Rich-Harris merged commit 68fcedc into Rich-Harris:master Sep 30, 2019
@Rich-Harris
Copy link
Owner

thank you! released 0.25.4

@ggoodman ggoodman deleted the fix-clone-intro-outro branch September 30, 2019 16:01
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.

MagicString#clone will not clone intro and outro
2 participants