Skip to content

Glossary: Vue.js

Compiler macro

Also written: compiler macros

A function such as `defineProps`, `defineEmits` or `defineModel` that works only inside `<script setup>` and needs no import.

Where the book teaches it

Related terms

definePropsdefineEmitsdefineModel