Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Dec 12, 2024
1 parent b81e140 commit ff09f8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vite/src/node/plugins/importAnalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ff09f8b

Please sign in to comment.