My code has the directory structure:
project-root/
└── src/
└── main.js
When I run the default Babel file watcher, the code is transpiled into a dist folder, including the src directory in it's path, like so:
project-root/
└── src/
├── main.js
dist/
└── src
└── main.dist.js
What I want instead is for the src to be excluded from the path - in other words, for the transpiled code in src to be "unwrapped" and compiled straight into dist, like the following:
project-root/
└── src/
├── main.js
dist/
└── main.dist.js
Is it be possible to change the watcher config to achieve this? I can't figure it out! Any help is much appreciated.