From 44b4100e4c9c4824c5484bc2571450d81cc85a12 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Thu, 3 Nov 2022 23:03:15 +0100 Subject: [PATCH] fix(vite): enable fs strict mode (#8674) --- packages/schema/src/config/vite.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schema/src/config/vite.ts b/packages/schema/src/config/vite.ts index 50168b142c..19ab38c82f 100644 --- a/packages/schema/src/config/vite.ts +++ b/packages/schema/src/config/vite.ts @@ -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 ?? [] ]