-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add .babelrc to .npmignore #317
Add .babelrc to .npmignore #317
Conversation
Codecov Report
@@ Coverage Diff @@
## master #317 +/- ##
=======================================
Coverage 89.27% 89.27%
=======================================
Files 69 69
Lines 3217 3217
Branches 611 611
=======================================
Hits 2872 2872
Misses 328 328
Partials 17 17 Continue to review full report at Codecov.
|
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.
👍
As a follow up, I'm not sure what triggers this, but doing this seems to also fix the redbox error: |
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
When using
amazon-cognito-identity-js
with React Native, it tries to transpile the code using the published.babelrc
file. It will choke ifbabel-preset-es2015
is not installed. This is unfortunately how RN's bundler works by default. By npmignoring it, the problem should be resolved.See facebook/react-native#4062