Babel ignore several directories

前端 未结 4 1928
鱼传尺愫
鱼传尺愫 2021-01-01 13:17

I\'m currently running Babel with a simple command :

$ babel . --ignore node_modules --out-dir dist

But I can\'t find a way to ignore sever

4条回答
  •  温柔的废话
    2021-01-01 14:16

    With Babel 7 you need to use a glob pattern:

    babel . --ignore */node_modules,*/test --out-dir dist
    

提交回复
热议问题