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

Investigate register-babel necessity #5

Open
jamesplease opened this issue Dec 29, 2015 · 3 comments
Open

Investigate register-babel necessity #5

jamesplease opened this issue Dec 29, 2015 · 3 comments
Labels

Comments

@jamesplease
Copy link
Owner

I accidentally discovered that I no longer needed to manually register Babel, given that gulpfile.babel.js seemed to register it for me, so I removed that from the code in b404c5f.

Shortly after, I decided to update the generator-babel-boilerplate with this change, but @thejameskyle pointed out that it may not be intended to work that way (babel/generator-babel-boilerplate#240 (comment)).

This issue to get to the bottom of this!

@jmm
Copy link

jmm commented Dec 31, 2015

I'm pretty sure that's how they intend it to work: gulpjs/gulp#830 (comment). (And off the top of my head I'm not sure if / how you could make it work otherwise.) BTW there's a broken link in your post.

@jamesplease
Copy link
Owner Author

Thanks for doing that research for me, @jmm! It makes sense that it would work this way. I'm going to do a liiiittle more research before I close this, but it seems to pretty much be all cleared up.

Thanks again! Oh, and I fixed that link ;)

@jmm
Copy link

jmm commented Dec 31, 2015

Thanks! Fortunately I remembered that discussion and just had to skim it again to confirm. It's tricky because of the lack of support for multiple file extensions, and I don't know if it's even possible to invoke babel-register multiple times with different settings (though maybe this pirates thing would enable that?), and even if you could do that the support for gulpfile.babel.js isn't based on sub-gulpfiles having any specific directory organization or naming scheme to identify them.

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

No branches or pull requests

2 participants