petehunt / node-jsx

transparently require() jsx from within node
164 stars 32 forks source link

Add 'options' arg to 'install', with 'extension' property #1

Closed spikebrehm closed 11 years ago

spikebrehm commented 11 years ago

Allow using like:

require('node-jsx').install({extension: '.jsx'})

It seems unnecessary to require the /* @jsx React.DOM */ block if the file extension is .jsx.

spikebrehm commented 11 years ago

:beers: