Skip to content

Commit f222486

Browse files
committed
chore(demo): upgrade
1 parent 1843c2b commit f222486

File tree

34 files changed

+718
-579
lines changed

34 files changed

+718
-579
lines changed

benchmark/data/2025-01-11.json

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,21 @@
88
0.2358749999993961,
99
0.26529200000004494,
1010
226.5332500000004,
11-
299.4494579999998
11+
299.4494579999998,
12+
52.088624999999865,
13+
0.30145899999934045,
14+
0.24170800000047166,
15+
0.16779200000019046,
16+
0.22225000000071304,
17+
0.2821249999997235,
18+
225.0315840000003
1219
]
1320
},
1421
"native-webpack": {
1522
"babel": [
1623
47.077,
17-
46.39608300000009
24+
46.39608300000009,
25+
48.761792000000014
1826
]
1927
},
2028
"rax": {
@@ -26,7 +34,14 @@
2634
0.1360829999998714,
2735
0.3392499999999927,
2836
73.29016700000011,
29-
122.63954200000012
37+
122.63954200000012,
38+
0.4000829999999951,
39+
0.12741700000015044,
40+
0.42154200000004494,
41+
0.23137499999984357,
42+
0.25587499999983265,
43+
0.39945799999986775,
44+
74.63120899999967
3045
]
3146
},
3247
"taro-react": {
@@ -36,37 +51,48 @@
3651
384.9939999999997,
3752
240.23995899999954,
3853
139.36562500000036,
39-
358.8942499999994
54+
358.8942499999994,
55+
190.9979999999996,
56+
141.93074999999953,
57+
447.32437500000106
4058
]
4159
},
4260
"taro-vue2": {
4361
"babel": [
4462
180.58545800000047,
45-
207.8494999999998
63+
207.8494999999998,
64+
179.41908300000068
4665
]
4766
},
4867
"taro-vue3": {
4968
"babel": [
5069
176.39979200000016,
51-
218.2922910000002
70+
218.2922910000002,
71+
217.60541699999976
5272
]
5373
},
5474
"uni-app-webpack-vue2": {
5575
"babel": [
5676
227.7779169999999,
57-
198.9627499999997
77+
198.9627499999997,
78+
210.013375
5879
]
5980
},
6081
"uni-app-vite-vue3": {
6182
"babel": [
6283
299.3712919999998,
63-
307.39599999999996
84+
307.39599999999996,
85+
311.22199999999975
86+
],
87+
"ast-grep": [
88+
223.685833
6489
]
6590
},
6691
"uni-app-webpack5-vue2": {
6792
"babel": [
6893
111.73979099999997,
69-
106.07937500000025
94+
106.07937500000025,
95+
111.78749999999991
7096
]
7197
}
7298
}

demo/gulp-app/gulpfile.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ const tsProject = ts.createProject('tsconfig.json')
4343

4444
// 在 gulp 里使用,先使用 postcss 转化 css,触发 tailwindcss ,然后转化 transformWxss, 然后 transformJs, transformWxml
4545
const { transformJs, transformWxml, transformWxss } = createPlugins({
46-
// @ts-ignore
4746
rem2rpx: true,
4847
jsAstTool: useBabel ? 'babel' : 'ast-grep',
4948
})

demo/gulp-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"ts-node": "^10.9.2",
8989
"typescript": "^5.6.2",
9090
"weapp-ide-cli": "^2.0.9",
91-
"weapp-tailwindcss": "^4.0.0-alpha.3",
91+
"weapp-tailwindcss": "^4.0.0-alpha.4",
9292
"weapp-tailwindcss-children": "^0.1.0"
9393
}
9494
}

demo/gulp-app/yarn.lock

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@
5353
"@jridgewell/trace-mapping" "^0.3.25"
5454
jsesc "^3.0.2"
5555

56-
"@babel/generator@^7.26.3", "@babel/generator@~7.26.3":
57-
version "7.26.3"
58-
resolved "https://registry.npmmirror.com/@babel/generator/-/generator-7.26.3.tgz#ab8d4360544a425c90c248df7059881f4b2ce019"
59-
integrity sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ==
56+
"@babel/generator@^7.26.5", "@babel/generator@~7.26.5":
57+
version "7.26.5"
58+
resolved "https://registry.npmmirror.com/@babel/generator/-/generator-7.26.5.tgz#e44d4ab3176bbcaf78a5725da5f1dc28802a9458"
59+
integrity sha512-2caSP6fN9I7HOe6nqhtft7V4g7/V/gfDsC3Ag4W7kEzzvRGKqiv0pu0HogPiZ3KaVSoNDhUws6IJjDjpfmYIXw==
6060
dependencies:
61-
"@babel/parser" "^7.26.3"
62-
"@babel/types" "^7.26.3"
61+
"@babel/parser" "^7.26.5"
62+
"@babel/types" "^7.26.5"
6363
"@jridgewell/gen-mapping" "^0.3.5"
6464
"@jridgewell/trace-mapping" "^0.3.25"
6565
jsesc "^3.0.2"
@@ -96,12 +96,12 @@
9696
dependencies:
9797
"@babel/types" "^7.26.0"
9898

99-
"@babel/parser@^7.26.3", "@babel/parser@~7.26.3":
100-
version "7.26.3"
101-
resolved "https://registry.npmmirror.com/@babel/parser/-/parser-7.26.3.tgz#8c51c5db6ddf08134af1ddbacf16aaab48bac234"
102-
integrity sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==
99+
"@babel/parser@^7.26.5", "@babel/parser@~7.26.5":
100+
version "7.26.5"
101+
resolved "https://registry.npmmirror.com/@babel/parser/-/parser-7.26.5.tgz#6fec9aebddef25ca57a935c86dbb915ae2da3e1f"
102+
integrity sha512-SRJ4jYmXRqV1/Xc+TIVG84WjHBXKlxO9sHQnA2Pf12QQEAp1LOh6kDzNHXcUnbH1QI0FDoPPVOt+vyUDucxpaw==
103103
dependencies:
104-
"@babel/types" "^7.26.3"
104+
"@babel/types" "^7.26.5"
105105

106106
"@babel/template@^7.25.9":
107107
version "7.25.9"
@@ -125,16 +125,16 @@
125125
debug "^4.3.1"
126126
globals "^11.1.0"
127127

128-
"@babel/traverse@~7.26.4":
129-
version "7.26.4"
130-
resolved "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.26.4.tgz#ac3a2a84b908dde6d463c3bfa2c5fdc1653574bd"
131-
integrity sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w==
128+
"@babel/traverse@~7.26.5":
129+
version "7.26.5"
130+
resolved "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.26.5.tgz#6d0be3e772ff786456c1a37538208286f6e79021"
131+
integrity sha512-rkOSPOw+AXbgtwUga3U4u8RpoK9FEFWBNAlTpcnkLFjL5CT+oyHNuUUC/xx6XefEJ16r38r8Bc/lfp6rYuHeJQ==
132132
dependencies:
133133
"@babel/code-frame" "^7.26.2"
134-
"@babel/generator" "^7.26.3"
135-
"@babel/parser" "^7.26.3"
134+
"@babel/generator" "^7.26.5"
135+
"@babel/parser" "^7.26.5"
136136
"@babel/template" "^7.25.9"
137-
"@babel/types" "^7.26.3"
137+
"@babel/types" "^7.26.5"
138138
debug "^4.3.1"
139139
globals "^11.1.0"
140140

@@ -146,10 +146,10 @@
146146
"@babel/helper-string-parser" "^7.25.9"
147147
"@babel/helper-validator-identifier" "^7.25.9"
148148

149-
"@babel/types@^7.26.3", "@babel/types@~7.26.3":
150-
version "7.26.3"
151-
resolved "https://registry.npmmirror.com/@babel/types/-/types-7.26.3.tgz#37e79830f04c2b5687acc77db97fbc75fb81f3c0"
152-
integrity sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==
149+
"@babel/types@^7.26.5", "@babel/types@~7.26.5":
150+
version "7.26.5"
151+
resolved "https://registry.npmmirror.com/@babel/types/-/types-7.26.5.tgz#7a1e1c01d28e26d1fe7f8ec9567b3b92b9d07747"
152+
integrity sha512-L6mZmwFDK6Cjh1nRCLXpa6no13ZIioJDz7mdkzHv399pThrTa/k0nUlNaenOeh2kWu/iaOQYElEpKPUswUa9Vg==
153153
dependencies:
154154
"@babel/helper-string-parser" "^7.25.9"
155155
"@babel/helper-validator-identifier" "^7.25.9"
@@ -842,10 +842,10 @@
842842
dependencies:
843843
consola "^3.3.3"
844844

845-
"@weapp-tailwindcss/[email protected].1":
846-
version "1.0.0-alpha.1"
847-
resolved "https://registry.npmmirror.com/@weapp-tailwindcss/mangle/-/mangle-1.0.0-alpha.1.tgz#ac0b127b3934e1ad9a47e4e91145ff5dc908020d"
848-
integrity sha512-K7KnrkD+xBRYZUdkjYZ0Og6RvgmYt+PJixRPQ9p6DvvUWzjModhN4V8yFD+q4fJaot/UtbYgcCnWhTsJetxENw==
845+
"@weapp-tailwindcss/[email protected].2":
846+
version "1.0.0-alpha.2"
847+
resolved "https://registry.npmmirror.com/@weapp-tailwindcss/mangle/-/mangle-1.0.0-alpha.2.tgz#1832ee1b7efbf843397facb3ffe322b493bdacd2"
848+
integrity sha512-2PL7eWPybNFzFjGZoxgkIqMOtimP/oSwWwrFhmieRP8Z+rVqZj8QgYtBCKCizu1BUBKdB1uVE7qwTexrlwhbhQ==
849849
dependencies:
850850
"@tailwindcss-mangle/shared" "~4.0.1"
851851
"@weapp-core/regex" "~1.0.1"
@@ -860,10 +860,10 @@
860860
clsx "^2.1.1"
861861
tailwind-merge "^2.6.0"
862862

863-
"@weapp-tailwindcss/[email protected].1":
864-
version "1.0.0-alpha.1"
865-
resolved "https://registry.npmmirror.com/@weapp-tailwindcss/postcss/-/postcss-1.0.0-alpha.1.tgz#2bc4cb20ef14966d94f7cb23c16097a84fc15454"
866-
integrity sha512-fXByMWtoIMG5M/GOHPXnITZnQiDlPMBTCrYLLBRFbOzAcM/ax8B+415phAPFIoIm877UxicSiUVyGvNpFNSrfw==
863+
"@weapp-tailwindcss/[email protected].2":
864+
version "1.0.0-alpha.2"
865+
resolved "https://registry.npmmirror.com/@weapp-tailwindcss/postcss/-/postcss-1.0.0-alpha.2.tgz#227674b972e94b6bcf01b73285880b0570d347f9"
866+
integrity sha512-SBHJpSm4WXzuxr8qDxbr2PA0c+L18RlBoIkIk4DEE7CiazPwPf1uLHWlX9R1gTq+vueEYhDp5ANuUBZjoh8d1w==
867867
dependencies:
868868
"@csstools/postcss-is-pseudo-class" "^5.0.1"
869869
"@weapp-core/escape" "~3.0.2"
@@ -6657,22 +6657,22 @@ weapp-tailwindcss-children@^0.1.0:
66576657
resolved "https://registry.npmmirror.com/weapp-tailwindcss-children/-/weapp-tailwindcss-children-0.1.0.tgz#0de102f04a89d77447ca3b984669bbe5ffa41aa1"
66586658
integrity sha512-HuDT78u6RbXpJIHbJzw4zW98JByWCz4elhTAT9QR/JWJuQpiRNbnqa5tL+ZTVCcT4bHt9Ppf/E2MNTohPgBE3g==
66596659

6660-
weapp-tailwindcss@^4.0.0-alpha.3:
6661-
version "4.0.0-alpha.3"
6662-
resolved "https://registry.npmmirror.com/weapp-tailwindcss/-/weapp-tailwindcss-4.0.0-alpha.3.tgz#b0d744592852e0ec759349af593719b698e122f0"
6663-
integrity sha512-HX+WkIO0aN8rAfScl5RvlEeZ1Llr8fJ4i6cjUJkiefJEz8MfjW82rSRWTF9VqVoZaygWDW5wcus+GgZiulrEIA==
6660+
weapp-tailwindcss@^4.0.0-alpha.4:
6661+
version "4.0.0-alpha.4"
6662+
resolved "https://registry.npmmirror.com/weapp-tailwindcss/-/weapp-tailwindcss-4.0.0-alpha.4.tgz#24c22ec498396b9c3df4c6d5c5f8802e71e80b13"
6663+
integrity sha512-pJ0ctqmuZFZqQtNL8E0nWxDwoecBaJl4/ER2Vh7OHnsv4z9Qt/wqoAJchGCSNXLl6YUUbuQ1x+W7jE58J7X/4A==
66646664
dependencies:
66656665
"@ast-core/escape" "~1.0.1"
6666-
"@babel/generator" "~7.26.3"
6667-
"@babel/parser" "~7.26.3"
6668-
"@babel/traverse" "~7.26.4"
6669-
"@babel/types" "~7.26.3"
6666+
"@babel/generator" "~7.26.5"
6667+
"@babel/parser" "~7.26.5"
6668+
"@babel/traverse" "~7.26.5"
6669+
"@babel/types" "~7.26.5"
66706670
"@weapp-core/escape" "~3.0.2"
66716671
"@weapp-core/regex" "~1.0.1"
66726672
"@weapp-tailwindcss/init" "1.0.0-alpha.2"
66736673
"@weapp-tailwindcss/logger" "1.0.0-alpha.0"
6674-
"@weapp-tailwindcss/mangle" "1.0.0-alpha.1"
6675-
"@weapp-tailwindcss/postcss" "1.0.0-alpha.1"
6674+
"@weapp-tailwindcss/mangle" "1.0.0-alpha.2"
6675+
"@weapp-tailwindcss/postcss" "1.0.0-alpha.2"
66766676
"@weapp-tailwindcss/shared" "1.0.0-alpha.1"
66776677
debug "~4.4.0"
66786678
htmlparser2 "10.0.0"

demo/mpx-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"typescript": "^5.5.2",
7979
"vue-template-compiler": "^2.7.16",
8080
"weapp-ide-cli": "^2.0.9",
81-
"weapp-tailwindcss": "^4.0.0-alpha.3",
81+
"weapp-tailwindcss": "^4.0.0-alpha.4",
8282
"weapp-tailwindcss-children": "^0.1.0",
8383
"webpack": "^5.95.0"
8484
},

0 commit comments

Comments
 (0)