Skip to content

Commit c22548e

Browse files
committed
docs: more hmr tweaks
1 parent 7394122 commit c22548e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

content/api/hot-module-replacement.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ contributors:
1111
- skipjack
1212
related:
1313
- title: Concepts - Hot Module Replacement
14-
url: TODO
14+
url: /concepts/hot-module-replacement
1515
---
1616

1717
Hot Module Replacement (or HMR) is one of the most useful features offered by webpack. It allows modules of all kinds to be updated at runtime without the need for a full refresh. This allows you to maintain application state in development and shave countless time in your workflow. This page focuses on __implementation__ while the [concepts page](/concepts/hot-module-replacement) gives more details on how it works and why it's useful.
@@ -111,7 +111,7 @@ class MyClass {
111111

112112
Even if the underlying module containing this class is patched with new code, any existing instances of the class still have the old `log` method. Meaning if we changed what that method does, it wouldn't be reflected in those old instances unless we re-instantiate them somehow using `module.hot.accept`.
113113

114-
This is just one example, but there are many others that can easily trip people up. Luckily, there are a lot of loaders out there to help you out. Let's start with stylesheets...
114+
This is just one example, but there are many others that can easily trip people up. Luckily, there are a lot of loaders out there, some mentioned below, that will make using this process much easier.
115115

116116

117117
## HMR with Stylesheets

content/api/module-variables.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ This is `false` if the module is currently executing, and `true` if the sync exe
2121

2222
### `module.hot` (webpack-specific)
2323

24-
Indicates whether or not Hot Module Replacement is enabled. See [Hot Module Replacement](/concepts/hot-module-replacement).
24+
Indicates whether or not [HMR](/concepts/hot-module-replacement) is enabled and provides an interface to the process.
25+
26+
?> Document all properties of the `module.hot` object
2527

2628

2729
### `module.id` (CommonJS)

0 commit comments

Comments
 (0)