Skip to content

Commit 0dbf314

Browse files
committed
docs: prefix imports.dirs with alias
1 parent a7b8db9 commit 0dbf314

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/2.guide/2.directory-structure/1.composables.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ export { utils } from './nested/utils.ts'
109109
export default defineNuxtConfig({
110110
imports: {
111111
dirs: [
112-
// Scan top-level modules
113-
'composables',
114-
// ... or scan modules nested one level deep with a specific name and file extension
115-
'composables/*/index.{ts,js,mjs,mts}',
116-
// ... or scan all modules within given directory
117-
'composables/**'
112+
// Scan top-level composables
113+
'~/composables',
114+
// ... or scan composables nested one level deep with a specific name and file extension
115+
'~/composables/*/index.{ts,js,mjs,mts}',
116+
// ... or scan all composables within given directory
117+
'~/composables/**'
118118
]
119119
}
120120
})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy