parseImportDescriptor
Function: parseImportDescriptor()
parseImportDescriptor(
descriptor):object
Defined in: packages/utils/src/esm.ts:29
Split an import descriptor file[:exportName] as found in webda.module.json.
Only a trailing :identifier is treated as the export name, so the colon of a
Windows drive letter (C:\app\lib\my.js:MyService) is kept within the file.
Parameters
descriptor
string
The import descriptor
Returns
object
the file and the export name (default when none is specified)
exportName
exportName:
string
file
file:
string