diff options
author | 2022-07-21 18:47:11 +0000 | |
---|---|---|
committer | 2022-07-21 18:47:11 +0000 | |
commit | 3f7b5f155e85dc28b7fc95e4386a304aa9e80cdd (patch) | |
tree | 0087346e0bb691f076351b7f901d8bbcfc6a6de2 | |
parent | 48011cbcf87894ff2540f06bfbcc83b76f6fb7ff (diff) | |
download | astro-3f7b5f155e85dc28b7fc95e4386a304aa9e80cdd.tar.gz astro-3f7b5f155e85dc28b7fc95e4386a304aa9e80cdd.tar.zst astro-3f7b5f155e85dc28b7fc95e4386a304aa9e80cdd.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/errors.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/astro/src/core/errors.ts b/packages/astro/src/core/errors.ts index 7cfb46e45..49bf4b6f2 100644 --- a/packages/astro/src/core/errors.ts +++ b/packages/astro/src/core/errors.ts @@ -88,7 +88,10 @@ export function createCustomViteLogger(logLevel: LogLevel): Logger { function generateHint(err: ErrorWithMetadata, filePath?: URL): string | undefined { if (/Unknown file extension \"\.(jsx|vue|svelte|astro|css)\" for /.test(err.message)) { return 'You likely need to add this package to `vite.ssr.noExternal` in your astro config file.'; - } else if (err.toString().startsWith('ReferenceError') && (err.loc?.file ?? filePath?.pathname)?.endsWith('.astro')) { + } else if ( + err.toString().startsWith('ReferenceError') && + (err.loc?.file ?? filePath?.pathname)?.endsWith('.astro') + ) { return 'export statements in `.astro` files do not have access to local variable declarations, only imported values.'; } else { const res = incompatPackageExp.exec(err.stack); |