building-monorepos-using-lerna
building-monorepos-using-lerna copied to clipboard
non JSX function watch not building
Thanks for this repo!
If I add a js method to the lib folder, either as part of the button file or in a separate folder, I have to restart (lerner run dev) for the changes to be built.
import axios from 'axios';
export default function fetchStockPrice(payload, BE_API) {
return axios
.get(`${BE_API}/stock-price`, payload)
.then(response => response.data)
.catch(err => {
console.log(err);
});
}
@msimonc Thank you for reporting the issue.
According to the dev command, any js or jsx file added inside the lib
directory should be built without the need to restart your dev server.