feat(plugin): support dynamic plugin load / unload

This commit is contained in:
Su-Yong
2023-11-12 01:16:34 +09:00
parent 9c59f56aac
commit 2097f42efb
8 changed files with 87 additions and 15 deletions

View File

@ -31,7 +31,7 @@ const createContext = <
},
});
const forceUnloadRendererPlugin = (id: keyof PluginBuilderList) => {
export const forceUnloadRendererPlugin = (id: keyof PluginBuilderList) => {
unregisterStyleMap[id]?.forEach((unregister) => unregister());
delete unregisterStyleMap[id];