diff --git a/docs/1.getting-started/12.upgrade.md b/docs/1.getting-started/12.upgrade.md index ac86d49f25..7db21c0856 100644 --- a/docs/1.getting-started/12.upgrade.md +++ b/docs/1.getting-started/12.upgrade.md @@ -4,7 +4,6 @@ description: 'Learn how to upgrade to the latest Nuxt version.' navigation.icon: i-ph-arrow-circle-up --- - ## Upgrading Nuxt ### Latest release @@ -445,7 +444,7 @@ We have already proactively migrated the public Nuxt modules which we are aware However, if you are a module author using the `builder:watch` hook and wishing to remain backwards/forwards compatible, you can use the following code to ensure that your code works the same in both Nuxt v3 and Nuxt v4: - ```diff +```diff + import { relative, resolve } from 'node:fs' // ... nuxt.hook('builder:watch', async (event, path) => { diff --git a/docs/1.getting-started/3.configuration.md b/docs/1.getting-started/3.configuration.md index 866de735f5..4cf9310b81 100644 --- a/docs/1.getting-started/3.configuration.md +++ b/docs/1.getting-started/3.configuration.md @@ -4,7 +4,6 @@ description: Nuxt is configured with sensible defaults to make you productive. navigation.icon: i-ph-gear --- - By default, Nuxt is configured to cover most use cases. The [`nuxt.config.ts`](/docs/guide/directory-structure/nuxt-config) file can override or extend this default configuration. ## Nuxt Configuration