poc: frontend extensions

This commit is contained in:
Torkel Ödegaard 2018-10-11 08:49:12 +02:00
parent 974eddee8f
commit f4a9817b94
3 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
let components = (require as any).context('.', true, /\.tsx?/);
components.keys().forEach(key => {
console.log('extension component', components(key));
});

View File

@ -0,0 +1,3 @@
export class Tester {}
console.log('Tester');

View File

@ -1,5 +1,6 @@
import './dashboard_loaders';
import './ReactContainer';
import '../extensions';
import ServerStats from 'app/features/admin/ServerStats';
import AlertRuleList from 'app/features/alerting/AlertRuleList';