From 36ee8fa90001d2642c473e78c08cb567a1cc143a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Sun, 10 Jul 2022 18:57:25 +0800 Subject: [PATCH] chore: ignore ts warning --- packages/vite/src/node/plugins/importAnalysis.ts | 2 +- packages/vite/src/node/plugins/importAnalysisBuild.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vite/src/node/plugins/importAnalysis.ts b/packages/vite/src/node/plugins/importAnalysis.ts index bf2ff5c07e760c..f04cb8625f864b 100644 --- a/packages/vite/src/node/plugins/importAnalysis.ts +++ b/packages/vite/src/node/plugins/importAnalysis.ts @@ -294,7 +294,7 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin { if (ssr) { return [url, url] } - this.error( + return this.error( `Failed to resolve import "${url}" from "${path.relative( process.cwd(), importerFile diff --git a/packages/vite/src/node/plugins/importAnalysisBuild.ts b/packages/vite/src/node/plugins/importAnalysisBuild.ts index c431ec2d1ef31a..f392cfda538584 100644 --- a/packages/vite/src/node/plugins/importAnalysisBuild.ts +++ b/packages/vite/src/node/plugins/importAnalysisBuild.ts @@ -189,7 +189,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin { if (ssr) { return [url, url] } - this.error( + return this.error( `Failed to resolve import "${url}" from "${path.relative( process.cwd(), importerFile