@@ -154,7 +154,9 @@ export const LookupKindsPerEnv: Record<
154154
155155export function getLookupKindsForEnv (
156156 env : 'client' | 'server' ,
157- opts ?: { compilerTransforms ?: Array < StartCompilerImportTransform > | undefined } ,
157+ opts ?: {
158+ compilerTransforms ?: Array < StartCompilerImportTransform > | undefined
159+ } ,
158160) : Set < LookupKind > {
159161 const kinds : Set < LookupKind > = new Set ( LookupKindsPerEnv [ env ] )
160162 for ( const transform of opts ?. compilerTransforms ?? [ ] ) {
@@ -193,18 +195,12 @@ const BuiltInKindHandlers: Record<
193195
194196const BuiltInKindHandlerOrder : Array <
195197 Exclude < BuiltInLookupKind , 'ClientOnlyJSX' >
196- > = [
197- 'ServerFn' ,
198- 'Middleware' ,
199- 'IsomorphicFn' ,
200- 'ServerOnlyFn' ,
201- 'ClientOnlyFn' ,
202- ]
198+ > = [ 'ServerFn' , 'Middleware' , 'IsomorphicFn' , 'ServerOnlyFn' , 'ClientOnlyFn' ]
203199
204200// All lookup kinds as an array for iteration with proper typing
205- const AllBuiltInLookupKinds = Object . keys ( BuiltInLookupSetup ) as Array <
206- BuiltInLookupKind
207- >
201+ const AllBuiltInLookupKinds = Object . keys (
202+ BuiltInLookupSetup ,
203+ ) as Array < BuiltInLookupKind >
208204
209205/**
210206 * Detects which LookupKinds are present in the code using string matching.
@@ -213,7 +209,9 @@ const AllBuiltInLookupKinds = Object.keys(BuiltInLookupSetup) as Array<
213209export function detectKindsInCode (
214210 code : string ,
215211 env : 'client' | 'server' ,
216- opts ?: { compilerTransforms ?: Array < StartCompilerImportTransform > | undefined } ,
212+ opts ?: {
213+ compilerTransforms ?: Array < StartCompilerImportTransform > | undefined
214+ } ,
217215) : Set < LookupKind > {
218216 const detected = new Set < LookupKind > ( )
219217 const validForEnv = getLookupKindsForEnv ( env , opts )
0 commit comments