From 599a05bfb528e69190d158cbe58417da198de3dd Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Wed, 18 Jan 2023 18:59:33 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/errors/overlay.ts | 14 +++++++++----- packages/astro/src/vite-plugin-astro/compile.ts | 1 - 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/astro/src/core/errors/overlay.ts b/packages/astro/src/core/errors/overlay.ts index 8eb297ea00..378e05f834 100644 --- a/packages/astro/src/core/errors/overlay.ts +++ b/packages/astro/src/core/errors/overlay.ts @@ -524,11 +524,15 @@ class ErrorOverlay extends HTMLElement { if (html) { // Automatically detect links - text = text.split(' ').map(v => { - if (!v.startsWith('https://')) return v; - if (v.endsWith('.')) return `${v.slice(0, -1)}.` - return `${v}` - }).join(' '); + text = text + .split(' ') + .map((v) => { + if (!v.startsWith('https://')) return v; + if (v.endsWith('.')) + return `${v.slice(0, -1)}.`; + return `${v}`; + }) + .join(' '); } if (el) { diff --git a/packages/astro/src/vite-plugin-astro/compile.ts b/packages/astro/src/vite-plugin-astro/compile.ts index 929dac2ca8..b3c85373b2 100644 --- a/packages/astro/src/vite-plugin-astro/compile.ts +++ b/packages/astro/src/vite-plugin-astro/compile.ts @@ -1,4 +1,3 @@ -import { fileURLToPath } from 'url'; import { ESBuildTransformResult, transformWithEsbuild } from 'vite'; import { AstroConfig } from '../@types/astro'; import { cachedCompilation, CompileProps, CompileResult } from '../core/compile/index.js';