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';