Search code examples
javascriptnode.jsreactjsbabeljsbabel-cli

How to specify a pragma when using babel-cli?


For transform-react-jsx I have to specify a pragma but I want to only use babel-cli. Is that possible ?


Solution

  • I don't think providing options in babel-cli is supported as discussed here. You should use .babelrc if you need to configure plugin options.