coffee-reactify icon indicating copy to clipboard operation
coffee-reactify copied to clipboard

It is not working if using stdin as source

Open alihammad-gist opened this issue 9 years ago • 1 comments

browserify -t coffee-reactify --extension=".cjsx" --extension=".coffee" - browserify -t coffee-reactify -

I get this error for above commands. It probaby wants .coffee or .cjsx file but the generated file by browserify is _stream_0.js for stdin. Can i tell coffee-reactify to also parse .js files?

/home/cocomo/dev/golang/src/bitbucket.org/cocomo/publicwall/_stream_0.js:1
fnnn = -> alert 'hello'
        ^
ParseError: Unexpected token

alihammad-gist avatar May 05 '15 07:05 alihammad-gist

Yeah I don't know about this, not really sure if it makes sense to allow the transform to apply to arbitrary extensions because then how does it know what input is js and what is coffee? Possibly could add a config option to do it but I'm not sure how browserify via stdin is supposed to be used

jsdf avatar May 12 '15 12:05 jsdf