dont use lucide as module

This commit is contained in:
Klemek
2025-03-17 16:57:17 +01:00
parent 145c045137
commit acee41032a
3 changed files with 3 additions and 4 deletions
+1
View File
@@ -10,6 +10,7 @@ export default [
globals: { globals: {
...globals.browser, ...globals.browser,
Peer: "readonly", Peer: "readonly",
lucide: "readonly",
}, },
}, },
}, },
+1 -1
View File
@@ -7,11 +7,11 @@
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="material-colors.css" /> <link rel="stylesheet" href="material-colors.css" />
<script src="https://cdn.jsdelivr.net/npm/peerjs@1.5.4/dist/peerjs.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/peerjs@1.5.4/dist/peerjs.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/lucide@0"></script>
<script type="importmap"> <script type="importmap">
{ {
"imports": { "imports": {
"vue": "https://cdn.jsdelivr.net/npm/vue@3/dist/vue.esm-browser.js", "vue": "https://cdn.jsdelivr.net/npm/vue@3/dist/vue.esm-browser.js",
"lucide": "https://cdn.jsdelivr.net/npm/lucide@0/dist/esm/lucide.js"
} }
} }
</script> </script>
+1 -3
View File
@@ -1,10 +1,8 @@
import { createIcons, icons } from "lucide";
import { createApp } from "vue"; import { createApp } from "vue";
const utils = { const utils = {
updateIcons() { updateIcons() {
createIcons({ lucide.createIcons({
icons,
nameAttr: "icon", nameAttr: "icon",
attrs: { attrs: {
width: "1.1em", width: "1.1em",