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

Mustache Syntax is always interpreted #1540

Closed
antfu opened this issue Apr 16, 2024 · 2 comments · Fixed by #1545
Closed

Mustache Syntax is always interpreted #1540

antfu opened this issue Apr 16, 2024 · 2 comments · Fixed by #1545

Comments

@antfu
Copy link
Member

antfu commented Apr 16, 2024

#524 seems to reoccur, I guess probably related to the MagicString rewrite

@KermanX
Copy link
Member

KermanX commented Apr 16, 2024

Also related: Magic String always replace text against the original text, which causes external snippets to no work with other features. For example:

<<<./external.ts {monaco-run}

The monaco-run transformer works on the original text, instead of the text transformed by the snippets transformer

@antfu
Copy link
Member Author

antfu commented Apr 17, 2024

I made https://github.com/antfu/magic-string-stack for that :)

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 a pull request may close this issue.

2 participants