(root: Element | Document = document)
| 8 | * This uses all available icons - for tree-shaking, use createIcons instead. |
| 9 | */ |
| 10 | export function scanAndReplace(root: Element | Document = document): void { |
| 11 | getIcons({ |
| 12 | icons: allIcons as unknown as IconsRecord, |
| 13 | root, |
| 14 | }); |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Set up a MutationObserver to automatically process new elements |