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

fix(vite): enable fs strict mode #8674

Merged
merged 2 commits into from
Nov 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/schema/src/config/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? []
]
Expand Down