mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 02:26:21 +08:00
332cd3b380
This pr is trying to split `web` and `electron` entries from `core`. It allows more platform-related optimization to be addressed in each entry. We should remove all browser/electron only codes from `core` eventually, this is the very first step for that.
12 lines
254 B
TypeScript
12 lines
254 B
TypeScript
if (Intl.Segmenter === undefined) {
|
|
await import('intl-segmenter-polyfill-rs').then(({ Segmenter }) => {
|
|
Object.defineProperty(Intl, 'Segmenter', {
|
|
value: Segmenter,
|
|
configurable: true,
|
|
writable: true,
|
|
});
|
|
});
|
|
}
|
|
|
|
export {};
|