@tsrx/react 0.2.19 → 0.2.22
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 +2 -2
- package/src/transform.js +2 -3
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "React compiler built on @tsrx/core",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.22",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"esrap": "^2.2.8",
|
|
36
36
|
"zimmerframe": "^1.1.2",
|
|
37
|
-
"@tsrx/core": "0.1.
|
|
37
|
+
"@tsrx/core": "0.1.22"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": ">=18"
|
package/src/transform.js
CHANGED
|
@@ -5,8 +5,8 @@ import { createJsxTransform } from '@tsrx/core';
|
|
|
5
5
|
/**
|
|
6
6
|
* React platform descriptor consumed by `createJsxTransform`. Each field
|
|
7
7
|
* configures one React-specific decision the shared transformer would
|
|
8
|
-
* otherwise have to branch on (import sources,
|
|
9
|
-
*
|
|
8
|
+
* otherwise have to branch on (import sources, `use server` validation, error
|
|
9
|
+
* message prefix).
|
|
10
10
|
*
|
|
11
11
|
* @type {JsxPlatform}
|
|
12
12
|
*/
|
|
@@ -23,7 +23,6 @@ const react_platform = {
|
|
|
23
23
|
jsx: {
|
|
24
24
|
rewriteClassAttr: false,
|
|
25
25
|
classAttrName: 'className',
|
|
26
|
-
acceptedTsxKinds: ['react'],
|
|
27
26
|
multiRefStrategy: 'merge-refs',
|
|
28
27
|
},
|
|
29
28
|
validation: {
|