My .babelrc
{
"presets": ["es2015", "stage-0"],
"ignore": ["templates"]
}
when I run
$ babel src --out-dir lib
files in my templates directory are compiled.
only
$ babel src --out-dir lib --ignore templates
can behavior exactly
[email protected] installed
Expected behaviour. The Babel options are not synonymous with the CLI flags. ignore on the CLI omits the files from being dealt with at all. The ignore API option skips any processing happening on the file.
Oh man... that's confusing