pub fn create_plugin_transform_executor(
    path: &Path,
    cache: &Lazy<PluginModuleCache>,
    source_map: &Arc<SourceMap>,
    metadata_context: &Arc<TransformPluginMetadataContext>,
    plugin_config: Option<Value>
) -> Result<TransformExecutor, Error>
Expand description

Attempt to create a executor to run plugin binaries. Internally this will try to load binary from given cache which can fail, returns error in that case.

Note you CANNOT reuse executor once trasform has been executed: executor is stateful.