summaryrefslogtreecommitdiff
path: root/src/compiler.rs
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2019-02-01 22:28:31 -0800
committerRyan Dahl <ry@tinyclouds.org>2019-02-02 01:28:31 -0500
commit3650bae5f6565cb6de2706512df145c86e8525cd (patch)
tree2bc066e39dc60fdb6ce7fd615c7f9d92deb45f54 /src/compiler.rs
parent16ed1f2545b34851ebdb9095251236fb51e39f5d (diff)
Add --info flag to display file info (compiled code/source map) (#1647)
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index db8d3ecd5..3b5d57ad0 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -24,7 +24,9 @@ pub struct CodeFetchOutput {
pub filename: String,
pub media_type: msg::MediaType,
pub source_code: String,
+ pub maybe_output_code_filename: Option<String>,
pub maybe_output_code: Option<String>,
+ pub maybe_source_map_filename: Option<String>,
pub maybe_source_map: Option<String>,
}
@@ -70,7 +72,9 @@ impl CodeFetchOutput {
filename,
media_type: msg::MediaType::JavaScript, // TODO
source_code,
+ maybe_output_code_filename: None,
maybe_output_code,
+ maybe_source_map_filename: None,
maybe_source_map,
})
}