This commit is contained in:
lalBi94
2023-03-05 13:23:23 +01:00
commit 7bc56c09b5
14034 changed files with 1834369 additions and 0 deletions

14
node_modules/riot/esm/core/run-plugins.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
/* Riot WIP, @license MIT */
import { PLUGINS_SET } from '@riotjs/util';
/**
* Run the component instance through all the plugins set by the user
* @param {Object} component - component instance
* @returns {Object} the component enhanced by the plugins
*/
function runPlugins(component) {
return [...PLUGINS_SET].reduce((c, fn) => fn(c) || c, component);
}
export { runPlugins };