relative_time icon indicating copy to clipboard operation
relative_time copied to clipboard

High web build size increase

Open lukasnevosad opened this issue 11 months ago • 0 comments

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.

lukasnevosad avatar Jan 13 '25 09:01 lukasnevosad