Skip to content

Make shared packages runtime-independent #537

@barjin

Description

@barjin

Because of importing node:xyz packages, the shared packages (e.g. @apify/utilities) require polyfills when bundled in a web application, or used in a non-node server-side runtime. This bloats the bundle size and complicates initial project setup (especially when using e.g. apify-client).

All(?) of the used behaviour now has Web API alternatives, which tend to be implemented across all major runtimes and browsers. Swapping the current node imports for the native implementations might solve this issue.

Needs investigation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions