Function swc_plugin_runner::cache::init_plugin_module_cache_once
source · pub fn init_plugin_module_cache_once(filesystem_cache_root: &Option<String>)
Expand description
Create a new cache instance if not initialized. This can be called multiple time, but any subsequent call will be ignored.
This fn have a side effect to create path to cache if given path is not resolvable. If root is not specified, it’ll generate default root for cache location.
If cache failed to initialize filesystem cache for given location it’ll be serve in-memory cache only.