fix(vite): enable fs strict mode (#8674)

This commit is contained in:
pooya parsa 2022-11-03 23:03:15 +01:00 committed by GitHub
parent 9eb6a62471
commit 44b4100e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,12 +64,12 @@ export default defineUntypedSchema({
},
server: {
fs: {
strict: false,
allow: {
$resolve: async (val, get) => [
await get('buildDir'),
await get('srcDir'),
await get('rootDir'),
await get('workspaceDir'),
...(await get('modulesDir')),
...val ?? []
]