Module swc_plugin_runner::cache
source · [−]Structs
Lightweight in-memory cache to hold plugin module instances. Current it doesn’t have any invalidation or expiration logics like lru, having a lot of plugins may create some memory pressure.
Statics
A shared instance to plugin’s module bytecode cache. TODO: it is unclear how we’ll support plugin itself in wasm target of swc, as well as cache.
Functions
Create a new cache instance if not intialized. This can be called multiple time, but any subsequent call will be ignored.