turborepo
b5647f7b - Turbopack: don't consider any unanalyzable spawn expression `node` (#6212)

Commit
2 years ago
Turbopack: don't consider any unanalyzable spawn expression `node` (#6212) Currently, as `Pattern::is_match` considers any dynamic expression as matching, any unanalyzable pattern is considered an invocation of `node`, causing Turbopack to attempt to trace its arguments. This adds a new method, `Pattern::is_match_ignore_dynamic`, that does not behave this way. The existing behavior is preserved by `is_match` for compatibility elsewhere. Test Plan: Added a snapshot test. Closes WEB-1800
Author
Parents
Loading