This commit is contained in:
Johannes
2022-12-02 13:03:16 +01:00
parent 9433821f09
commit f73bb21f27
7 changed files with 203 additions and 29 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ const { Mangler } = require('../build/lib/mangleTypeScript');
/**
* Map of project paths to mangled file contents
*
* @type {Map<string, Map<string, string>>}
* @type {Map<string, Map<string, { out: string; sourceMap?: string }>>}
*/
const mangleMap = new Map();
@@ -46,5 +46,5 @@ module.exports = async function (source, sourceMap, meta) {
const fileContentsMap = getMangledFileContents(options.configFile);
const newContents = fileContentsMap.get(this.resourcePath);
callback(null, newContents ?? source, sourceMap, meta);
callback(null, newContents?.out ?? source, sourceMap, meta);
};