Files
test-repo/changelog_unreleased/javascript/19725.md
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
534 B
Markdown
Raw Normal View History

#### Fix embedded template literal idempotency (#19725 by @fisker)
<!-- prettier-ignore -->
```jsx
// Input
const foo = html`
<div>${getText({
value,
})}</div>
`;
// Prettier stable (first format)
const foo = html`
<div>
${getText({
value,
})}
</div>
`;
// Prettier stable (second format)
const foo = html`
<div>
${getText({
value,
})}
</div>
`;
// Prettier main
const foo = html`
<div>
${getText({
value,
})}
</div>
`;
```