lilact 0.26.14 → 0.26.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6466,6 +6466,7 @@ function transpileJSX(jsx2, {
6466
6466
  injectTraceLabels = false,
6467
6467
  discardComments = false,
6468
6468
  produceCJS = false,
6469
+ logErrors = false,
6469
6470
  // lilact internal
6470
6471
  blocks_info: blocks_info2 = {
6471
6472
  labels: {},
@@ -6480,7 +6481,7 @@ function transpileJSX(jsx2, {
6480
6481
  raiseError = ((eols2, msg, index2) => {
6481
6482
  const rc = getRowCol(eols2, index2);
6482
6483
  const er = new Error(msg);
6483
- console.error(`JSXParserError: ${msg} [file ${path2} at line ${rc[0] + 1}]`);
6484
+ if (logErrors) console.error(`JSXParserError: ${msg} [file ${path2} at line ${rc[0]}]`);
6484
6485
  [er.lineNumber, er.columnNumber] = rc;
6485
6486
  er.name = "JSXParseError";
6486
6487
  er.fileName = path2;