0

I am working on a React + Vite project with Firebase. I share some logic between firebase functions and the frontend, so I want to extract that to a shared library. I have set my directories up up as follows:

 - src
 - functions
 - shared

I am using Vite for hot reloading pages as I make changes to them. Is there a way to configure vite so that it automatically recompiles the library in shared whenever I update it and installs the new version?

2
  • How are functions and shared updated? They are not sources, hence you don't maintain them yourself, right? Commented Aug 19, 2024 at 22:33
  • @EricMORAND Both functions and shared are in the same repository. I update the shared library with npx tsx Commented Aug 19, 2024 at 22:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.