-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generic typo detection in RSC directives (#68890)
This PR changes the Server Actions SWC transform, to instead of having a hard coded list of `"use server"` directive typos we use a O(len) algorithm to detect possible mistakes in the directive name. Note that the previous `.iter()` approach is also theoretically slower O(n * len). This was cherry-picked from a larger change which will later make this transform more general and support different directive names (via configurations).
- Loading branch information
1 parent
22bac28
commit ec9e38e
Showing
1 changed file
with
60 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters