In our document explain how to add vca-jsx into babel config with vue cli = @vue/app but in vue cli nowadays they use @vue/cli-plugin-babel/preset. Can we update document ?
document explains that with functional component we have format function with first argument is props. but actually when render i see first argument is CTX (FunctionalRenderContext). After a hour debug source code i found that because @vue present take care convert jsx into a vue object with first argument of render = ctx, and vca skipped transpile later. I'm not good enough to modify babel plugin code, can you guy take a look.
I found that functional component should return function, while i return direct JSX.Element and it only take care from vue cli present. This is not bug, it my fault but i think we should leave notice in document.
Hi, i hope you guy good health!
I want report 2 problem:
In our document explain how to add vca-jsx into babel config with vue cli =
@vue/app
but in vue cli nowadays they use@vue/cli-plugin-babel/preset
. Can we update document ?document explains that with functional component we have format function with first argument is props. but actually when render i see first argument is CTX (I found that functional component should return function, while i return direct JSX.Element and it only take care from vue cli present. This is not bug, it my fault but i think we should leave notice in document.FunctionalRenderContext
). After a hour debug source code i found that because @vue present take care convert jsx into a vue object with first argument of render = ctx, and vca skipped transpile later. I'm not good enough to modify babel plugin code, can you guy take a look.Thank you!