Skip to content

Commit 7b858da

Browse files
Use issueWarning
1 parent f3d2250 commit 7b858da

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/lit-html/src/lit-html.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,10 @@ const tag =
518518
if (
519519
values.some((val) => (val as {_$litStatic$: unknown})?.['_$litStatic$'])
520520
) {
521-
console.warn(
521+
issueWarning(
522+
'',
522523
`Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\n` +
523-
`Please use the static 'html' template. See https://lit.dev/docs/templates/expressions/#static-expressions`
524+
`Please use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions`
524525
);
525526
}
526527
}

0 commit comments

Comments
 (0)