Skip to content

ES6 modules support#46

Open
prayerslayer wants to merge 2 commits intopetehunt:masterfrom
prayerslayer:issue-45-es6-modules
Open

ES6 modules support#46
prayerslayer wants to merge 2 commits intopetehunt:masterfrom
prayerslayer:issue-45-es6-modules

Conversation

@prayerslayer
Copy link
Copy Markdown

Fixes #45.

@prayerslayer prayerslayer changed the title Issue 45 es6 modules ES6 modules support Mar 13, 2015
@theasta
Copy link
Copy Markdown

theasta commented Mar 17, 2015

Please accept this pull request so we don't have to use forks.. @petehunt Are you still using the jsx-loader at Instagram and Facebook? If not, what are you using instead?

@prayerslayer
Copy link
Copy Markdown
Author

I found out that babel-loader works fine.

@theasta
Copy link
Copy Markdown

theasta commented Mar 17, 2015

@prayerslayer Sure but babel-loader is slow and shouldn't be used on too many files (just quoting the docs). Are you working on a big codebase with it?

@prayerslayer
Copy link
Copy Markdown
Author

No, just starting. Would you mind posting a link to said docs? 

-----Original Message-----
From: Alexandrine Boissière notifications@github.com
Reply: petehunt/jsx-loader reply@reply.github.com>
Date: 17 Mar 2015 at 21:54:29
To: petehunt/jsx-loader jsx-loader@noreply.github.com>
Cc: Nikolaus Piccolotto prayerslayer@gmail.com>
Subject:  Re: [jsx-loader] ES6 modules support (#46)

@prayerslayer Sure but babel-loader is slow and shouldn't be used on too many files (just
quoting the docs). Are you working on a big codebase with it?


Reply to this email directly or view it on GitHub:
#46 (comment)

@theasta
Copy link
Copy Markdown

theasta commented Mar 17, 2015

It is actually in the readme file: https://github.com/babel/babel-loader#babel-loader-is-slow

@prayerslayer
Copy link
Copy Markdown
Author

Sorry I have to nitpick here, but it doesn't say that it's slow and you shouldn't use it on a large codebase. It says if you're experiencing a slow babel-loader, then make sure you're not doing unnecessary transformation. Which sounds reasonable.

But I don't want to imply that you are wrong! Have you tried babel on your code? What scale of "slow" are we talking about?

Edit: On a second read I get that the babel-loader docs are not really clear on this part. One could understand it both ways. But since it's listed under "troubleshooting" I didn't get the impression that "babel is slow" is meant as a warning. :)

@theasta
Copy link
Copy Markdown

theasta commented Mar 18, 2015

You're completely right. However when we tested both tools, jsx was faster than Babel.

@dhbaird
Copy link
Copy Markdown

dhbaird commented Jul 1, 2015

Would it be possible to get this patch merged? Thanks.

@micahlmartin
Copy link
Copy Markdown

👍 to just using the babel-loader. It works great for me.

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

Successfully merging this pull request may close these issues.

ES6 module support

4 participants