diff options
author | 2022-01-19 13:26:51 +0000 | |
---|---|---|
committer | 2022-01-19 13:26:51 +0000 | |
commit | b7e8b5dff33f12e1d75a22d7e202019466731b17 (patch) | |
tree | a7327cd147a7c35ff2d0929fb060a835fac7c6f8 | |
parent | 5208c88aeb512250f2a443edede574710dbccffa (diff) | |
download | astro-b7e8b5dff33f12e1d75a22d7e202019466731b17.tar.gz astro-b7e8b5dff33f12e1d75a22d7e202019466731b17.tar.zst astro-b7e8b5dff33f12e1d75a22d7e202019466731b17.zip |
[ci] yarn format
-rw-r--r-- | packages/astro/src/core/ssr/result.ts | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/astro/src/core/ssr/result.ts b/packages/astro/src/core/ssr/result.ts index 95ff36239..4c8c96555 100644 --- a/packages/astro/src/core/ssr/result.ts +++ b/packages/astro/src/core/ssr/result.ts @@ -39,19 +39,23 @@ export function createResult(args: CreateResultArgs): SSRResult { url, }, resolve(path: string) { - if(astroConfig.buildOptions.experimentalStaticBuild) { + if (astroConfig.buildOptions.experimentalStaticBuild) { let extra = `This can be replaced with a dynamic import like so: await import("${path}")`; - if(isCSSRequest(path)) { + if (isCSSRequest(path)) { extra = `It looks like you are resolving styles. If you are adding a link tag, replace with this: <style global> @import "${path}"; </style> -` +`; } - warn(args.logging, `deprecation`, `${bold('Astro.resolve()')} is deprecated. We see that you are trying to resolve ${path}. -${extra}`); + warn( + args.logging, + `deprecation`, + `${bold('Astro.resolve()')} is deprecated. We see that you are trying to resolve ${path}. +${extra}` + ); // Intentionally return an empty string so that it is not relied upon. return ''; } |