@cssxjs/babel-plugin-rn-stylename-inline 0.2.10 → 0.2.12
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/CHANGELOG.md +12 -0
- package/index.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v0.2.12 (Fri Nov 07 2025)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat(babel-plugin-rn-stylename-inline): infer platform dynamically from Metro options ([@cray0000](https://github.com/cray0000))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Pavel Zhukov ([@cray0000](https://github.com/cray0000))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v0.2.7 (Wed Nov 05 2025)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/index.js
CHANGED
|
@@ -35,7 +35,7 @@ const getVisitor = ({ $program, usedCompilers }) => ({
|
|
|
35
35
|
// II. compile template
|
|
36
36
|
const source = $this.node.quasi.quasis[0]?.value?.raw || ''
|
|
37
37
|
const filename = state.file?.opts?.filename
|
|
38
|
-
const platform = state.opts?.platform || DEFAULT_PLATFORM
|
|
38
|
+
const platform = state.opts?.platform || state.file?.opts?.caller?.platform || DEFAULT_PLATFORM
|
|
39
39
|
const compiledString = compiler(source, filename, { platform })
|
|
40
40
|
const compiledExpression = parser.parseExpression(compiledString)
|
|
41
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cssxjs/babel-plugin-rn-stylename-inline",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"@babel/parser": "^7.0.0",
|
|
27
27
|
"@babel/template": "^7.4.0",
|
|
28
28
|
"@babel/types": "^7.0.0",
|
|
29
|
-
"@cssxjs/loaders": "^0.2.
|
|
30
|
-
"@cssxjs/runtime": "^0.2.
|
|
29
|
+
"@cssxjs/loaders": "^0.2.12",
|
|
30
|
+
"@cssxjs/runtime": "^0.2.12"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/plugin-syntax-jsx": "^7.0.0",
|
|
34
34
|
"babel-plugin-tester": "^9.1.0",
|
|
35
35
|
"jest": "^30.0.4"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "353563eb72be74e2911d1343adcda32eceba43e5"
|
|
38
38
|
}
|