Skip to content

Reduce bundle size #38

@AndersCan

Description

@AndersCan

This issue may perhaps be irrelevant for what this project is trying to achieve, so feel free to close.


I am making an app where I want the bundle to be as small as possible (as always). I noticed that the bundle size difference between import { render } from '@popeindustries/lit-html'; and import { render } from 'lit-html'; was quite large

image

Can be tested here: https://stackblitz.com/edit/lit-html-pope-lit?file=src%2Fplain-lit.ts&view=editor with npm run build (minify is set to false so that the /dist contents can be read)

Looks like the pope version contains hydration logic and, what I assume to be a reactive-controller. Is it possible to remove this or should I just use plain lit-html as I do not require any additional logic?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions