Skip to content

Reduce Bundle Size: Make initia.js a peer dependency (like @aptos-labs/ts-sdk) #247

@itsmnthn

Description

@itsmnthn

The surf package bundle size has increased significantly due to initia.js being included as a direct dependency.

This contrasts with @aptos-labs/ts-sdk, which is correctly listed as a peer dependency. For users only needing Aptos support, the bundled initia.js adds unnecessary bloat.

Could initia.js also be changed to a peer dependency? This would align the handling of chain-specific SDKs and allow consumers to only install/bundle initia.js if they actually need Initia functionality, keeping the core package lean for single chain users.

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