Skip to content

Commit 19043bd

Browse files
committed
perf(react): improve react compiler preset so that slightly more modules are filtered out
1 parent 704e0d3 commit 19043bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-react/src/reactCompilerPreset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const reactCompilerPreset = (
1717
code:
1818
options.compilationMode === 'annotation'
1919
? /['"]use memo['"]/
20-
: /\b[A-Z]|\buse/,
20+
: /\b[A-Z]|\buse[A-Z0-9]/,
2121
},
2222
applyToEnvironmentHook: (env) => env.config.consumer === 'client',
2323
optimizeDeps: {

0 commit comments

Comments
 (0)