Babel: `ignore` option in `.babelrc` no effect while compiling directory

Created on 6 Nov 2015  路  2Comments  路  Source: babel/babel

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

outdated

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings