which is not compatible with toString(node) (I guess), but changing value: toString(node) to value: node doesn't seem to be compatible with valueToEstree
Any idea how it could be made compatible? If you have the time and interest of course 😇
hmm, i think we would need a way to evaluate the estree at compile time. or create the tree ourselves instead of using valueToEstree (which sounds more doable).
I'm using mdx-bundler#frontmatter-and-const and define my h1 as
which in the ast looks like
which is not compatible with
toString(node)
(I guess), but changingvalue: toString(node)
tovalue: node
doesn't seem to be compatible withvalueToEstree
Any idea how it could be made compatible? If you have the time and interest of course 😇