relative_time
relative_time copied to clipboard
High web build size increase
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.