Replace System.import() with import() to get rid of warning

This commit is contained in:
Johannes Schill
2018-10-10 14:15:26 +02:00
parent cc20b8de36
commit f552a7a421
+1 -3
View File
@@ -29,8 +29,6 @@ _.move = (array, fromIndex, toIndex) => {
import { coreModule, registerAngularDirectives } from './core/core';
import { setupAngularRoutes } from './routes/routes';
declare var System: any;
export class GrafanaApp {
registerFunctions: any;
ngModuleDependencies: any[];
@@ -119,7 +117,7 @@ export class GrafanaApp {
coreModule.config(setupAngularRoutes);
registerAngularDirectives();
const preBootRequires = [System.import('app/features/all')];
const preBootRequires = [import('app/features/all')];
Promise.all(preBootRequires)
.then(() => {