summaryrefslogtreecommitdiff
path: root/cli/tools/compile.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-05-18 19:26:49 -0400
committerGitHub <noreply@github.com>2023-05-19 01:26:49 +0200
commitc2995893be188f727f461d330bfbc54030663c62 (patch)
treea4c3982c88cc4d0020a185ab3c3f6e425c9df20a /cli/tools/compile.rs
parent680ae31db8d39866275df81301d927deae187666 (diff)
feat(compile): remove need for `--unstable` with npm specifiers (#19185)
Diffstat (limited to 'cli/tools/compile.rs')
-rw-r--r--cli/tools/compile.rs7
1 files changed, 0 insertions, 7 deletions
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())?;