alex_empallo
03/03/2025, 2:52 PMBot resource, but can't figure it out. For example, in medplum/examples/medplum-photon-integration/src/bots/sync-formulary.ts, there are imports like:
import { NEUTRON_HEALTH, NEUTRON_HEALTH_TREATMENTS } from './constants';
import { handlePhotonAuth, photonGraphqlFetch } from './utils';
Source: https://github.com/medplum/medplum/blob/2f74aa79ae29b638be476ad0ba029fb75d5e0d61/examples/medplum-photon-integration/src/bots/sync-formulary.ts#L3-L4
However, when I try something similar in my Bot, it doesn't work. For now, I have to paste all imported code directly into the Bot, which makes things messy.
How can I properly structure local imports for Bot resources? Any guidance would be greatly appreciated.
Thanks!albert_wong
03/10/2025, 9:06 AMreshma
03/10/2025, 3:46 PMalbert_wong
03/11/2025, 1:44 AMrahul1
03/13/2025, 1:42 AMrahul1
03/13/2025, 1:43 AMrahul1
03/13/2025, 1:44 AMesbuild as our bundler, so you can refer to the esbuild-script.mjs for reference on our configurationalbert_wong
03/14/2025, 8:16 PM