building-monorepos-using-lerna icon indicating copy to clipboard operation
building-monorepos-using-lerna copied to clipboard

non JSX function watch not building

Open msimonc opened this issue 4 years ago • 1 comments

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 avatar Jul 17 '20 00:07 msimonc

@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.

ghoshnirmalya avatar Sep 06 '20 07:09 ghoshnirmalya