We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
addIcon
addCollection
1 parent 9b37e24 commit fd46c6eCopy full SHA for fd46c6e
src/bundle-client.ts
@@ -44,14 +44,16 @@ export function registerClientBundle(
44
const collectionsRaw = `JSON.parse(${JSON.stringify(valuesCompat)})`
45
46
return [
47
- 'import { addCollection } from "@iconify/vue"',
+ 'import { addIcon } from "@iconify/vue"',
48
'let _initialized = false',
49
'export function init() {',
50
' if (_initialized)',
51
' return',
52
` const collections = ${collectionsRaw}`,
53
` for (const collection of collections) {`,
54
- ' addCollection(collection)',
+ ` for (const [name, data] of Object.entries(collection.icons)) {`,
55
+ ` addIcon(collection.prefix + ':' + name, data)`,
56
+ ` }`,
57
' }',
58
' _initialized = true',
59
'}',
0 commit comments