create-vite-taro 0.7.5-beta.1 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-vite-taro",
3
- "version": "0.7.5-beta.1",
4
- "description": "Create Vite 8 + React 19 + Taro apps for WeChat, Alipay, and H5 targets.",
3
+ "version": "0.7.6",
4
+ "description": "Create Vite 8 + React 19 + Taro apps for WeChat, Alipay, TikTok, and H5 targets.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "create-vite-taro": "./index.js"
@@ -28,6 +28,7 @@
28
28
  "react",
29
29
  "wechat",
30
30
  "alipay",
31
+ "tiktok",
31
32
  "mini-program"
32
33
  ],
33
34
  "author": "sep2",
@@ -57,7 +57,7 @@ npm install
57
57
 
58
58
  3. 用支付宝小程序开发者工具导入 `dist/zfb`,不要导入项目根目录。
59
59
 
60
- ### 抖音小程序(TT)
60
+ ### 抖音小程序
61
61
 
62
62
  1. 在 `.env.local` 中填写抖音 App ID:
63
63
 
@@ -71,7 +71,7 @@ npm install
71
71
  npm run dev:tt
72
72
  ```
73
73
 
74
- 3. 用抖音小程序开发者工具导入 `dist/tt`,不要导入项目根目录。
74
+ 3. 用抖音开发者工具导入 `dist/tt`,不要导入项目根目录。
75
75
 
76
76
  ### Web
77
77
 
@@ -20,12 +20,12 @@
20
20
  "react-dom": "^19.3.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@types/node": "^26.5.1",
23
+ "@types/node": "^26.6.2",
24
24
  "@types/react": "^19.3.0",
25
25
  "@types/react-dom": "^19.3.0",
26
26
  "typescript": "^7.0.2",
27
27
  "cross-env": "^10.1.0",
28
- "rolldown": "1.2.8",
28
+ "rolldown": "1.2.9",
29
29
  "vite": "8.3.0"
30
30
  },
31
31
  "overrides": {
@@ -38,11 +38,6 @@
38
38
  box-sizing: border-box;
39
39
  }
40
40
 
41
- .__workaround_weapp_tailwind,
42
- button::after {
43
- border: none;
44
- }
45
-
46
41
  page,
47
42
  body {
48
43
  margin: 0;
@@ -12,12 +12,13 @@ export interface CounterProps {
12
12
  onIncrement: () => void
13
13
  }
14
14
 
15
- export function Counter(props: CounterProps) {
15
+ // Conditional compilation leaves exactly one target component in this tuple.
16
+ export const [Counter] = [
16
17
  // #ifdef wx
17
- return <NativeCounter {...props} />
18
+ NativeCounter,
18
19
  // #endif
19
20
 
20
21
  // #ifndef wx
21
- return <SharedCounter {...props} />
22
+ SharedCounter
22
23
  // #endif
23
- }
24
+ ]
@@ -39,6 +39,7 @@
39
39
  justify-content: center;
40
40
  margin: 0;
41
41
  padding: 0;
42
+ border: none;
42
43
  border-radius: 0;
43
44
  background: var(--color-white);
44
45
  color: var(--color-foreground);
@@ -48,7 +49,7 @@
48
49
  }
49
50
 
50
51
  .native-counter__button::after {
51
- border: 0;
52
+ content: none;
52
53
  }
53
54
 
54
55
  .native-counter__button--decrement {
@@ -9,7 +9,7 @@ export function SharedCounter({ count, onDecrement, onIncrement }: CounterProps)
9
9
  <View className="flex h-full w-14 shrink-0">
10
10
  <Button
11
11
  aria-label="Decrease counter"
12
- className="m-0 flex h-full w-full items-center justify-center rounded-l-full rounded-r-none bg-white p-0 text-lg font-bold leading-none text-foreground after:border-0"
12
+ className="m-0 flex h-full w-full items-center justify-center rounded-l-full rounded-r-none border-none bg-white p-0 text-lg font-bold leading-none text-foreground after:content-none"
13
13
  onClick={onDecrement}
14
14
  >
15
15
  <Text>−</Text>
@@ -21,7 +21,7 @@ export function SharedCounter({ count, onDecrement, onIncrement }: CounterProps)
21
21
  <View className="flex h-full w-14 shrink-0">
22
22
  <Button
23
23
  aria-label="Increase counter"
24
- className="m-0 flex h-full w-full items-center justify-center rounded-l-none rounded-r-full bg-primary-control p-0 text-lg font-bold leading-none text-white after:border-0"
24
+ className="m-0 flex h-full w-full items-center justify-center rounded-l-none rounded-r-full border-none bg-primary-control p-0 text-lg font-bold leading-none text-white after:content-none"
25
25
  onClick={onIncrement}
26
26
  >
27
27
  <Text>+</Text>
@@ -16,7 +16,7 @@ export default function ApiCard() {
16
16
  </div>
17
17
  <button
18
18
  type="button"
19
- className="relative z-10 mt-6 flex items-center justify-center self-start rounded-full bg-action px-6 py-3 text-sm font-bold text-action-foreground after:border-0 sm:mt-0"
19
+ className="relative z-10 mt-6 flex items-center justify-center self-start rounded-full border-none bg-action px-6 py-3 text-sm font-bold text-action-foreground after:content-none sm:mt-0"
20
20
  onClick={() => Taro.showToast({ title: 'Hello from VPT!' })}
21
21
  >
22
22
  Try a Taro toast →