Skip to content

Commit d7340c0

Browse files
committed
fixup! module: add clearCache for CJS and ESM
1 parent ca82056 commit d7340c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/api/module.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ garbage collection once `clearCache` removes it from Node.js caches and all
138138
JS-land references (e.g., stored namespace objects) are dropped.
139139
140140
The safest pattern for hot-reload of ES modules is to use cache-busting search
141-
parameters (so each version is a distinct module URL) and to avoid statically
142-
importing modules that need to be reloaded:
141+
parameters (so each version is a distinct module URL) and use dynamic imports for modules that need to be reloaded:
143142
144143
#### ECMA-262 spec considerations
145144

0 commit comments

Comments
 (0)