2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-17 01:55:09 +00:00

chore: support icon.svelte export in svelte component

This commit is contained in:
Vjacheslav Trushkin 2023-12-24 22:35:19 +02:00
parent 1c39d19339
commit be70a27dad
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<script>
import Icon from '@iconify/svelte';
import Icon from '@iconify/svelte/dist/Icon.svelte';
const adminUsers = 'dashicons:admin-users';
const icon1Style = 'color: purple; vertical-align: 0; font-size: 2em;';

View File

@ -2,7 +2,7 @@
"name": "@iconify/svelte",
"description": "Iconify icon component for Svelte.",
"author": "Vjacheslav Trushkin",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.3",
"publishConfig": {
"tag": "next"
},
@ -22,6 +22,10 @@
"svelte": "./dist/Icon.svelte",
"types": "./dist/index.d.ts"
},
"./dist/Icon.svelte": {
"svelte": "./dist/Icon.svelte",
"types": "./dist/index.d.ts"
},
"./dist/OfflineIcon.svelte": {
"svelte": "./dist/OfflineIcon.svelte",
"types": "./dist/offline.d.ts"