Skip to content

How to tree shake? #4

@eoghanmurray

Description

@eoghanmurray

I've imported parseDeclarations in order to parse the style attributes of elements.

The style attributes are much more limited and can't e.g. include @media rules or anything, however in the build, classes like AtCustomMedia get included.

Is there any way to tree shake these out of the final build? I'm not familiar with how best to do that or what I should turn on to do so, and maybe it depends on my build process (see the other tickets).

The result is an extra 184K of code which almost doubles the amount of code of the project that I'm working on which won't be a goer!

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