Open scottburch opened 9 years ago
Thanks for reporting... I confess I've never attempted to use this with the --debug
flag so I'll check it out.
Weird, I swapped reactify and wireify and it seems to work.
browserify -t rewireify -t [reactify ...] ...
Just to confirm I can recreate this and fix it as you describe in my Tube Tracker app when building the test bundle (though the --debug
flag works as expected when compiling the dev bundle). I'll investigate further.
Any news on this? I am trying this with tsify and debowerify with typescript and I am getting a parser error too on the source maps.
browserify -v -d -p [tsify --jsx=react] -t rewireify -t debowerify
I also tried:
browserify -v -d -t rewireify -p [tsify --jsx=react] -t debowerify
I know this probably does not help, but I thought I would mention it since I was in the discussion. I switched from using browserify to webpack. After the learning curve, I find it to be much more powerful and easier.
Yeah well I will probably look into it too. For now I can confirm I am able to make it work with reactify and rewireify by swapping the arguments like you previously said, but I get the parse error when using tsify for typescript and I've been digging most of the afternoon for now...
Thanks for porting this to browserify.
browserify -t [reactify --es6 --target es5] -t rewireify spec/$FILE -o build/$FILE --debug
Adding the --debug flag with rewireify throws parsing errors. I would love to have source maps also.