Minimize import-time `zod` schema building
Author: barjinCreated Aug 12, 2026Updated Sep 1, 2026
Labelst-tooling
As noted in this https://github.com/apify/crawlee/pull/3935#discussion_r3766802653 , some zod usage patterns can incur import-time delays (as the zod schemas have to be initialized on module load time).
As the validation happens later on, we can probably lazy-load the schemas later on to save milliseconds on @crawlee/* package imports.
Related to #3549
Source: apify/crawlee