Hacker News new | ask | show | jobs
by lightwords 96 days ago
Word of warning Temporal relies on the Intl API for formatting, and support in Chrome is very limited due to their binary size constraints. As a result, you'll need to polyfill unsupported languages using format.js
2 comments

  $ du -sh '/Applications/Google Chrome.app'
   1.3G    /Applications/Google Chrome.app
There are numerous reports on this being an issue e.g. https://issues.chromium.org/issues/40624456
Thanks for the heads up. Will think on this and will probably just document the polyfill.
That's complete crazy.
Format.js polyfills a lot of stuff that's already supported in modern browsers, and seems to prefer its own polyfills to the native APIs.

Is there any way to force it to only use (and bundle) the polyfills that are needed assuming 2025+ era browsers?