I wanted to know where bun keeps cache of imported modules, node js keeps it in require.cache object? #10162
-
I ran this code with node and bun, in node it shows all imported modules in cache but with bun it shows empty object for cache. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
You can use The empty |
Beta Was this translation helpful? Give feedback.
-
Sorry for awaking this topic, but does it work with I'm trying to invalidate cache for certain modules that are loaded via |
Beta Was this translation helpful? Give feedback.
-
@Jarred-Sumner |
Beta Was this translation helpful? Give feedback.
You can use
require.cache
The empty
require.cache
is a bug in ourconsole.log
implementation