I don't fully understand what this regex is trying to match?
The \b[A-Z] part matches almost any capital letter. \buse matches for example 'use-credentials'.
Is it meant to match React components and hooks? If so it's a bit greedy. Anyway, thanks for maintaining this package!
Regex101 link: https://regex101.com/r/VTYx5E/1
I don't fully understand what this regex is trying to match?
The
\b[A-Z]part matches almost any capital letter.\busematches for example'use-credentials'.Is it meant to match React components and hooks? If so it's a bit greedy. Anyway, thanks for maintaining this package!
Regex101 link: https://regex101.com/r/VTYx5E/1
vite-plugin-react/packages/plugin-react/src/reactCompilerPreset.ts
Line 20 in 704e0d3