Files
Donny/강동윤andGitHub af6aa786b9 feat(next-swc): Add a transform adding function names (#68056)
### What?

Implements a transform that adds readable names to anonymous function
expressions in react component functions.

Adding `{ debugFunctionName: true }` to swcOptions will do the trick.

### Why?

x-ref: https://vercel.slack.com/archives/C04TR3U872A/p1721702161121619


### How?
2024-07-24 21:01:59 +09:00

7 lines
155 B
JavaScript

const Component = () => {
useLayoutEffect(() => {})
useEffect(() => {})
const onClick = useCallback(() => [])
const computed = useMemo(() => {})
}