Skip to content

Commit

Permalink
fix access
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 1, 2024
1 parent cc37d27 commit 2f443a9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ export function isMatchedFunctionExported(
// by going through the tokens. Use the 1st string token as the directive
export function determineClientDirective(root: Collection<any>) {
const { program } = root.get().node
let directive = undefined

directive = program.directives[0].value
const directive = program.directives[0]?.value

return directive === 'use client'
}
Expand Down

0 comments on commit 2f443a9

Please sign in to comment.