Skip to content

Commit

Permalink
fix(applyPlugins): plugin param value (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony authored Jan 24, 2024
1 parent 3baafee commit 65e8403
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export function applyPlugins(
plugins.forEach((plugin) => {
const fn = plugin[key];
if (typeof fn === "function") {
cb(fn(param));
param = fn(param) || param;
cb(param);
}
});
}

0 comments on commit 65e8403

Please sign in to comment.