From f552a7a421115fb35aa2dc678f1e2512c1ec6a55 Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Mon, 8 Oct 2018 13:42:00 +0200 Subject: [PATCH] Replace System.import() with import() to get rid of warning --- public/app/app.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/app/app.ts b/public/app/app.ts index 8e30747072e..75f1ab30121 100644 --- a/public/app/app.ts +++ b/public/app/app.ts @@ -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(() => {