function normalizeSourceType(sourceType = "script") {
    if (sourceType === "script" || sourceType === "module") {
        return sourceType;
    }

    if (sourceType === "commonjs") {
        return "script";
    }

    throw new Error("Invalid sourceType.");
}
Normalize sourceType from the initial config
@param {string} sourceType to normalize
@throws {Error} throw an error if sourceType is invalid
@returns {string} normalized sourceType