Skip to content

Commit

Permalink
fix(hmr): ensure all modules are fetched as import
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 9, 2021
1 parent 5bafd04 commit 98bc767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/client/client.ts
Expand Up @@ -299,7 +299,7 @@ async function fetchUpdate({ path, acceptedPath, timestamp }: Update) {
try {
const newMod = await import(
/* @vite-ignore */
path + `?t=${timestamp}${query ? `&${query}` : ''}`
path + `?import&t=${timestamp}${query ? `&${query}` : ''}`
)
moduleMap.set(dep, newMod)
} catch (e) {
Expand Down

0 comments on commit 98bc767

Please sign in to comment.