1

How do you set the path for Babel plugins?

babel --presets='[es2015]' medalOTM.js

Error: Couldn't find preset "[es2015]" relative to directory "."

babel --presets='[node_modules/es2015]' medalOTM.js

Error: Couldn't find preset "[node_modules/es2015]" relative to directory "."

🤖 ? ls -d node_modules/babel-preset*

node_modules/babel-preset-es2015

2
  • 1
    isn't it just --presets=es2015? Also I'd much rather put that in .babelrc
    – Kos
    Aug 7, 2016 at 14:43
  • That's it! Thanks! Aug 7, 2016 at 15:19

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.