I have tried to put shared util js codes in the functions
folder, but it causes error when I run realm-cli push
because the shared js does not export a default function by exports =
.
I also tired to put shared js codes outside the functions
folder, the app can be deploy but the shared js is actually not deployed so it causes module not found error when execution.
So how can I import/require shared js codes for reusing common logics in my realm functions?