From 1cbe1cc4b061d4d2d1609d0ae49c14a4a13c81fb Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Fri, 24 Jan 2025 16:26:55 -0800 Subject: [PATCH] add /*@__PURE__*/ --- src/runtime/vdom/set-accessor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/vdom/set-accessor.ts b/src/runtime/vdom/set-accessor.ts index 2bcfb5c0cff..1b64c805fda 100644 --- a/src/runtime/vdom/set-accessor.ts +++ b/src/runtime/vdom/set-accessor.ts @@ -207,7 +207,7 @@ const parseClassListRegex = /\s/; * @param value className string, e.g. "foo bar baz" * @returns list of classes, e.g. ["foo", "bar", "baz"] */ -export const parseClassList = (value: string | SVGAnimatedString | undefined | null): string[] => { +export const parseClassList = /*@__PURE__*/ (value: string | SVGAnimatedString | undefined | null): string[] => { // Can't use `value instanceof SVGAnimatedString` because it'll break in non-browser environments // see https://developer.mozilla.org/docs/Web/API/SVGAnimatedString for more information if (typeof value === 'object' && value && 'baseVal' in value) {