babel-jsx
v0.14.3
Published
transparently require/transform jsx from node with babel
Downloads
2
Readme
babel-jsx
Transparently require()
and transform jsx from node with babel.
Usage
require('babel-jsx').install()
If you want to use a different extension, do:
require('babel-jsx').install({extension: '.jsx!'})
If you want to couple with an additional transform (such as CoffeeScript), do:
var coffee = require('coffee-script');
require('babel-jsx').install({
extension: '.coffee',
additionalTransform: function(src) {
return coffee.compile(src, {
'bare': true
});
}
});