Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Apr 3, 2024
1 parent afe85ca commit 300c2ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ With all that, Hot Hook is ultimately quite simple:

- Intercept imports with a hook
- Collect all imported files and build a dependency tree
- If a file changes, then increase the query parameter of the imported module's URL
- If a file changes, check if it is hot reloadable by applying the algorithm described [above](#boundary)
- If it is hot reloadable, then add a `version` query parameter to the URL of the file
- Thus, the next time the module is imported, Node.js will load the latest version of the module

Simple, lightweight, and efficient.
Expand Down

0 comments on commit 300c2ad

Please sign in to comment.