MDL-78400 JavaScript: Building JS puts build files in src dir on Win.

This commit is contained in:
Gareth Barnard
2023-06-05 14:52:16 +01:00
parent 03b605f2eb
commit 257e2b414a
+1 -2
View File
@@ -31,8 +31,7 @@
* @return {String} The rewritten destination path.
*/
const babelRename = function(destPath, srcPath) {
const path = require('path');
destPath = srcPath.replace(`amd${path.sep}src`, `amd${path.sep}build`);
destPath = srcPath.replace(`amd/src`, `amd/build`);
destPath = destPath.replace(/\.js$/, '.min.js');
return destPath;
};