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

Two sites with shared code #1929

Closed
kirill-konshin opened this issue Apr 3, 2017 · 2 comments
Closed

Two sites with shared code #1929

kirill-konshin opened this issue Apr 3, 2017 · 2 comments

Comments

@kirill-konshin
Copy link

Please advice the best way to organize the code for website with admin panel (e.g. 2 CRA installations) which have some code in common.

If done this way:

  • admin
  • web
  • shared

Then admin and web installations can't use ES6 code from shared because it's not included in React Scripts' Babel configuration.

So the question is: either how to add directories to Babel (#167) or how to properly organize dir structure to make it work?

@Timer
Copy link
Contributor

Timer commented Apr 4, 2017

This is an ongoing discussion, see #1492.
Unfortunately there's currently no workaround other than ejecting.

Sorry!

@Timer Timer closed this as completed Apr 4, 2017
@kirill-konshin
Copy link
Author

IC, thanks, I haven't found the issue you have mentioned.

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants