mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: Optionally preload some plugins during frontend app boot (#15266)
* auto load * update comments * gofmt * use preload from json * fix formatting * change general plugin loader to app * Refactoring: Plugin preloading #15266
This commit is contained in:
committed by
Torkel Ödegaard
parent
5e48750868
commit
d6887bf77f
@@ -141,7 +141,7 @@ for (const flotDep of flotDeps) {
|
||||
exposeToPlugin(flotDep, { fakeDep: 1 });
|
||||
}
|
||||
|
||||
function importPluginModule(path: string): Promise<any> {
|
||||
export function importPluginModule(path: string): Promise<any> {
|
||||
const builtIn = builtInPlugins[path];
|
||||
if (builtIn) {
|
||||
return Promise.resolve(builtIn);
|
||||
|
||||
Reference in New Issue
Block a user