Skip to content

Commit

Permalink
fix external importmap
Browse files Browse the repository at this point in the history
  • Loading branch information
DiFuks committed Nov 28, 2022
1 parent 6074e43 commit 18822b2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion appshell/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@
<body>
<meta name="importmap-type" content="importmap" />
<import-map-overrides-full show-when-local-storage="devtools"></import-map-overrides-full>
<script type="importmap" src="http://localhost:4000/importmap.json"></script>
<script>
const im = document.createElement('script');
im.type = 'importmap';
im.textContent = JSON.stringify({
"imports": {
"app": "http://localhost:3000/singleSpa.js"
}
});
document.currentScript.after(im);
</script>

<div id="single-spa-application:app"></div>

Expand Down

0 comments on commit 18822b2

Please sign in to comment.