dont use lucide as module
This commit is contained in:
@@ -10,6 +10,7 @@ export default [
|
|||||||
globals: {
|
globals: {
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
Peer: "readonly",
|
Peer: "readonly",
|
||||||
|
lucide: "readonly",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -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,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",
|
||||||
|
|||||||
Reference in New Issue
Block a user