petehunt / node-jsx

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

Add support for insertPragma, like jsx-loader for webpack #17

Closed yobert closed 1 year ago

yobert commented 10 years ago

This should help with pull request #14 (Added 'addDocblock' option which will add the /* @jsx React.DOM / comment to the source when it's missing like the 'reactify' module does) but has the added benefit of matching webpack's option style, and lets you choose whether or not you want React.DOM added or not. Also seems like a simpler pull request (albeit less correct?)