From: Martin Pitt <martin@piware.de>
Date: Fri, 8 Nov 2024 06:47:26 +0000 (+0100)
Subject: patternfly-cdn: Move to importmap
X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=d8480cb11885bd79e5e9ff5a2e56f61ada941fea;p=webcomponents.git

patternfly-cdn: Move to importmap

In theory this should fix the icon loading, but it's still broken on
esm.sh.
---

diff --git a/patternfly-cdn.html b/patternfly-cdn.html
index d88eaf0..8150cdd 100644
--- a/patternfly-cdn.html
+++ b/patternfly-cdn.html
@@ -16,9 +16,17 @@
   </style>
 </head>
 
-<script type="module" src="https://esm.sh/@patternfly/elements/pf-button/pf-button.js"></script>
-<script type="module" src="https://esm.sh/@patternfly/elements/pf-card/pf-card.js"></script>
-<script type="module" src="https://esm.sh/@patternfly/elements/pf-icon/pf-icon.js"></script>
+<script type="importmap">
+{
+    "imports": {
+        "@patternfly/": "https://esm.sh/@patternfly/"
+    }
+}
+</script>
+
+<script type="module">import "@patternfly/elements/pf-button/pf-button.js"</script>
+<script type="module">import "@patternfly/elements/pf-card/pf-card.js"</script>
+<script type="module">import "@patternfly/elements/pf-icon/pf-icon.js"</script>
 
 <body>