| 1234567891011121314151617 |
- import { getIcons } from '..'
- const PLUGIN_ICONS_ID = 'isme:icons'
- export function pluginIcons() {
- return {
- name: 'isme:icons',
- resolveId(id) {
- if (id === PLUGIN_ICONS_ID)
- return `\0${PLUGIN_ICONS_ID}`
- },
- load(id) {
- if (id === `\0${PLUGIN_ICONS_ID}`) {
- return `export default ${JSON.stringify(getIcons())}`
- }
- },
- }
- }
|