import areIntlLocalesSupported from 'intl-locales-supported'

export const importIntlPolyfill = async () => {
  const IntlPolyfill = await import('intl')
  global.Intl = IntlPolyfill.default
}

export const checkForIntlPolyfill = async (storeView) => {
  if (!(window || global).hasOwnProperty('Intl') || !areIntlLocalesSupported(storeView.i18n.defaultLocale)) {
    await importIntlPolyfill()
  }
}

import areIntlLocalesSupported from 'intl-locales-supported'

export const importIntlPolyfill = async () => {
  const IntlPolyfill = await import('intl')
  global.Intl = IntlPolyfill.default
}

export const checkForIntlPolyfill = async (storeView) => {
  if (!(window || global).Intl || !areIntlLocalesSupported(storeView.i18n.defaultLocale)) {
    await importIntlPolyfill()
  }
}

--- 
+++ 
@@ -6,7 +6,7 @@
 }
 
 export const checkForIntlPolyfill = async (storeView) => {
-  if (!(window || global).Intl || !areIntlLocalesSupported(storeView.i18n.defaultLocale)) {
+  if (!(window || global).hasOwnProperty('Intl') || !areIntlLocalesSupported(storeView.i18n.defaultLocale)) {
     await importIntlPolyfill()
   }
 }
Use `hasOwnProperty` instead of just prop name (caused error during build)
