docs: added link to opting in to nuxt 4 page

This commit is contained in:
Matt Clegg 2024-11-08 08:22:08 +00:00
parent d2540e45d0
commit dc229914c7

View File

@ -37,6 +37,8 @@ export default function capitalize (input: string) {
If you have set `compatibilityVersion: 4` in your `nuxt.config.ts`, you can use the auto-imported functions in the `app/` directory. This is part of Nuxt's progressive compatibility features preparing for version 4. If you have set `compatibilityVersion: 4` in your `nuxt.config.ts`, you can use the auto-imported functions in the `app/` directory. This is part of Nuxt's progressive compatibility features preparing for version 4.
If you have [set `compatibilityVersion: 4` in your `nuxt.config.ts`](https://nuxt.com/docs/getting-started/upgrade#opting-in-to-nuxt-4), you can use the auto-imported functions in the `app/` directory. This is part of Nuxt's progressive compatibility features preparing for version 4.
```vue [app.vue] ```vue [app.vue]
<script setup lang="ts"> <script setup lang="ts">
const hello = capitalize('hello') const hello = capitalize('hello')