Skip to content

Commit 86ea149

Browse files
committed
fix(nuxt): duplicate scan dirs with app
1 parent da37965 commit 86ea149

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

packages/nuxt/src/module.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,9 @@ export default defineNuxtModule<ModuleOptions>({
4747
'StoreWrappedItem',
4848
].map(name => ({ from: importsFile, name, type: true })))
4949

50-
// Scan folder
51-
if (!options.rstoreDirs) {
52-
// resolve it against the src dir which is the root by default
53-
options.rstoreDirs = [resolve(nuxt.options.srcDir, 'rstore')]
54-
}
55-
56-
const rstoreModelDirs = options.rstoreDirs as string[]
57-
const rstorePluginDirs = rstoreModelDirs.map(dir => resolve(dir, 'plugins'))
50+
// Scan folders
51+
const rstoreModelDirs: string[] = []
52+
const rstorePluginDirs: string[] = []
5853

5954
for (const layer of nuxt.options._layers) {
6055
const layerRstoreDirs = (layer.config as unknown as { rstore: ModuleOptions } | null)?.rstore?.rstoreDirs ?? ['rstore']

0 commit comments

Comments
 (0)