Fix polyfill check (#7575)

This commit is contained in:
Bram Kragten 2020-11-02 22:06:49 +01:00 committed by GitHub
parent e52be20fba
commit 8361b9553b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,10 +15,10 @@ export interface FormatsType {
let polyfillLoaded = !shouldPolyfill();
const polyfillProm = polyfillLoaded
? import("@formatjs/intl-pluralrules/polyfill-locales").then(() => {
? undefined
: import("@formatjs/intl-pluralrules/polyfill-locales").then(() => {
polyfillLoaded = true;
})
: undefined;
});
/**
* Adapted from Polymer app-localize-behavior.