Skip to content

Commit

Permalink
doc: fix readme hmr.d.ts link (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
klevron authored Oct 13, 2020
1 parent c3ef4f6 commit 24336f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Note that `vue` has special treatment - if it isn't installed in the project loc
}
```
For the full API, consult [hmr.d.ts](https://github.com/vitejs/vite/blob/master/hmr.d.ts).
For the full API, consult [importMeta.d.ts](https://github.com/vitejs/vite/blob/master/importMeta.d.ts).
Note that Vite's HMR does not actually swap the originally imported module: if an accepting module re-exports imports from a dep, then it is responsible for updating those re-exports (and these exports must be using `let`). In addition, importers up the chain from the accepting module will not be notified of the change.
Expand Down

0 comments on commit 24336f4

Please sign in to comment.