fix(vite): add extend layers to `fs.allow` (#9006)

This commit is contained in:
pooya parsa 2022-11-15 11:53:32 +01:00 committed by GitHub
parent 1f645e2a96
commit 4a779460a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ export async function bundle (nuxt: Nuxt) {
watch: { ignored: isIgnored },
fs: {
allow: [
nuxt.options.appDir
nuxt.options.appDir,
...nuxt.options._layers.map(l => l.config.rootDir)
]
}
}