pub async fn compile_and_extract_plugins(
files: &[PathBuf],
) -> (Vec<CompiledPlugin>, Vec<(PathBuf, ScriptError)>)Expand description
Bundle + compile + extract every plugin file. The expensive per-file rolldown bundles run concurrently; bytecode compile + extraction share ONE throwaway runtime for the whole batch (the pre-migration path spun one full engine per file for extraction and one per file for bytecode). Unchanged files are served from the process content-hash cache with no bundle and no compile.
Per-file failures (bundle, compile, or extraction) are returned
rather than aborting the batch. Output preserves input file order;
surviving CompiledPlugins carry contiguous index values.