mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59:10 +00:00
Merge the --recompile and --reload flags (#2003)
This commit is contained in:
parent
51abcd6147
commit
c25e262b04
15 changed files with 188 additions and 194 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue