I am in the process of developing a basic component library and I want it to be automatically compiled every time I make any changes to my files.
Here is the command I am currently using:
"watch": "babel components/ --out-dir dist --copy-files --ignore test.js --watch"
I have tried experimenting with moving the --watch
flag around, but so far it hasn't made any difference as it only runs once.
Just for your reference, I am utilizing @babel/cli v7.8.4
. Can anyone advise me on how to configure it to compile each time I save a file? What am I doing wrong with my current command?