We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
swc-project
Learn more about funding links in repositories.
Report abuse
--config
--config-json
1 parent 0559f2c commit cb4436bCopy full SHA for cb4436b
bindings/swc_cli/src/commands/compile.rs
@@ -28,11 +28,11 @@ use crate::util::trace::init_trace;
28
/// Configuration option for transform files.
29
#[derive(Parser)]
30
pub struct CompileOptions {
31
- /// Experimental: provide additional configuration to override the .swcrc.
32
- /// Can be used to provide experimental plugin configuration,
+ /// Experimental: provide an additional JSON config object to override the
+ /// .swcrc. Can be used to provide experimental plugin configuration,
33
/// including plugin imports that are explicitly relative, starting with `.`
34
/// or `..`
35
- #[clap(long, value_parser = parse_config)]
+ #[clap(long = "config-json", value_parser = parse_config)]
36
config: Option<Config>,
37
38
/// Path to a .swcrc file to use
0 commit comments