Skip to content

Investigate 'pako' dependency size / tree shaking #374

@rkalis

Description

@rkalis

@mainnet-pat reached out and sent us this message:

Fyi guys, changing

import { deflate } from 'pako';

to

// @ts-ignore
import pako from 'pako/dist/pako_deflate.es5.min.js';
const deflate = pako.deflate;

makes the dep better tree shakeable and reduces the bundled dep from 130kb rendered, 35kb gzipped to 28kb rendered, 9kb gzipped as seen in the output of cashonizes yarn build dependency visualizer

We should take a look at this to see if we can reduce the build size a bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions