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

Related issues

jenniferlynparsons picture jenniferlynparsons  ·  50Comments

rayj10 picture rayj10  ·  61Comments

amereii picture amereii  ·  44Comments

3LOK picture 3LOK  ·  50Comments

ForbesLindesay picture ForbesLindesay  ·  33Comments