Skip to content

It is recommended to bring in abi json files for processing to reduce the package size after packing #20

@leo-web3

Description

@leo-web3

I read the source code, the internal reference abi json file, because of the characteristics of json, even if the deconstruction assignment, will not trigger the tree shaking, so the use of siddjs in the project after packaging, the package size is very bloated

The tree shake needs to use export internally, but this export is not available on json. So the whole json file will be introduced and then deconstructed to abi

image

image

This is a very horrible size, I only use the project, read whether the user has bns address, and then display the needs, but I have to pay for this function nearly 1m packaging volume, even after gz compression is still about 80k, which affects the performance optimization

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