summaryrefslogtreecommitdiff
path: root/cli/ops/runtime_compiler.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-04-25 21:54:57 +0100
committerGitHub <noreply@github.com>2021-04-26 06:54:57 +1000
commitfb1ccc3d8898e71f068a3d2e2b0e5f1da5731444 (patch)
tree136206913b6ab45daaf097439f4d3640e0746fd4 /cli/ops/runtime_compiler.rs
parent83bece56b01f6997cb71e9289a4d83a398cde0c8 (diff)
refactor(cli): rename Deno.emit() bundle options to "module" and "classic" (#10332)
Diffstat (limited to 'cli/ops/runtime_compiler.rs')
-rw-r--r--cli/ops/runtime_compiler.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/ops/runtime_compiler.rs b/cli/ops/runtime_compiler.rs
index dc9cd2163..4865c1045 100644
--- a/cli/ops/runtime_compiler.rs
+++ b/cli/ops/runtime_compiler.rs
@@ -33,10 +33,10 @@ pub fn init(rt: &mut deno_core::JsRuntime) {
#[derive(Debug, Deserialize)]
enum RuntimeBundleType {
- #[serde(rename = "esm")]
- Esm,
- #[serde(rename = "iife")]
- Iife,
+ #[serde(rename = "module")]
+ Module,
+ #[serde(rename = "classic")]
+ Classic,
}
#[derive(Debug, Deserialize)]
@@ -108,8 +108,8 @@ async fn op_emit(
))
})?;
let bundle_type = match args.bundle {
- Some(RuntimeBundleType::Esm) => BundleType::Esm,
- Some(RuntimeBundleType::Iife) => BundleType::Iife,
+ Some(RuntimeBundleType::Module) => BundleType::Module,
+ Some(RuntimeBundleType::Classic) => BundleType::Classic,
None => BundleType::None,
};
let graph = builder.get_graph();