Экстренная попытка исправить Polyfill для Intl.DurationFormat

This commit is contained in:
Иван Кузьменко 2025-11-26 12:36:43 +03:00
parent 3343e59f16
commit 4c04742abc
2 changed files with 1 additions and 5 deletions

1
src/hooks.client.ts Normal file
View file

@ -0,0 +1 @@
import "@formatjs/intl-durationformat/polyfill";

View file

@ -1,8 +1,3 @@
import { shouldPolyfill } from '@formatjs/intl-durationformat/should-polyfill'
if (shouldPolyfill()) {
import('@formatjs/intl-durationformat/polyfill-force');
}
export const dateFormatShort = new Intl.DateTimeFormat(undefined, {
month: 'short',
day: 'numeric',