Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  1] [ 1]  / answers: 1 / hits: 25973  / 8 Years ago, wed, march 2, 2016, 12:00:00

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 several directories (node_modules, test), I tried a lot of things, including (in .babelrc):



  ignore: node_modules
ignore: /node_modules/
ignore: node_modules/**
ignore: [node_modules]


Which doesn't work at all (node_modules are transpiled). Isn't there a simple way to achieve this (with Babel 6)?


More From » babeljs

 Answers
13

You should be able to use commas in the cli



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


[#63083] Monday, February 29, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mickaylag

Total Points: 333
Total Questions: 108
Total Answers: 93

Location: Solomon Islands
Member since Fri, Oct 8, 2021
3 Years ago
;