Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(vite): add extend layers to fs.allow
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 15, 2022
1 parent 1f645e2 commit bd18e5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/vite.ts
Expand Up @@ -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)
]
}
}
Expand Down

0 comments on commit bd18e5c

Please sign in to comment.