mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
removed a print lining statement and added a comment
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user