Skip to content

Commit

Permalink
Merge pull request #10 from crorodriguezro/feature/ie11-support
Browse files Browse the repository at this point in the history
Added support for ie11
  • Loading branch information
joeldenning committed Jul 18, 2019
2 parents 7c645ec + 1d19c65 commit 22cbb2d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app1/tsconfig.json
Expand Up @@ -10,7 +10,7 @@
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
Expand Down
2 changes: 1 addition & 1 deletion app2/tsconfig.json
Expand Up @@ -10,7 +10,7 @@
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
Expand Down
2 changes: 1 addition & 1 deletion navbar/tsconfig.json
Expand Up @@ -10,7 +10,7 @@
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
Expand Down
25 changes: 19 additions & 6 deletions root-html-file/index.html
Expand Up @@ -18,6 +18,7 @@
}
</script>
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/single-spa/4.3.5/system/single-spa.min.js" as="script" crossorigin="anonymous" />
<script src='https://unpkg.com/core-js-bundle@3.1.4/minified.js'></script>
<script src="https://unpkg.com/zone.js"></script>
<script src="https://unpkg.com/import-map-overrides@1.6.0/dist/import-map-overrides.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/4.0.0/system.min.js"></script>
Expand All @@ -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();
Expand Down

0 comments on commit 22cbb2d

Please sign in to comment.