Skip to content

Convert @hiero-ledger/proto to ES module with named imports #3929

@steven-sheehy

Description

@steven-sheehy

Problem

For the solo memory reduction effort, we're trying to reduce the size of our dependencies to reduce image and memory size. The mirror node only uses a tiny subset of all the protos, but @hiero-ledger/proto is a commonjs module so it's not available to be tree-shaken. Even if it was, it doesn't allow individual named imports like import {Keylist} from '@hiero-ledger/proto';

Solution

Convert @hiero-ledger/proto to ES module with named imports

Alternatives

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions