Skip to content

High web build size increase #5

@lukasnevosad

Description

@lukasnevosad

I noticed that using this library significantly increases the web build size. In my case, the increase in main_dart.js is +576,461 bytes, and that is after defer loading the localizations.

I tried to defer load the library, but I am stuck because I still need to import the library sync when registering the localization delegate, which will cause the library not be tree shaken from the main_dart.js build.

I wonder if there is any trick to achieve this. Half a megabyte is a very high price to pay on the web in terms of load time.

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