Merge branch 'wip_MDL-78400_master' of https://github.com/gjb2048/moodle

This commit is contained in:
Andrew Nicols
2023-06-08 10:51:07 +08:00
+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;
};