mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
docs: deprecate buildModules
in schema (#3830)
This commit is contained in:
parent
70f067a14b
commit
acd22db576
@ -160,7 +160,7 @@ That's it! Now in your project, you can import your ui library as a Nuxt module
|
||||
|
||||
```js
|
||||
export default {
|
||||
buildModules: ['awesome-ui/nuxt']
|
||||
modules: ['awesome-ui/nuxt']
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -271,13 +271,13 @@ export default {
|
||||
* ]
|
||||
* ```
|
||||
*
|
||||
* @note Using `buildModules` helps to make production startup faster and also significantly
|
||||
* @note In Nuxt 2, using `buildModules` helps to make production startup faster and also significantly
|
||||
* decreases the size of `node_modules` in production deployments. Please refer to each
|
||||
* module's documentation to see if it is recommended to use `modules` or `buildModules`.
|
||||
*
|
||||
* @type {(typeof import('../src/types/module').NuxtModule | string | [typeof import('../src/types/module').NuxtModule | string, Record<string, any>])[]}
|
||||
* @version 2
|
||||
* @version 3
|
||||
* @deprecated This is no longer needed in Nuxt 3 and Nuxt Bridge; all modules should be added to `modules` instead.
|
||||
*/
|
||||
buildModules: [],
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user