From ee3dfb6dcdda21cb2b775acf20b43359bcedd91d Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Thu, 25 Jul 2024 11:11:19 +0200 Subject: [PATCH] Make it possible to use ExpensiMark in worklets --- lib/ExpensiMark.ts | 2 ++ lib/str.ts | 2 ++ lib/utils.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/lib/ExpensiMark.ts b/lib/ExpensiMark.ts index 08290572..80bc415c 100644 --- a/lib/ExpensiMark.ts +++ b/lib/ExpensiMark.ts @@ -1,3 +1,5 @@ +'worklet'; + import Str from './str'; import * as Constants from './CONST'; import * as UrlPatterns from './Url'; diff --git a/lib/str.ts b/lib/str.ts index e1dd37c2..4ec80683 100644 --- a/lib/str.ts +++ b/lib/str.ts @@ -1,3 +1,5 @@ +'worklet'; + /* eslint-disable no-control-regex */ import {parsePhoneNumber} from 'awesome-phonenumber'; import * as HtmlEntities from 'html-entities'; diff --git a/lib/utils.ts b/lib/utils.ts index 6fde489a..92071fe7 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -1,3 +1,5 @@ +'worklet'; + /** Checks if the `window` global object is available. */ function isWindowAvailable(): boolean { return typeof window !== 'undefined';