Skip to content

feat: make cheerio imports dynamic in @crawlee/utils and @crawlee/http#3836

Open
barjin wants to merge 5 commits into
v4from
feat/dynamic-cheerio-import
Open

feat: make cheerio imports dynamic in @crawlee/utils and @crawlee/http#3836
barjin wants to merge 5 commits into
v4from
feat/dynamic-cheerio-import

Conversation

@barjin

@barjin barjin commented Jul 9, 2026

Copy link
Copy Markdown
Member

Makes cheerio imports in @crawlee/utils lazy to optimize package import times.

Testing script:

import * as x from './packages/utils/dist/index.js';

console.log(x);

before:

image

after:

image

Similar improvement is to be seen with the @crawlee/http package.

Related to #3549

@barjin barjin self-assigned this Jul 9, 2026
@barjin barjin changed the title feat: make cheerio imports dynamic in @crawlee/utils feat: make cheerio imports dynamic in @crawlee/utils and @crawlee/http Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants