Skip to content

Commit

Permalink
Merge pull request #764 from tomekzaw/@tomekzaw/add-worklet-directives
Browse files Browse the repository at this point in the history
Make it possible to use ExpensiMark in worklets
  • Loading branch information
roryabraham authored Jul 25, 2024
2 parents bd29e1c + ee3dfb6 commit 1f2a3a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ExpensiMark.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'worklet';

import Str from './str';
import * as Constants from './CONST';
import * as UrlPatterns from './Url';
Expand Down
2 changes: 2 additions & 0 deletions lib/str.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'worklet';

/* eslint-disable no-control-regex */
import {parsePhoneNumber} from 'awesome-phonenumber';
import * as HtmlEntities from 'html-entities';
Expand Down
2 changes: 2 additions & 0 deletions lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'worklet';

/** Checks if the `window` global object is available. */
function isWindowAvailable(): boolean {
return typeof window !== 'undefined';
Expand Down

0 comments on commit 1f2a3a3

Please sign in to comment.