mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
docs: add note about directory import
This commit is contained in:
parent
6b2bc680b0
commit
d2c00dc467
@ -77,6 +77,17 @@ Nuxt and Nuxt Modules are now build-time-only.
|
||||
|
||||
1. Move all your `buildModules` into `modules`.
|
||||
2. Check for Nuxt 3 compatibility of modules.
|
||||
3. If you have any local modules pointing to a directory you should update this to point to the entry file:
|
||||
|
||||
```diff
|
||||
export default defineNuxtConfig({
|
||||
modules: {
|
||||
- '~/modules/my-module'
|
||||
+ '~/modules/my-module/index'
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
|
||||
::alert
|
||||
If you are a module author, you can check out [more information about module compatibility](/docs/migration/module-authors) and [our module author guide](/docs/guide/going-further/modules).
|
||||
|
Loading…
Reference in New Issue
Block a user