-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[0.16.0-rc] using a library which uses a .babelrc is broken #4548
Comments
The tentative solution was to get library authors to omit .babelrc from npm packages but I'm finding that's not a scalable solution. In our fork of RN we disable babelrc support across the board. cc @sebmck |
Duplicate of #4062 |
This is affecting the 'alt' framework. Removing .babelrc works goatslacker/alt#558 |
I've been running into this all over the place with Redux. @NullDivision suggests removing the Not an ideal workaround, but it can get things working again for the time being. |
I've been deep in the packager code lately...if I get a chance today maybe I'll take a look at how to ignore .babelrc's. |
Thanks. BTW I've taken the path of writing a I think it's also safer (instead of publishing ES6+ / JSX code that might not work for everyone), more compatible with whatever the build tool is (browserify / webpack / RN packager) and also take less compilation time ;) so anyway, let's stick with #4062 more general discussion. closing this issue. |
I'm developing a library that have a .babelrc and exposed both for web and native.
it contains:
I've creating an empty RN 0.16.0-rc project, add my lib in dependencies, and when trying to run, it breaks:
it still breaks the same if I just have
["es2015"]
.Each library should be able to expose a .babelrc right? I thought this was the convention.
The text was updated successfully, but these errors were encountered: