Skip to content

It is not working if using stdin as source #5

Open

Description

@alihammad-gist

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

Activity

  1. jsdf commented on May 12, 2015

    @jsdf
    Owner

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions