Skip to content

Vue Compiler Options

山吹色御守 edited this page Jan 21, 2025 · 4 revisions

This option can be configured globally in the vueCompilerOptions field of the tsconfig.json file or locally using a special comment syntax at the root of an SFC. Example:

{
  "vueCompilerOptions": {
    "fallthroughAttributes": true,
    "strictTemplates": true
  }
}
<!-- @fallthroughAttributes true -->
<!-- @strictTemplates true -->

<script setup lang="ts">
...
</script>
Clone this wiki locally