0

I'm setting-up VSCode to use Babel in preLaunchTask. I need to compile several source directories, each with its own out-dir, in --watch mode. I can do this with several Babel processes, but it looks like VSCode has a problem with having more then 1 background task as preLaunchTask. Can I somehow configure Babel to compile several in-out directory pairs in one command? Or maybe combine them into single shell command aggregating output of several sub-processes?

Ivan Koshelev
  • 3,830
  • 2
  • 30
  • 50

1 Answers1

0

I ended up running several babel process in parallel, spawning them with a node script as described here Execute a command line binary with Node.js . In the script, I pipe-through their output, and I also scan it, to emit additional marker message for VSCode once initial compilation has been finished for each.

Ivan Koshelev
  • 3,830
  • 2
  • 30
  • 50