@tsrx/vue 0.1.20 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/transform.js +4 -1
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Vue compiler built on @tsrx/core",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.1.20",
6
+ "version": "0.1.22",
7
7
  "type": "module",
8
8
  "publishConfig": {
9
9
  "access": "public"
@@ -35,7 +35,7 @@
35
35
  "esrap": "^2.2.8",
36
36
  "is-reference": "^3.0.3",
37
37
  "zimmerframe": "^1.1.2",
38
- "@tsrx/core": "0.1.20"
38
+ "@tsrx/core": "0.1.22"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "vue": ">=3.5",
package/src/transform.js CHANGED
@@ -39,7 +39,6 @@ const vue_platform = {
39
39
  },
40
40
  jsx: {
41
41
  rewriteClassAttr: false,
42
- acceptedTsxKinds: ['vue'],
43
42
  multiRefStrategy: 'merge-refs',
44
43
  hostSpreadRefStrategy: 'explicit-ref-attr',
45
44
  },
@@ -506,6 +505,10 @@ function create_define_vapor_component_call(fn_expression, generated_helpers, ge
506
505
  * @returns {any | null}
507
506
  */
508
507
  function render_for_of_as_vapor_for(node, loop_params, body_statements, transform_context) {
508
+ if (node.empty) {
509
+ return null;
510
+ }
511
+
509
512
  if (body_statements.length !== 1) {
510
513
  return null;
511
514
  }