@weapp-tailwindcss/react-native 0.2.5 → 0.2.7
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/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/babel.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -27,6 +27,8 @@ module.exports = withWeappTailwindcss(config, {
|
|
|
27
27
|
|
|
28
28
|
Metro scans sources, builds the exact candidate set and manifest, and connects the Babel JSX transform to the existing Expo transformer. You do not need to maintain a second `classNameSet`.
|
|
29
29
|
|
|
30
|
+
`withWeappTailwindcss` accepts `projectRoot`, `input`, `css`, `manifest`, `classSet`, `sourceGlobs`, and `watchFiles`. See the [React Native / Expo configuration reference](https://tw.icebreaker.top/docs/config/react-native) for the full field list, manifest shape, and non-Expo Metro usage.
|
|
31
|
+
|
|
30
32
|
On Android and iOS, the Metro integration resolves `react` and `react-native` from the app `projectRoot`. This keeps linked workspace packages from bundling a second React Native runtime that does not match the native binary. Expo's normal platform resolver remains unchanged on Web.
|
|
31
33
|
|
|
32
34
|
## Runtime model
|
package/README.zh-CN.md
CHANGED
|
@@ -27,6 +27,8 @@ module.exports = withWeappTailwindcss(config, {
|
|
|
27
27
|
|
|
28
28
|
Metro 会扫描源码、生成精确候选集合和 manifest,并把 Babel JSX transform 接入现有 Expo transformer。无需维护第二份 `classNameSet`。
|
|
29
29
|
|
|
30
|
+
`withWeappTailwindcss` 支持 `projectRoot`、`input`、`css`、`manifest`、`classSet`、`sourceGlobs` 和 `watchFiles`。完整字段、manifest 结构和非 Expo Metro 用法见 [React Native / Expo 配置参考](https://tw.icebreaker.top/zh-cn/docs/config/react-native)。
|
|
31
|
+
|
|
30
32
|
在 Android 与 iOS 上,Metro 集成会从应用 `projectRoot` 解析 `react` 和 `react-native`,避免 linked workspace 包把与原生二进制不一致的第二份 React Native runtime 打入 bundle。Web 端继续保留 Expo 原有的平台 resolver 行为。
|
|
31
33
|
|
|
32
34
|
## 运行模型
|
package/dist/babel.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/react-native",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.7",
|
|
5
5
|
"description": "Tailwind CSS compiler and Expo Metro integration for cross-platform React Native apps. 面向跨端 React Native 应用的 Tailwind CSS 编译器与 Expo Metro 集成。",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -92,13 +92,13 @@
|
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@babel/types": "^8.0.4",
|
|
94
94
|
"postcss": "^8.5.26",
|
|
95
|
-
"weapp-tailwindcss": "5.3.
|
|
95
|
+
"weapp-tailwindcss": "5.3.5"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@babel/core": "^8.0.1",
|
|
99
99
|
"@types/react": "^19.2.18",
|
|
100
100
|
"react": "^19.2.8",
|
|
101
|
-
"vitest": "
|
|
101
|
+
"vitest": "~4.1.11"
|
|
102
102
|
},
|
|
103
103
|
"scripts": {
|
|
104
104
|
"build": "tsdown",
|