Skip to content

Commit

Permalink
plugins: expose whole rxjs to plugins (grafana#19226)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Sep 19, 2019
1 parent 56f5106 commit 98c95a8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions public/app/features/plugins/plugin_loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ import * as grafanaUI from '@grafana/ui';
import * as grafanaRuntime from '@grafana/runtime';

// rxjs
import { Observable, Subject } from 'rxjs';
import * as rxjs from 'rxjs';
import * as rxjsOperators from 'rxjs/operators';

// add cache busting
const bust = `?_cache=${Date.now()}`;
Expand Down Expand Up @@ -81,12 +82,8 @@ exposeToPlugin('moment', moment);
exposeToPlugin('jquery', jquery);
exposeToPlugin('angular', angular);
exposeToPlugin('d3', d3);
exposeToPlugin('rxjs/Subject', Subject);
exposeToPlugin('rxjs/Observable', Observable);
exposeToPlugin('rxjs', {
Subject: Subject,
Observable: Observable,
});
exposeToPlugin('rxjs', rxjs);
exposeToPlugin('rxjs/operators', rxjsOperators);

// Experimental modules
exposeToPlugin('prismjs', prismjs);
Expand Down

0 comments on commit 98c95a8

Please sign in to comment.