fix(compiler-cli): propagate ts.SourceFile moduleName into metadata
This commit is contained in:

committed by
Alex Rickabaugh

parent
b9a91a5e74
commit
f841fbe60f
@ -550,6 +550,7 @@ export class MetadataCollector {
|
||||
__symbolic: 'module',
|
||||
version: this.options.version || METADATA_VERSION, metadata
|
||||
};
|
||||
if (sourceFile.moduleName) result.importAs = sourceFile.moduleName;
|
||||
if (exports) result.exports = exports;
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user