Trying to use language-core
to parse and edit SFCs via AST, how can I create new elements on the AST?
#11013
Unanswered
josh-hemphill
asked this question in
Help/Questions
Replies: 1 comment 4 replies
-
import { MagicStringAST, parseSFC, walkAST } from '@vue-macros/common'; s.overwriteNode s.removeNode s.prepend
s.append |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
@vue/language-core/lib/virtualFile/computedSfc
with below to get an AST:I can't find anything in the codebase to create elements that it would expect.
Beta Was this translation helpful? Give feedback.
All reactions