diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-03-28 16:05:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-28 16:05:41 -0400 |
| commit | c25e262b04c15d4de7107cc131de467882e7dcec (patch) | |
| tree | a5e2fd2ba73f9f8881d0ea9166c36958747b6f49 /cli/compiler.rs | |
| parent | 51abcd614731bdb47a79f9f0c0fed81ddb7a474a (diff) | |
Merge the --recompile and --reload flags (#2003)
Diffstat (limited to 'cli/compiler.rs')
| -rw-r--r-- | cli/compiler.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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!( |
