From 6bc6582930a8c3170be6ba30652ec7d34cbe628d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E7=BA=B8=E5=BF=98=E5=BF=A7?= <54543761+ikxin@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:35:05 +0800 Subject: [PATCH] docs: remove redundant newlines and indentations (#29190) --- docs/1.getting-started/12.upgrade.md | 3 +-- docs/1.getting-started/3.configuration.md | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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