diff options
Diffstat (limited to 'src/platform/polyfills.ts')
-rw-r--r-- | src/platform/polyfills.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/platform/polyfills.ts b/src/platform/polyfills.ts index c26c864ca..807cc4923 100644 --- a/src/platform/polyfills.ts +++ b/src/platform/polyfills.ts @@ -1,5 +1,4 @@ import 'fast-text-encoding' -import Graphemer from 'graphemer' // @ts-ignore no decl -prf import findLast from 'array.prototype.findlast' export {} @@ -54,18 +53,3 @@ globalThis.atob = (str: string): string => { } return result } - -const splitter = new Graphemer() -globalThis.Intl = globalThis.Intl || {} - -// @ts-ignore we're polyfilling -prf -globalThis.Intl.Segmenter = - // @ts-ignore we're polyfilling -prf - globalThis.Intl.Segmenter || - class Segmenter { - constructor() {} - // NOTE - // this is not a precisely correct polyfill but it's sufficient for our needs - // -prf - segment = splitter.iterateGraphemes - } |