Skip to content

Commit 040dc5e

Browse files
committed
Pass jsx flags to compiler
1 parent c853376 commit 040dc5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rewatch/src/build/compile.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ pub fn compiler_args(
394394
};
395395

396396
let uncurried_args = root_config.get_uncurried_args(version);
397+
let jsx_args = root_config.get_jsx_args();
398+
let jsx_module_args = root_config.get_jsx_module_args();
399+
let jsx_mode_args = root_config.get_jsx_mode_args();
400+
let jsx_preserve_args = root_config.get_jsx_preserve_args();
397401
let gentype_arg = config.get_gentype_arg();
398402

399403
let warning_args: Vec<String> = match config.warnings.to_owned() {
@@ -476,6 +480,10 @@ pub fn compiler_args(
476480
Path::new("..").join("ocaml").to_string_lossy().to_string(),
477481
],
478482
dependency_paths.concat(),
483+
jsx_args,
484+
jsx_module_args,
485+
jsx_mode_args,
486+
jsx_preserve_args,
479487
uncurried_args,
480488
bsc_flags.to_owned(),
481489
warning_args,

0 commit comments

Comments
 (0)