Skip to content

Bundle size #325

@alexblack

Description

@alexblack

I'm trying out migrating from amplitude-js to amplitude-browser, hoping that we'd achieve a smaller bundle size through tree shaking (we're using it in Remix which uses esbuild)

However, our bundle size has gone up by ~13kb, despite our careful import usage like import { track } from '@amplitude/analytics-browser'

Before:

Screen Shot 2023-02-07 at 4 10 22 PM

After:

Screen Shot 2023-02-07 at 4 10 27 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions