mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] format
This commit is contained in:
parent
d64d5b9b52
commit
018cc7d51f
5 changed files with 14 additions and 14 deletions
|
@ -1,12 +1,12 @@
|
||||||
export { AstroErrorCodes } from './codes.js';
|
export { AstroErrorCodes } from './codes.js';
|
||||||
export {
|
|
||||||
AstroError,
|
|
||||||
CSSError,
|
|
||||||
CompilerError,
|
|
||||||
RuntimeError,
|
|
||||||
MarkdownError,
|
|
||||||
AggregateError,
|
|
||||||
} from './errors.js';
|
|
||||||
export type { ErrorLocation, ErrorWithMetadata } from './errors';
|
export type { ErrorLocation, ErrorWithMetadata } from './errors';
|
||||||
|
export {
|
||||||
|
AggregateError,
|
||||||
|
AstroError,
|
||||||
|
CompilerError,
|
||||||
|
CSSError,
|
||||||
|
MarkdownError,
|
||||||
|
RuntimeError,
|
||||||
|
} from './errors.js';
|
||||||
export { codeFrame } from './printer.js';
|
export { codeFrame } from './printer.js';
|
||||||
export { positionAt, collectInfoFromStacktrace } from './utils.js';
|
export { collectInfoFromStacktrace, positionAt } from './utils.js';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import eol from 'eol';
|
||||||
import stripAnsi from 'strip-ansi';
|
import stripAnsi from 'strip-ansi';
|
||||||
import type { SSRError } from '../../@types/astro.js';
|
import type { SSRError } from '../../@types/astro.js';
|
||||||
import eol from 'eol';
|
|
||||||
|
|
||||||
export function collectInfoFromStacktrace(error: SSRError): SSRError {
|
export function collectInfoFromStacktrace(error: SSRError): SSRError {
|
||||||
if (!error.stack) return error;
|
if (!error.stack) return error;
|
||||||
|
|
|
@ -10,7 +10,7 @@ import type {
|
||||||
} from '../../../@types/astro';
|
} from '../../../@types/astro';
|
||||||
import { PAGE_SCRIPT_ID } from '../../../vite-plugin-scripts/index.js';
|
import { PAGE_SCRIPT_ID } from '../../../vite-plugin-scripts/index.js';
|
||||||
import { enhanceViteSSRError } from '../../errors/dev/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 { LogOptions } from '../../logger/core.js';
|
||||||
import { isPage, resolveIdToUrl } from '../../util.js';
|
import { isPage, resolveIdToUrl } from '../../util.js';
|
||||||
import { createRenderContext, renderPage as coreRenderPage } from '../index.js';
|
import { createRenderContext, renderPage as coreRenderPage } from '../index.js';
|
||||||
|
|
|
@ -3,7 +3,7 @@ import path from 'path';
|
||||||
import resolve from 'resolve';
|
import resolve from 'resolve';
|
||||||
import slash from 'slash';
|
import slash from 'slash';
|
||||||
import { fileURLToPath, pathToFileURL } from 'url';
|
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 type { AstroConfig, AstroSettings, RouteType } from '../@types/astro';
|
||||||
import { SUPPORTED_MARKDOWN_FILE_EXTENSIONS } from './constants.js';
|
import { SUPPORTED_MARKDOWN_FILE_EXTENSIONS } from './constants.js';
|
||||||
import { prependForwardSlash, removeTrailingForwardSlash } from './path.js';
|
import { prependForwardSlash, removeTrailingForwardSlash } from './path.js';
|
||||||
|
|
|
@ -7,6 +7,8 @@ import { DevelopmentEnvironment, SSROptions } from '../core/render/dev/index';
|
||||||
import { Readable } from 'stream';
|
import { Readable } from 'stream';
|
||||||
import { attachToResponse, getSetCookiesFromResponse } from '../core/cookies/index.js';
|
import { attachToResponse, getSetCookiesFromResponse } from '../core/cookies/index.js';
|
||||||
import { call as callEndpoint } from '../core/endpoint/dev/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 { error, info, LogOptions, warn } from '../core/logger/core.js';
|
||||||
import * as msg from '../core/messages.js';
|
import * as msg from '../core/messages.js';
|
||||||
import { appendForwardSlash } from '../core/path.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 { createRouteManifest, matchAllRoutes } from '../core/routing/index.js';
|
||||||
import { resolvePages } from '../core/util.js';
|
import { resolvePages } from '../core/util.js';
|
||||||
import notFoundTemplate, { subpathNotUsedTemplate } from '../template/4xx.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 {
|
interface AstroPluginOptions {
|
||||||
settings: AstroSettings;
|
settings: AstroSettings;
|
||||||
|
|
Loading…
Add table
Reference in a new issue