mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'master' into react-panels
This commit is contained in:
@@ -66,7 +66,7 @@ System.config({
|
||||
});
|
||||
|
||||
function exposeToPlugin(name: string, component: any) {
|
||||
System.registerDynamic(name, [], true, function(require, exports, module) {
|
||||
System.registerDynamic(name, [], true, (require, exports, module) => {
|
||||
module.exports = component;
|
||||
});
|
||||
}
|
||||
@@ -142,12 +142,12 @@ const flotDeps = [
|
||||
'jquery.flot.gauge',
|
||||
];
|
||||
|
||||
for (let flotDep of flotDeps) {
|
||||
for (const flotDep of flotDeps) {
|
||||
exposeToPlugin(flotDep, { fakeDep: 1 });
|
||||
}
|
||||
|
||||
export function importPluginModule(path: string): Promise<PluginExports> {
|
||||
let builtIn = builtInPlugins[path];
|
||||
const builtIn = builtInPlugins[path];
|
||||
if (builtIn) {
|
||||
return Promise.resolve(builtIn);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user