Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform not working when used with other beefy options #104

Open
kagant15 opened this issue Apr 28, 2016 · 3 comments
Open

Transform not working when used with other beefy options #104

kagant15 opened this issue Apr 28, 2016 · 3 comments

Comments

@kagant15
Copy link

kagant15 commented Apr 28, 2016

I'm creating a React.js project and using babelify for my transformer
My project structure:

app
-> main.js
-> newIndex.html

beefy main.js -- -t [babelify --presets [react es2015] ] works 👍
beefy main.js --live works 👍
beefy main.js --index=newIndex.html works 👍
beefy main.js --index=newIndex.html --live works 👍
beefy main.js -- -t [babelify --presets [react es2015] ] --live fails 👎
beefy main.js -- -t [babelify --presets [react es2015] ] --index=newIndex.html fails 👎
beefy main.js -- -t [babelify --presets [react es2015] ] --index=newIndex.html --live fails 👎

When the babelify transform is specified before the other --options the transform works but the other options don't take. The same is true for the reverse, if for example --live is specified before -- -t [babelify --presets [react es2015] ] then the beefy server will reload when you save a file as you would expect it to but then the transformation doesn't work.
No error is provided when this happens.

Any ideas why this transform doesn't work alongside other options?

@lunelson
Copy link

👍 this is the first thing I tried; cause I need the babelify transforms... not working for me either

@gfpacheco
Copy link

A bit late, but try:

beefy main.js --index=newIndex.html --live -- -t [babelify --presets [react es2015] ]

As far as I know beefy sends all arguments that come after -- to browserify and doesn't care about them. Sending the beefy arguments before it should work.

@lunelson
Copy link

(please close)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants