From c25e262b04c15d4de7107cc131de467882e7dcec Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 28 Mar 2019 16:05:41 -0400 Subject: Merge the --recompile and --reload flags (#2003) --- cli/compiler.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/compiler.rs') diff --git a/cli/compiler.rs b/cli/compiler.rs index 085fcd820..f0e4f23f3 100644 --- a/cli/compiler.rs +++ b/cli/compiler.rs @@ -84,6 +84,10 @@ pub struct ModuleMetaData { } impl ModuleMetaData { + pub fn has_output_code_and_source_map(&self) -> bool { + self.maybe_output_code.is_some() && self.maybe_source_map.is_some() + } + pub fn js_source(&self) -> String { if self.media_type == msg::MediaType::Json { return format!( -- cgit v1.2.3