From b70e7831e8f60e4449cfbe902838cc9ca4a56847 Mon Sep 17 00:00:00 2001 From: Rom Date: Mon, 12 Jun 2023 21:03:11 +0200 Subject: [PATCH] fix: make optimize error available to meta-framework (#13495) --- packages/vite/src/node/plugins/importAnalysis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/plugins/importAnalysis.ts b/packages/vite/src/node/plugins/importAnalysis.ts index d75a3cb769df22..d971ea6483b70b 100644 --- a/packages/vite/src/node/plugins/importAnalysis.ts +++ b/packages/vite/src/node/plugins/importAnalysis.ts @@ -665,7 +665,7 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin { return } // Unexpected error, log the issue but avoid an unhandled exception - config.logger.error(e.message) + config.logger.error(e.message, { error: e }) }) } } else if (!importer.startsWith(clientDir)) {