From c2995893be188f727f461d330bfbc54030663c62 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 18 May 2023 19:26:49 -0400 Subject: feat(compile): remove need for `--unstable` with npm specifiers (#19185) --- cli/tools/compile.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'cli/tools') diff --git a/cli/tools/compile.rs b/cli/tools/compile.rs index a77845334..2ce03e353 100644 --- a/cli/tools/compile.rs +++ b/cli/tools/compile.rs @@ -3,7 +3,6 @@ use crate::args::CompileFlags; use crate::args::Flags; use crate::factory::CliFactory; -use crate::graph_util::error_for_any_npm_specifier; use crate::standalone::is_standalone_binary; use crate::util::path::path_has_trailing_slash; use deno_core::anyhow::bail; @@ -50,12 +49,6 @@ pub async fn compile( ) .unwrap(); - if !cli_options.unstable() { - error_for_any_npm_specifier(&graph).context( - "Using npm specifiers with deno compile requires the --unstable flag.", - )?; - } - let parser = parsed_source_cache.as_capturing_parser(); let eszip = eszip::EszipV2::from_graph(graph, &parser, Default::default())?; -- cgit v1.2.3