Skip to content

Commit 6032164

Browse files
committed
chore(deps): upgrade
1 parent d678eda commit 6032164

File tree

5 files changed

+188
-109
lines changed

5 files changed

+188
-109
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"tailwindcss-patch": "workspace:*",
5353
"ts-node": "^10.9.2",
5454
"tslib": "^2.6.3",
55-
"tsup": "^8.1.1",
55+
"tsup": "^8.1.2",
5656
"turbo": "^2.0.7",
5757
"typescript": "^5.5.3",
5858
"unbuild": "^2.0.0",

packages/unplugin-tailwindcss-mangle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
"devDependencies": {
8282
"@types/babel__helper-plugin-utils": "^7.10.3",
83-
"astro": "^4.11.5",
83+
"astro": "^4.11.6",
8484
"css-loader": "^7.1.2",
8585
"html-webpack-plugin": "^5.6.0",
8686
"mini-css-extract-plugin": "^2.9.0",

packages/unplugin-tailwindcss-mangle/test/__snapshots__/vite.test.ts.snap

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,6 @@ exports[`vite build > common build 3`] = `
591591
</head>
592592
<body>
593593
<div id="app"></div>
594-
595594
</body>
596595
</html>
597596
"
@@ -1176,19 +1175,18 @@ exports[`vite build > common build change class prefix 2`] = `
11761175
`;
11771176
11781177
exports[`vite build > common build change class prefix 3`] = `
1179-
"<!DOCTYPE html>
1178+
"<!doctype html>
11801179
<html lang="en">
11811180
<head>
11821181
<meta charset="UTF-8" />
11831182
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
11841183
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
11851184
<title>Vite + TS</title>
11861185
<script type="module" crossorigin src="/index.js"></script>
1187-
<link rel="stylesheet" crossorigin href="/index.css">
1186+
<link rel="stylesheet" crossorigin href="/index.css" />
11881187
</head>
11891188
<body>
11901189
<div id="app"></div>
1191-
11921190
</body>
11931191
</html>
11941192
"

packages/unplugin-tailwindcss-mangle/test/vite.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import path from 'node:path'
22
import { build } from 'vite'
33
import type { RollupOutput } from 'rollup'
4+
import prettier from 'prettier'
45
import utwm from '@/vite'
56

67
const appRoot = path.resolve(__dirname, 'fixtures/vite-repo')
@@ -76,7 +77,10 @@ describe('vite build', () => {
7677
}
7778
expect(output[2].type).toBe('asset')
7879
if (output[2].type === 'asset') {
79-
expect(output[2].source).toMatchSnapshot()
80+
const res = await prettier.format(output[2].source.toString(), {
81+
parser: 'html',
82+
})
83+
expect(res).toMatchSnapshot()
8084
}
8185
})
8286
})

0 commit comments

Comments
 (0)