summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/core/errors/index.ts10
-rw-r--r--packages/astro/src/core/errors/utils.ts2
-rw-r--r--packages/astro/src/core/render/dev/index.ts2
-rw-r--r--packages/astro/src/core/util.ts2
-rw-r--r--packages/astro/src/vite-plugin-astro-server/index.ts4
5 files changed, 10 insertions, 10 deletions
diff --git a/packages/astro/src/core/errors/index.ts b/packages/astro/src/core/errors/index.ts
index c41c43933..7eefbc824 100644
--- a/packages/astro/src/core/errors/index.ts
+++ b/packages/astro/src/core/errors/index.ts
@@ -1,12 +1,12 @@
export { AstroErrorCodes } from './codes.js';
+export type { ErrorLocation, ErrorWithMetadata } from './errors';
export {
+ AggregateError,
AstroError,
- CSSError,
CompilerError,
- RuntimeError,
+ CSSError,
MarkdownError,
- AggregateError,
+ RuntimeError,
} from './errors.js';
-export type { ErrorLocation, ErrorWithMetadata } from './errors';
export { codeFrame } from './printer.js';
-export { positionAt, collectInfoFromStacktrace } from './utils.js';
+export { collectInfoFromStacktrace, positionAt } from './utils.js';
diff --git a/packages/astro/src/core/errors/utils.ts b/packages/astro/src/core/errors/utils.ts
index 471283f11..9999b81b4 100644
--- a/packages/astro/src/core/errors/utils.ts
+++ b/packages/astro/src/core/errors/utils.ts
@@ -1,6 +1,6 @@
+import eol from 'eol';
import stripAnsi from 'strip-ansi';
import type { SSRError } from '../../@types/astro.js';
-import eol from 'eol';
export function collectInfoFromStacktrace(error: SSRError): SSRError {
if (!error.stack) return error;
diff --git a/packages/astro/src/core/render/dev/index.ts b/packages/astro/src/core/render/dev/index.ts
index 727007c35..57c436bf6 100644
--- a/packages/astro/src/core/render/dev/index.ts
+++ b/packages/astro/src/core/render/dev/index.ts
@@ -10,7 +10,7 @@ import type {
} from '../../../@types/astro';
import { PAGE_SCRIPT_ID } from '../../../vite-plugin-scripts/index.js';
import { enhanceViteSSRError } from '../../errors/dev/index.js';
-import { MarkdownError, CSSError, AggregateError } from '../../errors/index.js';
+import { AggregateError, CSSError, MarkdownError } from '../../errors/index.js';
import { LogOptions } from '../../logger/core.js';
import { isPage, resolveIdToUrl } from '../../util.js';
import { createRenderContext, renderPage as coreRenderPage } from '../index.js';
diff --git a/packages/astro/src/core/util.ts b/packages/astro/src/core/util.ts
index 482b7735f..da51d848c 100644
--- a/packages/astro/src/core/util.ts
+++ b/packages/astro/src/core/util.ts
@@ -3,7 +3,7 @@ import path from 'path';
import resolve from 'resolve';
import slash from 'slash';
import { fileURLToPath, pathToFileURL } from 'url';
-import { ErrorPayload, normalizePath, ViteDevServer } from 'vite';
+import { normalizePath, ViteDevServer } from 'vite';
import type { AstroConfig, AstroSettings, RouteType } from '../@types/astro';
import { SUPPORTED_MARKDOWN_FILE_EXTENSIONS } from './constants.js';
import { prependForwardSlash, removeTrailingForwardSlash } from './path.js';
diff --git a/packages/astro/src/vite-plugin-astro-server/index.ts b/packages/astro/src/vite-plugin-astro-server/index.ts
index 98afcef3f..023c9dd77 100644
--- a/packages/astro/src/vite-plugin-astro-server/index.ts
+++ b/packages/astro/src/vite-plugin-astro-server/index.ts
@@ -7,6 +7,8 @@ import { DevelopmentEnvironment, SSROptions } from '../core/render/dev/index';
import { Readable } from 'stream';
import { attachToResponse, getSetCookiesFromResponse } from '../core/cookies/index.js';
import { call as callEndpoint } from '../core/endpoint/dev/index.js';
+import { collectErrorMetadata, getViteErrorPayload } from '../core/errors/dev/index.js';
+import type { ErrorWithMetadata } from '../core/errors/index.js';
import { error, info, LogOptions, warn } from '../core/logger/core.js';
import * as msg from '../core/messages.js';
import { appendForwardSlash } from '../core/path.js';
@@ -16,8 +18,6 @@ import { createRequest } from '../core/request.js';
import { createRouteManifest, matchAllRoutes } from '../core/routing/index.js';
import { resolvePages } from '../core/util.js';
import notFoundTemplate, { subpathNotUsedTemplate } from '../template/4xx.js';
-import { collectErrorMetadata, getViteErrorPayload } from '../core/errors/dev/index.js';
-import type { ErrorWithMetadata } from '../core/errors/index.js';
interface AstroPluginOptions {
settings: AstroSettings;