@tarojs/rn-style-transformer 3.7.0-alpha.2 → 3.7.0-alpha.4
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 +6 -6
- package/src/transforms/sass.ts +1 -1
- package/src/types/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/rn-style-transformer",
|
|
3
|
-
"version": "3.7.0-alpha.
|
|
3
|
+
"version": "3.7.0-alpha.4",
|
|
4
4
|
"description": "提供Taro RN 统一处理样式文件能力",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"sass": "1.37.5",
|
|
28
28
|
"stylelint": "^14.9.1",
|
|
29
29
|
"stylus": "^0.55.0",
|
|
30
|
-
"@tarojs/helper": "3.7.0-alpha.
|
|
31
|
-
"postcss-pxtransform": "3.7.0-alpha.
|
|
32
|
-
"stylelint-config-taro-rn": "3.7.0-alpha.
|
|
33
|
-
"stylelint-taro-rn": "3.7.0-alpha.
|
|
34
|
-
"taro-css-to-react-native": "3.7.0-alpha.
|
|
30
|
+
"@tarojs/helper": "3.7.0-alpha.4",
|
|
31
|
+
"postcss-pxtransform": "3.7.0-alpha.4",
|
|
32
|
+
"stylelint-config-taro-rn": "3.7.0-alpha.4",
|
|
33
|
+
"stylelint-taro-rn": "3.7.0-alpha.4",
|
|
34
|
+
"taro-css-to-react-native": "3.7.0-alpha.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"babel-jest": "^29.5.0",
|
package/src/transforms/sass.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as fs from 'fs'
|
|
2
2
|
import * as path from 'path'
|
|
3
3
|
|
|
4
|
-
import { RenderAdditionalResult, RenderResult, SassConfig, SassGlobalConfig,TransformOptions } from '../types'
|
|
4
|
+
import { RenderAdditionalResult, RenderResult, SassConfig, SassGlobalConfig, TransformOptions } from '../types'
|
|
5
5
|
import { getAdditionalData, insertAfter, insertBefore, resolveStyle } from '../utils'
|
|
6
6
|
|
|
7
7
|
/**
|
package/src/types/index.ts
CHANGED
|
@@ -198,7 +198,7 @@ interface RNConfig {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
export interface Config {
|
|
201
|
-
designWidth?: number | ((size
|
|
201
|
+
designWidth?: number | ((size?: string | number) => number)
|
|
202
202
|
deviceRatio?: Record<string, number>
|
|
203
203
|
sass?: SassGlobalConfig
|
|
204
204
|
alias?: Record<string, string>
|