jsx-transform
Advanced tools
Comparing version 0.4.0 to 0.5.0
{ | ||
"name": "jsx-transform", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "JSX transpiler. Desugar JSX into JavaScript. A standard and configurable implementation of JSX decoupled from React.", | ||
@@ -29,8 +29,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"jstransform": "^5.0.0" | ||
"jstransform": "^8.2.0" | ||
}, | ||
"devDependencies": { | ||
"expect.js": "^0.3.1", | ||
"mocha": "^1.20.1" | ||
"mocha": "^2.0.1" | ||
} | ||
} |
@@ -1,7 +0,3 @@ | ||
# jsx-transform | ||
# jsx-transform [![Build Status](http://img.shields.io/travis/alexmingoia/jsx-transform.svg?style=flat)](http://travis-ci.org/alexmingoia/jsx-transform) [![NPM version](http://img.shields.io/npm/v/jsx-transform.svg?style=flat)](https://npmjs.org/package/jsx-transform) [![Dependency Status](http://img.shields.io/david/alexmingoia/jsx-transform.svg?style=flat)](http://david-dm.org/alexmingoia/jsx-transform) | ||
[![Build Status](https://secure.travis-ci.org/alexmingoia/jsx-transform.png)](http://travis-ci.org/alexmingoia/jsx-transform) | ||
[![NPM version](https://badge.fury.io/js/jsx-transform.png)](http://badge.fury.io/js/jsx-transform) | ||
[![Dependency Status](https://david-dm.org/alexmingoia/jsx-transform.png)](http://david-dm.org/alexmingoia/jsx-transform) | ||
JSX transpiler. Desugar JSX into JavaScript. | ||
@@ -12,2 +8,4 @@ | ||
For linting files containing JSX see [JSXHint][1]. | ||
## Installation | ||
@@ -66,2 +64,13 @@ | ||
```javascript | ||
/** @jsx React.createElement */ | ||
<div>Hello World</div> | ||
``` | ||
is desugared to | ||
```javascript | ||
React.createElement("div", null, ["Hello World"]); | ||
``` | ||
### Expressions | ||
@@ -90,8 +99,2 @@ | ||
### React and JSX | ||
React's transform has a slightly different API, treating tag names as method | ||
names instead of arguments. Equivelant behavior can be achieved in | ||
`jsx-transform` by setting `options.tagMethods` to `true`. | ||
## API | ||
@@ -117,1 +120,4 @@ | ||
## BSD Licensed | ||
[0]: https://github.com/facebook/react/ | ||
[1]: https://github.com/STRML/JSXHint/ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13569
120
+ Addedesprima-fb@8001.1001.0-dev-harmony-fb(transitive)
+ Addedjstransform@8.2.0(transitive)
- Removedesprima-fb@4001.1.0-dev-harmony-fb(transitive)
- Removedjstransform@5.0.0(transitive)
Updatedjstransform@^8.2.0