Function
resolveFsAllow
(
projectRoot: string,
rootConfigFile: string | false | undefined,
)
Source from the content-addressed store, hash-verified
| 101 | } |
| 102 | |
| 103 | export function resolveFsAllow( |
| 104 | projectRoot: string, |
| 105 | rootConfigFile: string | false | undefined, |
| 106 | ): string[] { |
| 107 | if (!rootConfigFile) { |
| 108 | return [searchForWorkspaceRoot(projectRoot), rootDir] |
| 109 | } |
| 110 | return [ |
| 111 | dirname(rootConfigFile), |
| 112 | searchForWorkspaceRoot(projectRoot), |
| 113 | rootDir, |
| 114 | ] |
| 115 | } |
| 116 | |
| 117 | export function getDefaultResolveOptions(): vite.ResolveOptions { |
| 118 | return { |
Tested by
no test coverage detected