Skip to content

Commit

Permalink
add /*@__PURE__*/
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jan 25, 2025
1 parent a2ac232 commit 1cbe1cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/vdom/set-accessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1cbe1cc

Please sign in to comment.