Skip to content

v0.7.0

Compare
Choose a tag to compare
@romainmenke romainmenke released this 04 Apr 08:09
· 177 commits to main since this release
788f645

Intl. polyfills are a poor fit for core-web because automatic injection doesn't align with how the feature is used.

Either authors want a dynamic codebase with support for any locale.
In this case they would use variables, which we can't handle as we can't infer the needed locale files from that.

Or they want a single locale to have access to formatters.
In that case they are better off importing formatjs directly.

In polyfill.io it does make sense to include Intl as you can more easily dynamically load the correct locales based on client side values/preferences.

Removing Intl has massive benefits as it reduces the package size and speeds up the AST matching.