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

16
node_modules/riot/esm/api/uninstall.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
/* Riot WIP, @license MIT */
import { PLUGINS_SET, panic } from '@riotjs/util';
/**
* Uninstall a riot plugin
* @param {Function} plugin - plugin previously installed
* @returns {Set} the set containing all the plugins installed
*/
function uninstall(plugin) {
if (!PLUGINS_SET.has(plugin)) panic('This plugin was never installed');
PLUGINS_SET.delete(plugin);
return PLUGINS_SET;
}
export { uninstall };