-
Notifications
You must be signed in to change notification settings - Fork 2.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
[Docs] transpiled packages #487
Comments
Hi @rgbkrk I'm looking for the same but did not find anything Check this issue as well: I think it would be great to have a Lerna boilerplate with some idiomatic setting. Sure we can take a look at projects like babel as inspiration but they are pretty complex projects with specific requirements, while most of us just want to develop a webapp :) |
I did what was suggested in one of the issues @slorber linked to: my shared packages are scoped under a common name. So I have a package At work, we use webpack and babel for transpiling, so to make it work I had to do the following:
So now exported React components/Flow types can be transpiled by babel! One more thing I did was to add |
Dude @ravicious that worked! Thank you! For others following this, I had to not do the step with |
Ok, it does not quite work. I have to restart my webpack dev server any time I make changes to my imported packages. |
Yes, that was my problem as well. That happened after upgrading yarn to 1.0 I think. Unfortunately, I stopped working on the project that was using this stack, so I don’t have a solution for this issue. |
I see, thank you |
@ravicious do you have a repo example of this structure? |
@sibelius Unfortunately not, I don't own rights to that project. |
https://github.com/nteract/nteract uses both lerna and yarn workspaces, feel free to check it out. We have a common webpack config in Update: nteract is on typescript now so not all of the above applies anymore. |
for jest config check this entria/entria-fullstack#13 you need to use require.resolve, instead of node_modules because you can't know whether workspace will hoist or not |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Are there repositories or recommendations for making lerna monorepos that have packages requiring transpiling?
Particular motivations:
The text was updated successfully, but these errors were encountered: