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

Side effect of transpiling linked packages #4

Closed
marioharper opened this issue Jun 13, 2018 · 1 comment
Closed

Side effect of transpiling linked packages #4

marioharper opened this issue Jun 13, 2018 · 1 comment

Comments

@marioharper
Copy link

More of a note than an issue.

Since this fix consists of adding linked packages as react-native project roots, this causes react native to try and transpile the code of the package. This can be an issue if your package has its own transpilation process, leading to multiple transpilation attempts on the same code.

To prevent this from happening, you'll have to ignore the linked package from inside the react native projects .babelrc.

example:

// .babelrc
{
  ... 
"ignore": [
    "some-linked-package"
  ]
}
@MrLoh MrLoh closed this as completed in ca37318 Sep 16, 2018
@MrLoh
Copy link
Owner

MrLoh commented Sep 16, 2018

I added a note to the readme

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

No branches or pull requests

2 participants