docs: remove redundant newlines and indentations (#29190)

This commit is contained in:
一纸忘忧 2024-09-27 16:35:05 +08:00 committed by GitHub
parent 781d8c4174
commit 6bc6582930
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View File

@ -4,7 +4,6 @@ description: 'Learn how to upgrade to the latest Nuxt version.'
navigation.icon: i-ph-arrow-circle-up navigation.icon: i-ph-arrow-circle-up
--- ---
## Upgrading Nuxt ## Upgrading Nuxt
### Latest release ### 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: 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' + import { relative, resolve } from 'node:fs'
// ... // ...
nuxt.hook('builder:watch', async (event, path) => { nuxt.hook('builder:watch', async (event, path) => {

View File

@ -4,7 +4,6 @@ description: Nuxt is configured with sensible defaults to make you productive.
navigation.icon: i-ph-gear 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. 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 ## Nuxt Configuration