@parcel/utils 2.0.0-nightly.1172 → 2.0.0-nightly.1174

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.
package/lib/index.js CHANGED
@@ -33200,7 +33200,6 @@ function $ec068ba9e84f8eea$export$2e2bcd8739ae039(timeInMs) {
33200
33200
 
33201
33201
 
33202
33202
 
33203
-
33204
33203
  var $77226306a1863103$exports = {};
33205
33204
  "use strict";
33206
33205
  var $3124255f7fbe16f0$exports = {};
@@ -33477,8 +33476,8 @@ async function $f02d6a9d30f55938$export$2e2bcd8739ae039(diagnostic, options, ter
33477
33476
  let filePath = codeFrame.filePath;
33478
33477
  if (filePath != null && options && !(0, ($parcel$interopDefault($8C1kk$path))).isAbsolute(filePath)) filePath = (0, ($parcel$interopDefault($8C1kk$path))).join(options.projectRoot, filePath);
33479
33478
  let highlights = codeFrame.codeHighlights;
33480
- var _code;
33481
- let code = (_code = codeFrame.code) !== null && _code !== void 0 ? _code : options && await options.inputFS.readFile((0, (/*@__PURE__*/$parcel$interopDefault($812806c6461f2963$exports)))(filePath), "utf8");
33479
+ let code = codeFrame.code;
33480
+ if (code == null && options && filePath != null) code = await options.inputFS.readFile(filePath, "utf8");
33482
33481
  let formattedCodeFrame = "";
33483
33482
  if (code != null) formattedCodeFrame = (0, ($parcel$interopDefault($8C1kk$parcelcodeframe)))(code, highlights, {
33484
33483
  useColor: true,