如何将ast转换成模板字符串 #12933
Unanswered
chenxiaoleizi
asked this question in
Help/Questions
如何将ast转换成模板字符串
#12933
Replies: 0 comments
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.
-
我在 vite 插件的 transform 的钩子中使用
parse(code).descriptor.template?.ast
拿到了 ast,然后对ast进行修改,修改完之后怎么才能根据新的ast重新生产模板字符串。@vue/compiler-sfc
中parse
函数的反向操作。Beta Was this translation helpful? Give feedback.
All reactions