From ff09f8be3a6711afc71345e447caf356b80ea772 Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Thu, 12 Dec 2024 06:44:24 +0100 Subject: [PATCH] fix lint --- packages/vite/src/node/plugins/importAnalysis.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/node/plugins/importAnalysis.ts b/packages/vite/src/node/plugins/importAnalysis.ts index 7b9c7b2f8b1f3f..05ce16f6d94bd6 100644 --- a/packages/vite/src/node/plugins/importAnalysis.ts +++ b/packages/vite/src/node/plugins/importAnalysis.ts @@ -411,7 +411,10 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin { // check if the dep has been hmr updated. If yes, we need to attach // its last updated timestamp to force the browser to fetch the most // up-to-date version of this module. - if (environment.config.consumer === 'client' && depModule.lastHMRTimestamp > 0) { + if ( + environment.config.consumer === 'client' && + depModule.lastHMRTimestamp > 0 + ) { url = injectQuery(url, `t=${depModule.lastHMRTimestamp}`) } } catch (e: any) {