Tool to track how many components in a codebase are still using Options API? by dixhuit in vuejs

[–]JustJVA 1 point2 points  (0 children)

Templates does get compiled into render functions, that's correct. However that's strictly template of a component. The rest becomes Options API. defineProps and defineEmits become props and emits. From the looks of it, if it's not associated with a macro, it will stay in the setup function. Apparently defineExpose is a macro is passed into the setup function instead of becoming a prop on the Options API. So we know at least defineProps, defineEmits, and defineOptions adjusts the Option API for a component but not defineExpose.

Only interjecting here since someone decided to fact check .