Skip to content

Commit cbdc22b

Browse files
committed
chore(deps): upgrade
1 parent c942466 commit cbdc22b

File tree

7 files changed

+141
-156
lines changed

7 files changed

+141
-156
lines changed

package.json

+21-1
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,55 @@
3232
"@tailwindcss-mangle/core": "workspace:*",
3333
"@tailwindcss-mangle/shared": "workspace:*",
3434
"@tsconfig/recommended": "^1.0.7",
35+
"@types/babel__generator": "^7.6.8",
36+
"@types/babel__helper-plugin-utils": "^7.10.3",
37+
"@types/babel__traverse": "^7.20.6",
3538
"@types/fs-extra": "^11.0.4",
3639
"@types/html-minifier-terser": "^7.0.2",
3740
"@types/lodash-es": "^4.17.12",
3841
"@types/node": "^20.14.11",
42+
"@types/resolve": "^1.20.6",
43+
"@types/semver": "^7.5.8",
3944
"@vitest/coverage-v8": "^2.0.3",
45+
"astro": "^4.12.1",
4046
"bumpp": "^9.4.1",
4147
"cross-env": "^7.0.3",
48+
"css-loader": "^7.1.2",
4249
"dedent": "^1.5.3",
4350
"defu": "^6.1.4",
4451
"del": "^7.1.0",
4552
"eslint": "^9.7.0",
4653
"fs-extra": "^11.2.0",
4754
"html-minifier-terser": "^7.2.0",
55+
"html-webpack-plugin": "^5.6.0",
4856
"local-pkg": "^0.5.0",
4957
"lodash-es": "^4.17.21",
58+
"mini-css-extract-plugin": "^2.9.0",
59+
"normalize-newline": "^4.1.0",
5060
"only-allow": "^1.2.1",
5161
"pathe": "^1.1.2",
62+
"pkg-types": "^1.1.3",
63+
"postcss": "^8.4.39",
64+
"postcss-loader": "^8.1.1",
65+
"postcss7": "npm:postcss@7",
5266
"prettier": "^3.3.3",
5367
"rollup": "^4.18.1",
68+
"tailwindcss": "^3.4.6",
5469
"tailwindcss-patch": "workspace:*",
70+
"tailwindcss2": "npm:@tailwindcss/postcss7-compat@^2.2.17",
5571
"ts-node": "^10.9.2",
5672
"tslib": "^2.6.3",
5773
"tsup": "^8.1.2",
74+
"tsx": "^4.16.2",
5875
"turbo": "^2.0.7",
5976
"typescript": "^5.5.3",
6077
"unbuild": "^2.0.0",
6178
"unplugin": "^1.11.0",
6279
"unplugin-tailwindcss-mangle": "workspace:*",
80+
"vite": "^5.3.4",
6381
"vite-tsconfig-paths": "^4.3.2",
64-
"vitest": "^2.0.3"
82+
"vitest": "^2.0.3",
83+
"webpack": "^5.93.0",
84+
"webpack-build-utils": "^0.0.7"
6585
}
6686
}

packages/core/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,5 @@
6262
"magic-string": "^0.30.10",
6363
"postcss": "^8.4.39",
6464
"postcss-selector-parser": "^6.1.1"
65-
},
66-
"devDependencies": {
67-
"@types/babel__traverse": "^7.20.6"
6865
}
6966
}

packages/tailwindcss-patch/package.json

-10
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,6 @@
6363
"resolve": "^1.22.8",
6464
"semver": "^7.6.3"
6565
},
66-
"devDependencies": {
67-
"@types/babel__generator": "^7.6.8",
68-
"@types/babel__traverse": "^7.20.6",
69-
"@types/resolve": "^1.20.6",
70-
"@types/semver": "^7.5.8",
71-
"pkg-types": "^1.1.3",
72-
"postcss7": "npm:postcss@7",
73-
"tailwindcss": "^3.4.6",
74-
"tailwindcss2": "npm:@tailwindcss/postcss7-compat@^2.2.17"
75-
},
7666
"directories": {
7767
"test": "test"
7868
}

packages/unplugin-tailwindcss-mangle/package.json

-15
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,5 @@
7777
"publishConfig": {
7878
"access": "public",
7979
"registry": "https://registry.npmjs.org/"
80-
},
81-
"devDependencies": {
82-
"@types/babel__helper-plugin-utils": "^7.10.3",
83-
"astro": "^4.11.6",
84-
"css-loader": "^7.1.2",
85-
"html-webpack-plugin": "^5.6.0",
86-
"mini-css-extract-plugin": "^2.9.0",
87-
"normalize-newline": "^4.1.0",
88-
"postcss": "^8.4.39",
89-
"postcss-loader": "^8.1.1",
90-
"tailwindcss": "^3.4.6",
91-
"tailwindcss-patch": "workspace:^",
92-
"vite": "^5.3.4",
93-
"webpack": "^5.93.0",
94-
"webpack-build-utils": "^0.0.7"
9580
}
9681
}

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ exports[`vite build > common build 3`] = `
591591
</head>
592592
<body>
593593
<div id="app"></div>
594+
594595
</body>
595596
</html>
596597
"
@@ -1178,9 +1179,9 @@ exports[`vite build > common build change class prefix 3`] = `
11781179
"<!DOCTYPE html>
11791180
<html lang="en">
11801181
<head>
1181-
<meta charset="UTF-8">
1182-
<link rel="icon" type="image/svg+xml" href="/vite.svg">
1183-
<meta name="viewport" content="width=device-width,initial-scale=1">
1182+
<meta charset="UTF-8" />
1183+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
1184+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
11841185
<title>Vite + TS</title>
11851186
<script type="module" crossorigin src="/index.js"></script>
11861187
<link rel="stylesheet" crossorigin href="/index.css">

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import path from 'node:path'
22
import { build } from 'vite'
33
import type { RollupOutput } from 'rollup'
4-
import { minify } from 'html-minifier-terser'
54
import utwm from '@/vite'
6-
5+
// .replace(/(\r?\n){3,}/g, '\n\n')
76
const appRoot = path.resolve(__dirname, 'fixtures/vite-repo')
87
describe('vite build', () => {
98
it('common build ', async () => {
@@ -77,8 +76,7 @@ describe('vite build', () => {
7776
}
7877
expect(output[2].type).toBe('asset')
7978
if (output[2].type === 'asset') {
80-
const res = await minify(output[2].source.toString(), {
81-
})
79+
const res = output[2].source.toString().replace(/(\r?\n)+/g, '\n')
8280
expect(res).toMatchSnapshot()
8381
}
8482
})

0 commit comments

Comments
 (0)