mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-16 23:45:50 +00:00
Tidy the background effect pipeline after review
- The Vite transform wrapper takes Vite's own types, with no cast. - The pipeline's options are compared with deepCompare, not as JSON. - Renames `attached` to `enable` and shortens the pipeline's doc comment. - Drops a comment that blamed an ended track on the pipeline's queue. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+6
-11
@@ -7,6 +7,7 @@ Please see LICENSE in the repository root for full details.
|
||||
|
||||
import {
|
||||
loadEnv,
|
||||
type Plugin,
|
||||
type PluginOption,
|
||||
searchForWorkspaceRoot,
|
||||
type ConfigEnv,
|
||||
@@ -196,19 +197,13 @@ function exceptMediaPipeWasm(plugins: PluginOption): PluginOption {
|
||||
)
|
||||
return plugin;
|
||||
const transform = plugin.transform;
|
||||
return {
|
||||
const wrapped: Plugin = {
|
||||
...plugin,
|
||||
transform(this: unknown, code: string, id: string, options: unknown) {
|
||||
transform(code, id, options) {
|
||||
if (isLoader(id)) return null;
|
||||
return (
|
||||
transform as (
|
||||
this: unknown,
|
||||
c: string,
|
||||
i: string,
|
||||
o: unknown,
|
||||
) => unknown
|
||||
).call(this, code, id, options);
|
||||
return transform.call(this, code, id, options);
|
||||
},
|
||||
} as PluginOption;
|
||||
};
|
||||
return wrapped;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user