@medusajs/utils
Version:
Medusa utilities functions shared by Medusa core and Modules
13 lines • 526 B
TypeScript
/**
* Utility that should be used instead of either await import() or require()
* to avoid bundling issues. That way we have a single place
* where we manage the strategy to dynamically import a module.
*
* This issue arise from migration to Node16 or NodeNext module resolution as well
* as ts-node not being maintained anymore and throwing deprecation warnings.
* all over the place.
*
* @param path
*/
export declare function dynamicImport(path: string): Promise<any>;
//# sourceMappingURL=dynamic-import.d.ts.map