removed a print lining statement and added a comment

This commit is contained in:
BrianMulhall
2020-03-26 22:33:20 -05:00
parent 3f331f002b
commit f366fc2b36
2 changed files with 2 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ meteorJsMinify = function (source) {
});
const babelResult = Babel.minify(source, babelOptions);
console.log(babelResult);
if (typeof babelResult.code === "string") {
result.code = babelResult.code;
result.minifier = 'babel-minify';

View File

@@ -28,6 +28,7 @@ class MeteorBabelMinifier {
// this function tries its best to locate the original source file
// that the error being reported was located inside of
function maybeThrowMinifyErrorBySourceFile(error, file) {
// this regex matches error messages like "Unexpected token (1:12)"
const minifierErrorRegex = /^(.*?)\s?\((\d+):(\d+)\)$/;
const parseError = minifierErrorRegex.exec(error.message);