-
Notifications
You must be signed in to change notification settings - Fork 439
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
Moves babel config out of package.json. #24
Conversation
Hmm, that's super odd. Is there somewhere I can get details on why that's the case? Seems like a bug in RN. I'm not dead against moving it into a |
I feel the same way. Almost didn't do this PR. It's not your bug, but React Native's. It exists on other repos as well (e.g acdlite/change-emitter#2 <-- a dep of recompose). It's not just Android (like I originally said, it's iOS as well). What I SeeWhen we run our mobile apps, here's the error that spits out.
Why? No clue.And it's true that we don't have that So the error itself makes sense, I just question why the presence of Work AroundsAn alternate ending is to ensure the You can also simply open up watchman watch-del-all
./node_modules/react-native/packager/packager.sh start --reset-cache But that's gloriously hacky to expect each developer to do that. To Reproducenpm i -g react-native-cli
react-native init DoomAndGloom
cd DoomAndGloom
npm i --save mitt Then edit your Thanks for listening. |
Update: React Native works like this by design. They're looking at changing it. |
Ah, that's an interesting problem & discussion. We actually transpile (certain) dependencies within |
@developit consider using Buble? No config and no fancy thing. Just not "es2050+one ton proposals". :) Such problems are the reason that we still not use Babel and too fancy things. Things in javascript moves too fast, so we should slow down a bit. I tried Rollup + Buble and it is pleasure - you should not think for such problems and in bonus you get awesome and correct tree shaking (even if you not do frontend). And I'm integrating it in my workflow. |
It's already using Bublé :) |
Oh omg.. yea. Hahhaha. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this for the time being to fix RN. I'm going to nix the .npmignore since "files"
in the package.json should already ignore babelrc.
Thx! Super appreciate this. |
Released as 1.0.1! |
Heyo! Captain corner-case reporting in.
On React Native 0.40 for the Android platform, the environment doesn't uhh... do well with having node_modules with
babel
inside theirpackage.json
.By moving to an external
.babelrc
file (and also.npmignore
'ing that), all is well and just in the world.Thanks for your consideration! Thanks for mitt!