andreypopp / reactify

[DEPRECATED] Browserify transform for JSX (superset of JavaScript used in React library by Facebook)
MIT License
690 stars 68 forks source link

How to pass options to reactify when used with gulp and browserify #33

Closed josebalius closed 9 years ago

josebalius commented 9 years ago

I want to pass in es6 and stripTypes flags but cannot figure out how to do it. At the moment I am hardcoding some changes in the reactify/index.js file, which works but would like to help support this out of the box.

andreypopp commented 9 years ago

I don't use gulp but if you have access to browserify bundler instance you can do:

browserify().transform('reactify', {stripTypes: true, es6: true})