@wuchale/jsx 0.5.1 → 0.5.2

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.
@@ -139,6 +139,9 @@ export class JSXTransformer extends Transformer {
139
139
  return this.visit(node.expression);
140
140
  };
141
141
  visitJSXAttribute = (node) => {
142
+ if (node.value == null) {
143
+ return [];
144
+ }
142
145
  if (node.value.type !== 'Literal') {
143
146
  return this.visitJx(node.value);
144
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wuchale/jsx",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Protobuf-like i18n from plain code: JSX adapter",
5
5
  "scripts": {
6
6
  "dev": "tsc --watch",