diff --git a/DESCRIPTION b/DESCRIPTION index df98b39..828b6e7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -15,5 +15,4 @@ Imports: rlang, Rserve Suggests: - testthat (>= 3.0.0), - js + testthat (>= 3.0.0) diff --git a/R/helpers.R b/R/helpers.R index eaee05f..e0a7d11 100644 --- a/R/helpers.R +++ b/R/helpers.R @@ -3,10 +3,7 @@ h3 <- function(x) { } - +# TODO: figure out how to format (modern) JS code from R? format_js <- function(x) { - if (!requireNamespace("js", quietly = TRUE)) { - return(x) - } - js::uglify_reformat(x, beautify = TRUE) + x }