UNPKG

293 BJavaScriptView Raw
1import RelativeTimeFormat from './';
2import { shouldPolyfill } from './should-polyfill';
3if (shouldPolyfill()) {
4 Object.defineProperty(Intl, 'RelativeTimeFormat', {
5 value: RelativeTimeFormat,
6 writable: true,
7 enumerable: false,
8 configurable: true,
9 });
10}