Skip to content

Commit

Permalink
docs: add note about directory import
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 30, 2023
1 parent 6b2bc68 commit d2c00dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/7.migration/2.configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit d2c00dc

Please sign in to comment.