Jason Aden
Jason Aden

Reputation: 2823

Babel cli - Passing nested options to

I don't want to need to use .babelrc file in all cases (build script) but can't seem to find a syntax to pass nested options to the CLI. Here is a simplified version of my .babelrc that I need to pass on the command line:

{"presets": [ ["es2015", { "modules": false }] ], "compact": true }

Anyone know the syntax for this?

Upvotes: 7

Views: 705

Answers (1)

loganfsmyth
loganfsmyth

Reputation: 161517

Babel does not currently support passing options to presets or plugins via the CLI.

Upvotes: 4

Related Questions