Merge branch 'MDL-77995-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE

This commit is contained in:
Andrew Nicols 2023-05-25 09:50:47 +08:00
commit 05a5ed676c
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -30,10 +30,10 @@
* @param {String} srcPath the matched src path
* @return {String} The rewritten destination path.
*/
const babelRename = function(destPath, srcPath) {
destPath = srcPath.replace('src', 'build');
destPath = destPath.replace('.js', '.min.js');
const path = require('path');
destPath = srcPath.replace(`amd${path.sep}src`, `amd${path.sep}build`);
destPath = destPath.replace(/\.js$/, '.min.js');
return destPath;
};