Inject Intl polyfills where used (#20798)

* Inject Intl polyfills where used

* Replace Intl polyfill in localize method with loading intl-messageformat asynchronously

* Remove spurious feature tests for Intl
This commit is contained in:
Steve Repsher
2024-05-29 08:01:21 -04:00
committed by GitHub
parent e059ca146b
commit 7748315fc3
19 changed files with 75 additions and 52 deletions

View File

@@ -157,6 +157,7 @@ module.exports.babelOptions = ({ latestBuild, isProdBuild, isTestBuild }) => ({
exclude: [
path.join(paths.polymer_dir, "src/resources/polyfills"),
...[
"@formatjs/intl-\\w+",
"@lit-labs/virtualizer/polyfills",
"@webcomponents/scoped-custom-element-registry",
"element-internals-polyfill",