add vite ignore

This commit is contained in:
Jacob Overgaard
2022-11-25 14:57:25 +01:00
parent 2f4ba74ce2
commit 9fd6208481

View File

@@ -1,6 +1,6 @@
import { UUIIconRegistry } from '@umbraco-ui/uui';
import { baseUrl } from '@umbraco-cms/utils';
import icons from '../../../../public-assets/icons/icons.json';
import { baseUrl } from '@umbraco-cms/utils';
interface UmbIconDescriptor {
name: string;
@@ -14,7 +14,6 @@ interface UmbIconDescriptor {
* @description - Icon Store. Provides icons from the icon manifest. Icons are loaded on demand. All icons are prefixed with 'umb:'
*/
export class UmbIconStore extends UUIIconRegistry {
#baseValue: string;
constructor() {
@@ -34,7 +33,7 @@ export class UmbIconStore extends UUIIconRegistry {
const icon = this.provideIcon(iconName);
import(`${this.#baseValue}${iconManifest.path}`).then((iconModule) => {
import(/* @vite-ignore */ `${this.#baseValue}${iconManifest.path}`).then((iconModule) => {
icon.svg = iconModule.default;
});