summaryrefslogtreecommitdiff
path: root/cli/tools
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools')
-rw-r--r--cli/tools/compile.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tools/compile.rs b/cli/tools/compile.rs
index c1f98bc08..3cc4414fc 100644
--- a/cli/tools/compile.rs
+++ b/cli/tools/compile.rs
@@ -54,6 +54,16 @@ pub async fn compile(
);
}
+ if cli_options.unstable_detect_cjs() {
+ log::warn!(
+ concat!(
+ "{} --unstable-detect-cjs is not properly supported in deno compile. ",
+ "The compiled executable may encounter runtime errors.",
+ ),
+ crate::colors::yellow("Warning"),
+ );
+ }
+
let output_path = resolve_compile_executable_output_path(
http_client,
&compile_flags,