diff --git a/app1/tsconfig.json b/app1/tsconfig.json index 30956ae..ef498e9 100644 --- a/app1/tsconfig.json +++ b/app1/tsconfig.json @@ -10,7 +10,7 @@ "module": "esnext", "moduleResolution": "node", "importHelpers": true, - "target": "es2015", + "target": "es5", "typeRoots": [ "node_modules/@types" ], diff --git a/app2/tsconfig.json b/app2/tsconfig.json index 30956ae..ef498e9 100644 --- a/app2/tsconfig.json +++ b/app2/tsconfig.json @@ -10,7 +10,7 @@ "module": "esnext", "moduleResolution": "node", "importHelpers": true, - "target": "es2015", + "target": "es5", "typeRoots": [ "node_modules/@types" ], diff --git a/navbar/tsconfig.json b/navbar/tsconfig.json index 30956ae..ef498e9 100644 --- a/navbar/tsconfig.json +++ b/navbar/tsconfig.json @@ -10,7 +10,7 @@ "module": "esnext", "moduleResolution": "node", "importHelpers": true, - "target": "es2015", + "target": "es5", "typeRoots": [ "node_modules/@types" ], diff --git a/root-html-file/index.html b/root-html-file/index.html index b4b2133..fce52f1 100644 --- a/root-html-file/index.html +++ b/root-html-file/index.html @@ -18,6 +18,7 @@ } + @@ -30,20 +31,32 @@ System.import('single-spa').then(function (singleSpa) { singleSpa.registerApplication( 'navbar', - () => System.import('navbar'), - location => true + function () { + return System.import('navbar'); + }, + function (location) { + return true; + } ) singleSpa.registerApplication( 'app1', - () => System.import('app1'), - location => location.pathname.startsWith('/app1') + function () { + return System.import('app1'); + }, + function (location) { + return location.pathname.startsWith('/app1'); + } ); singleSpa.registerApplication( 'app2', - () => System.import('app2'), - location => location.pathname.startsWith('/app2') + function () { + return System.import('app2'); + }, + function (location) { + return location.pathname.startsWith('/app2'); + } ) singleSpa.start();