importEmail
Function: importEmail()
importEmail(
path,sourceMap?):Promise<EmailComponent>
Defined in: packages/react-email/src/loader.ts:110
Import the default export of an email module
The module is cached by path and modification time: the parts of one file share a single import and an edited file is reloaded.
Parameters
path
string
path of the email module
sourceMap?
Record<string, string>
optional source to compiled prefix map, see resolveModulePath
Returns
Promise<EmailComponent>
the email component