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

This commit is contained in:
Gareth Barnard
2023-06-05 14:50:45 +01:00
parent 52a4f2d030
commit 4fbc60a455
+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;
};