I've got a .babelrc
file at the root of a project:
{
"presets": ["es2015"],
"ignore": [
"src"
]
}
When I compile it with babel src --out-dir dist
, the src
folder is still compiled onto the dist
folder.
However, when I launch the command babel src --out-dir dist --ignore src
, nothing is compiled.
Why is the ignore
property of my .babelrc
being ignored?
By the way, I've tried with some subfolder or files, and the same issue occurs.
.babelrc
and yoursrc
folder sit in the same parent folder, you perhaps need to supply"ignore": ["src/**"]
or"ignore": [/src/]
to it.