Skip to content

Commit 061a757

Browse files
committed
build: mark maxCRNameLength computation as pure
1 parent 1efb35e commit 061a757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-dom/src/parserOptionsStandard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const parserOptionsStandard: ParserOptions = {
88

99
// https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references
1010
namedCharacterReferences,
11-
maxCRNameLength: Object.keys(namedCharacterReferences).reduce(
11+
maxCRNameLength: /*#__PURE__*/ Object.keys(namedCharacterReferences).reduce(
1212
(max, name) => Math.max(max, name.length),
1313
0
1414
)

0 commit comments

Comments
 (0)