(path: string)
| 221 | const getPluginName = (path: string) => pathModule.basename(path); |
| 222 | |
| 223 | const getPluginVersion = (path: string): string | null => { |
| 224 | let version = null; |
| 225 | try { |
| 226 | version = window.require(pathModule.resolve(path, 'package.json')).version as string; |
| 227 | } catch (err) { |
| 228 | console.warn(`No package.json found in ${path}`); |
| 229 | } |
| 230 | return version; |
| 231 | }; |
| 232 | |
| 233 | const loadModules = () => { |
| 234 | console.log('(re)loading renderer plugins'); |
no test coverage detected