I had made another post about my specific situation, which didn’t get any replies. Well, I’m stuck with the same issue a week later. I will make this one more general.
What is the recommended best practice for using local libraries? My file structure currently looks like this:
How do I include the twilioClient library to be user in service1 and service 2? Currently the only working solution I have is to have a copy in each service, but obviously that is a huge pain because for every change I make to the code, I will have to update it multiple times.
I used npm install file: which worked for the inclusion, but I am using babel and webpack, which excluding my node_modules folder, as recommended. I tried any solutions I could find, such as:
exclude: /node_modules\/(?!(twilioClient))/ but I get a syntax error on es6 code every time.
Any help would be greatly appreciated, as I assume this is a common use case.