Skip to content

Commit 0ad1b29

Browse files
thecrypticaceBoshen
authored andcommitted
Update changelog
1 parent b19ee3f commit 0ad1b29

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Remove top-level await ([#420](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/420))
13+
- Improve load-time performance ([#420](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/420))
14+
1015
### Fixed
1116

1217
- Collapse whitespace in template literals with adjacent quasis ([#427](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/427))

src/create-plugin.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,13 @@ async function createParser({
112112
return parser
113113
}
114114

115-
function createPrinter({ original, opts }: { original: Printer<any>; opts: TransformOptions<any> }) {
115+
function createPrinter({
116+
original,
117+
opts,
118+
}: {
119+
original: Printer<any>
120+
opts: TransformOptions<any>
121+
}) {
116122
let printer: Printer<any> = { ...original }
117123

118124
let reprint = opts.reprint

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,9 @@ function transformSvelte(ast: any, env: TransformerEnv) {
10301030

10311031
export { options } from './options.js'
10321032

1033-
type HtmlNode = { type: 'attribute'; name: string; value: string } | { kind: 'attribute'; name: string; value: string }
1033+
type HtmlNode =
1034+
| { type: 'attribute'; name: string; value: string }
1035+
| { kind: 'attribute'; name: string; value: string }
10341036

10351037
let html = defineTransform<HtmlNode>({
10361038
staticAttrs: ['class'],

0 commit comments

Comments
 (0)