Экстренная попытка исправить Polyfill для Intl.DurationFormat
This commit is contained in:
parent
3343e59f16
commit
4c04742abc
2 changed files with 1 additions and 5 deletions
1
src/hooks.client.ts
Normal file
1
src/hooks.client.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
import "@formatjs/intl-durationformat/polyfill";
|
||||||
|
|
@ -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, {
|
export const dateFormatShort = new Intl.DateTimeFormat(undefined, {
|
||||||
month: 'short',
|
month: 'short',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue