next.js
78d70501 - Turbopack: Remove the `lazy-regex` dependency (#82288)

Commit
150 days ago
Turbopack: Remove the `lazy-regex` dependency (#82288) Yes, `lazy_regex` makes this code slightly cleaner, and it does have the nice side-effect of compile-time checking the regexes but: - We've got test coverage for all of these regexes. - It adds a proc macro, proc macros are detrimental to build performance. - It doesn't really clean up the code that much versus the new stdlib `LazyLock`. - This is the only crate using it. So I don't think it's worth it.
Author
bgw bgw
Parents
Loading